lkml.org 
[lkml]   [2008]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [rfc][patch 2/3] slab: introduce SMP alignment
On Mon, Mar 03, 2008 at 11:06:55AM -0800, Christoph Lameter wrote:
> On Mon, 3 Mar 2008, Nick Piggin wrote:
>
> > Introduce SLAB_SMP_ALIGN, for allocations where false sharing must be
> > minimised on SMP systems.
>
> Mandatory alignment are specified as a parameter to kmem_cache_create not
> as flags.

Not after this patch.

> Ycan specify the alignment as a parameter. i.e. L1_CACHE_BYTES
> or cache_line_size().

We don't want either of those, though.

I don't see why this is a problem to do inside slab.


\
 
 \ /
  Last update: 2008-03-03 21:07    [W:0.091 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site