Messages in this thread | | | Date | Fri, 20 Mar 2009 13:40:31 -0400 (EDT) | From | Christoph Lameter <> | Subject | Re: [PATCH 2/3] xvmalloc memory allocator |
| |
On Fri, 20 Mar 2009, Nitin Gupta wrote:
> > Maybe try a fair test instead of relying on kmalloc rounding up to > > the next power of 2 size? > > > > Okay, for testing, I will make some wrappers around SLOB that directly use > slob_alloc() to avoid any of this rounding-off. I hope to show some data on > this soon. But considering other SLOB issues, this should not, hopefully, > be a blocker for compcache.
SLOB is not rounding off. SLAB/SLUB are. You need to create custom kmem_caches for this.
> I think, with a bit playing around with interfaces, it can be turned into > general purpose allocator (this will most probably lack highmem support).
Then it would need to implement the SLAB api (see include/linux/slab.h). Thus we are getting slab allocator #5.
| |