[lkml]   [2009]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: problems in linux-next (Was: Re: linux-next: Tree for December 1)
On Tue, 1 Dec 2009, Tejun Heo wrote:

> The problem is that on UP configurations. Percpu memory allocator
> becomes a simple wrapper around kmalloc and there's no way to specify
> larger alignment when requesting memory from kmalloc.

There is usually no point in aligning in UP. Alignment is typically done
for smp configurations to limit cache line bouncing and control cache line

> It would be best if there's a clean way to allocate memory with
> alignment larger than SMP_CACHE_BYTES. If not, I think I'll add a
> separate cache for cwqs on UP so that the alignment requirement can be
> met. Is there any way to get better aligned memory without creating a
> separate cache or allocating larger memory and aligning by chopping
> off?

Simply drop the alignment for UP?

 \ /
  Last update: 2009-12-01 16:51    [W:0.036 / U:1.964 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site