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

From: David Rientjes
Date: Fri Oct 16 2009 - 14:33:43 EST


On Fri, 16 Oct 2009, Christoph Lameter wrote:

>
> So writing to any file clears all counters? The documentation does not say
> so.
>

No, it just clears that particular statistic.

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