From b30ea97914e80a0db44767cb3cffdc51fee824cb Mon Sep 17 00:00:00 2001 From: Christoph Lameter Date: Fri, 15 Feb 2008 15:22:22 -0800 Subject: [PATCH] slub: Update statistics handling for variable order slabs Change the statistics to consider that slabs of the same slabcache can have different number of objects in them since they may be of different order. Provide a new sysfs field total_objects which shows the total objects that the allocated slabs of a slabcache could hold. Add a max field that holds the largest slab order that was ever used for a slab cache. V1->V2: - Fix slub statistics - update slabinfo 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 08effb6..94a85b4 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -70,6 +70,7 @@ * Slabs with free elements are kept on a partial list and during regular * operations no list for full slabs is used. If an object in a full slab is * freed then the slab will show up again on the partial lists. + * * We track full slabs for debugging purposes though because otherwise we * cannot scan all objects. * -- 1.5.4.4