Re: [patch] slub: allow stats to be cleared

From: Pekka Enberg
Date: Sat Oct 17 2009 - 03:24:31 EST


Hi David,

David Rientjes wrote:
On a semi-related topic, it would have been nice to isolate all statistic files to its own directory: /sys/kernel/slab/kmalloc-256/stats/..., for example. It would have made collecting (and now clearing) all statistics much easier since userspace wouldn't need a predefined list of stat file names to scan. I wonder if Pekka would allow them to be moved...

It's a non-production configuration option and the only known user of the ABI is in slabinfo.c so maybe we can just go ahead and do that. Alternatively, I think we can preserve the current ABI with symbolic links in sysfs?

Pekka
--
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/