[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4AD77DAD.4070004@cs.helsinki.fi>
Date: Thu, 15 Oct 2009 22:53:17 +0300
From: Pekka Enberg <penberg@...helsinki.fi>
To: David Rientjes <rientjes@...gle.com>
CC: Christoph Lameter <cl@...ux-foundation.org>,
linux-kernel@...r.kernel.org
Subject: Re: [patch] slub: allow stats to be cleared
David Rientjes wrote:
> When collecting slub stats for particular workloads, it's necessary to
> collect each statistic for all caches before the job is even started
> because the counters are usually greater than zero just from boot and
> initialization.
>
> This allows a statistic to be cleared on each cpu by writing '0' to its
> sysfs file. This creates a baseline for statistics of interest before
> the workload is started.
>
> Setting a statistic to a particular value is not supported, so all values
> written to these files other than '0' returns -EINVAL.
>
> Cc: Christoph Lameter <cl@...ux-foundation.org>
> Signed-off-by: David Rientjes <rientjes@...gle.com>
Applied, thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists