From: Christoph Lameter Date: Sun, 6 May 2007 21:49:44 +0000 (-0700) Subject: SLUB: Add MIN_PARTIAL X-Git-Tag: v2.6.22-rc1~958 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e95eed571e85d7ad4cde73576296c615f305f59f;p=pandora-kernel.git SLUB: Add MIN_PARTIAL We leave a mininum of partial slabs on nodes when we search for partial slabs on other node. Define a constant for that value. Then modify slub to keep MIN_PARTIAL slabs around. This avoids bad situations where a function frees the last object in a slab (which results in the page being returned to the page allocator) only to then allocate one again (which requires getting a page back from the page allocator if the partial list was empty). Keeping a couple of slabs on the partial list reduces overhead. Empty slabs are added to the end of the partial list to insure that partially allocated slabs are consumed first (defragmentation). Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed