]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
slub: Fallback to minimal order during slab page allocation
authorChristoph Lameter <clameter@sgi.com>
Mon, 14 Apr 2008 16:11:40 +0000 (19:11 +0300)
committerPekka Enberg <penberg@cs.helsinki.fi>
Sun, 27 Apr 2008 15:28:18 +0000 (18:28 +0300)
commit65c3376aaca96c66aa76014aaf430398964b68cb
tree9cd8d64a2cf211e76afbad0de5ec1484af6bfafb
parent205ab99dd103e3dd5b0964dad8a16dfe2db69b2e
slub: Fallback to minimal order during slab page allocation

If any higher order allocation fails then fall back the smallest order
necessary to contain at least one object. This enables fallback for all
allocations to order 0 pages. The fallback will waste more memory (objects
will not fit neatly) and the fallback slabs will be not as efficient as larger
slabs since they contain less objects.

Note that SLAB also depends on order 1 allocations for some slabs that waste
too much memory if forced into PAGE_SIZE'd page. SLUB now can now deal with
failing order 1 allocs which SLAB cannot do.

Add a new field min that will contain the objects for the smallest possible order
for a slab cache.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
include/linux/slub_def.h
mm/slub.c