lkml.org 
[lkml]   [2010]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] slub: ARCH_SLAB_MINALIGN defaults to 8 on x86_32. is this too big?
On Wed, Feb 03, 2010 at 02:22:26PM +0000, Richard Kennedy wrote:
> Can I define a ARCH_SLAB_MINALIGN in x86_64 to sizeof(void *) ?
> or would it be ok to change the default in slub.c to sizeof(void *) ?
>
Note that this is precisely what ARCH_SLAB_MINALIGN was introduced to
avoid (BYTES_PER_WORD alignment used to be the default for slab, before
ARCH_SLAB_MINALIGN was introduced). Consider the case of 64-bit platforms
using a 32-bit ABI, the native alignment remains 64-bit while sizeof(void
*) == 4. There are a number of (mainly embedded) architectures that
support these sorts of configurations in-tree.


\
 
 \ /
  Last update: 2010-02-04 01:11    [W:0.073 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site