• D
    slub: allow stats to be cleared · 78eb00cc
    David Rientjes 提交于
    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@linux-foundation.org>
    Signed-off-by: NDavid Rientjes <rientjes@google.com>
    Signed-off-by: NPekka Enberg <penberg@cs.helsinki.fi>
    78eb00cc
sysfs-kernel-slab 16.9 KB