Re: [PATCH/RFC] MM slub: add a sysfs entry to show the calculatednumber of fallback slabs

From: David Rientjes
Date: Fri Nov 12 2010 - 13:47:07 EST


On Fri, 12 Nov 2010, Richard Kennedy wrote:

> Add a slub sysfs entry to show the calculated number of fallback slabs.
>
> Using the information already available it is straightforward to
> calculate the number of fallback & full size slabs. We can then track
> which slabs are particularly effected by memory fragmentation and how
> long they take to recover.
>
> There is no change to the mainline code, the calculation is only
> performed on request, and the value is available without having to
> enable CONFIG_SLUB_STATS.
>

I don't see why this information is generally useful unless debugging an
issue where statistics are already needed such as ALLOC_SLOWPATH and
ALLOC_SLAB, so it CONFIG_SLUB_STATS can be enabled to also track
ORDER_FALLBACK. All stats can be cleared by writing a '0' to its sysfs
stats file so you can collect statistics for various workloads without
rebooting (after doing a forced shrink, for example).
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/