Messages in this thread | | | Date | Tue, 4 Jun 2002 01:18:06 +0530 | From | Dipankar Sarma <> | Subject | Re: [Lse-tech] Re: [RFC] Dynamic percpu data allocator |
| |
On Mon, Jun 03, 2002 at 02:12:29PM -0500, Mala Anand wrote: > I looked at the slab code, per cpu slab is already implemented by Manfred > Spraul. > Look at cpu_data[NR_CPUS] in kmem_cache_s structure. >
Sorry, I should have been more clear saying what I wanted. Yes, kmem_cache_alloc() allocates one object from "this" CPU's slabs. What I want is a kmalloc_percupu() that allocates one copy for every CPU in the system. Think of this as dynamically allocacting an array of NR_CPUS objects with objects residing on different cachelines.
Thanks -- Dipankar Sarma <dipankar@in.ibm.com> http://lse.sourceforge.net Linux Technology Center, IBM Software Lab, Bangalore, India. - 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/
| |