[PATCH] cleaned up slab allocator

From: Manfred Spraul (manfreds@colorfullife.com)
Date: Sun Jun 04 2000 - 10:28:01 EST


I cleaned up the current slab allocator:

* the object code is 25% shorter, the source file 220 lines.
* better efficiency for cacheline sized objects.
* fewer special cases, thus fewer branches: kmem_cache_alloc is down to
2 contitional branches, and one unconditional jump.
* simpler solution for DMA pages: I create 2 general caches for each
size, one of them for GFP_DMA pages, another one for normal pages.
* GFP_HIGHMEM slabs are possible, but not yet implemented: add a new
flag to kmem_cache_create, and force the slab descriptor off-slab.

The patch is long, I uploaded it to
        http://colorfullife.com/~manfreds/slab

The patch doesn't crash immediately, but it's WIP: I'll try to add
per-cpu support on top of this patch.

--
	Manfred

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:18 EST