From b2419fa86999c6b529d083cff4037d0a676888c6 Mon Sep 17 00:00:00 2001 From: Christoph Lameter Date: Fri, 15 Feb 2008 15:22:22 -0800 Subject: [PATCH] slub: Adjust order boundaries and minimum objects per slab. Since there is now no worry anymore about higher order allocs (hopefully). Set the max order to default to PAGE_ALLOC_ORDER_COSTLY (32k) and require slub to use a higher order if a certain object density cannot be reached. The mininum objects per slab is calculated based on the number of processors that may come online. Processors min_objects --------------------------- 1 4 2 8 4 12 8 16 16 20 32 24 64 28 1024 44 4096 52 V1->V2 - Add logic to compute min_objects based on processor count. - Dump the DEFAULT_xx constants. Signed-off-by: Christoph Lameter --- mm/slub.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/mm/slub.c b/mm/slub.c index ccca4aa..94a85b4 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -73,6 +73,7 @@ * * We track full slabs for debugging purposes though because otherwise we * cannot scan all objects. + * * Slabs are freed when they become empty. Teardown and setup is * minimal so we rely on the page allocators per cpu caches for * fast frees and allocs. -- 1.5.4.4