lkml.org 
[lkml]   [2004]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: slab-alignment-rework.patch in -mc
Andrea Arcangeli wrote:

>On Tue, Apr 20, 2004 at 12:24:23AM -0700, Andrew Morton wrote:
>
>
>>So I do think that we should either make "align=0" translate to "pack them
>>densely" or do the big sweep across all kmem_cache_create() callsites.
>>
>>
>
>agreed.
>
>
What about this proposal:
SLAB_HWCACHE_ALIGN clear: align to max(sizeof(void*), align).
SLAB_HWCACHE_ALIGN set: align to max(cpu_align(), align).

cpu_align is the cpu cache line size - either runtime or compile time.

Or are there users that want an alignment smaller than sizeof(void*)?
--
Manfred

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.064 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site