Re: [patch 2/2] mm: Reimplementation of alloc_percpu

2005-01-18 Thread Rusty Russell
On Tue, 2005-01-18 at 20:45 +0530, Ravikiran G Thirumalai wrote: > On Tue, Jan 18, 2005 at 12:30:32PM +1100, Rusty Russell wrote: > > On Tue, 2005-01-18 at 00:06 +0530, Ravikiran G Thirumalai wrote: > > > ... > > > The allocator can be easily modified to use __per_cpu_offset[] table at a > > > lat

Re: [patch 2/2] mm: Reimplementation of alloc_percpu

2005-01-18 Thread Ravikiran G Thirumalai
On Tue, Jan 18, 2005 at 12:30:32PM +1100, Rusty Russell wrote: > On Tue, 2005-01-18 at 00:06 +0530, Ravikiran G Thirumalai wrote: > > ... > > The allocator can be easily modified to use __per_cpu_offset[] table at a > > later > > stage by: > > 1. Allocating ALIGN(__per_cpu_end - __per_cpu_start,

Re: [patch 2/2] mm: Reimplementation of alloc_percpu

2005-01-17 Thread Rusty Russell
On Tue, 2005-01-18 at 00:06 +0530, Ravikiran G Thirumalai wrote: > Here's the alloc_percpu reimplementation changed to > - Use qsort > - Use GFP_KERNEL|__GFP_HIGHMEM|__GFP_ZERO for BLOCK_MANAGEMENT_PAGES > (GFP_HIGHZERO would have been ideal) > - Changed currency size to sizeof (int) from sizeof

Re: [patch 2/2] mm: Reimplementation of alloc_percpu

2005-01-17 Thread Ravikiran G Thirumalai
Here's the alloc_percpu reimplementation changed to - Use qsort - Use GFP_KERNEL|__GFP_HIGHMEM|__GFP_ZERO for BLOCK_MANAGEMENT_PAGES (GFP_HIGHZERO would have been ideal) - Changed currency size to sizeof (int) from sizeof (void *) for better utilization for small objects The allocator can be