[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.1.10.0904231436410.7406@qirst.com>
Date: Thu, 23 Apr 2009 14:52:26 -0400 (EDT)
From: Christoph Lameter <cl@...ux.com>
To: David Rientjes <rientjes@...gle.com>
cc: Pekka Enberg <penberg@...helsinki.fi>,
Randy Dunlap <randy.dunlap@...cle.com>,
linux-kernel@...r.kernel.org
Subject: Re: [patch 2/2] slub: add
Documentation/ABI/testing/sysfs-kernel-slab
On Thu, 23 Apr 2009, David Rientjes wrote:
> +What: /sys/kernel/slab/cache/alloc_calls
> +Date: May 2007
> +KernelVersion: 2.6.22
> +Contact: Pekka Enberg <penberg@...helsinki.fi>,
> + Christoph Lameter <cl@...ux-foundation.org>
> +Description:
> + The alloc_calls file is read-only and lists the locations of
> + object allocs for SLAB_STORE_USER caches as specified on the
> + kernel command line (see Documentation/vm/slub.txt).
Thats a bit ambiguous:
Alloc_calls list the kernel code locations from which allocations for this
cache were performed. The alloc_calls file only contains information if
debugging was enabled for the cache (f.e. via the kernel command line
parameter)
> +What: /sys/kernel/slab/cache/alloc_fastpath
> +Date: February 2008
> +KernelVersion: 2.6.25
> +Contact: Pekka Enberg <penberg@...helsinki.fi>,
> + Christoph Lameter <cl@...ux-foundation.org>
> +Description:
> + The alloc_fastpath file is read-only and specifies how many
> + objects have been allocated utilizing the cache's fastpath
objects have been allocating using the fast path
> +What: /sys/kernel/slab/cache/alloc_from_partial
> +Date: February 2008
> +KernelVersion: 2.6.25
> +Contact: Pekka Enberg <penberg@...helsinki.fi>,
> + Christoph Lameter <cl@...ux-foundation.org>
> +Description:
> + The alloc_from_partial file is read-only and specifies how
> + many times a cpu slab has been full and it has been refilled
> + by a partial slab.
by using a slab from the list of partially used slabs.
?
> +What: /sys/kernel/slab/cache/alloc_refill
> +Date: February 2008
> +KernelVersion: 2.6.25
> +Contact: Pekka Enberg <penberg@...helsinki.fi>,
> + Christoph Lameter <cl@...ux-foundation.org>
> +Description:
> + The alloc_refill file is read-only and specifies how many
> + times a cpu slab needed to be refilled because it was full.
> + Available when CONFIG_SLUB_STATS is enabled.
Nope. A refill is when the per cpu list became empty but there are objects
on the list of free objects in the page struct associated with the slab
page (occurs when other cpus free objects allocated from the per cpu
slab).
> +Description:
> + The alloc_slowpath file is read-only and specifies how many
> + objects have been allocated utilizing the cache's slowpath
> + (i.e. from a partial or new slab).
> + Available when CONFIG_SLUB_STATS is enabled.
Slowpath can do a refill. In that case no partial or new slab is needed.
> +Description:
> + The cpu_slabs file is read-only and displays how many cpu slabs
> + are active and from which nodes they are from.
are active and their NUMA locality
?
> +Description:
> + The file cpu_slab_flush is read-only and specifies how many
> + times a cache's cpu slabs have been flushed as the result of
> + destroying or shrinking a cache and when a cpu goes offline.
> + Available when CONFIG_SLUB_STATS is enabled.
A flush also may occur as a result of forcing an allocation from a certain
NUMA node.
> +Description:
> + The file free_add_partial is read-only and specifies how many
> + times an object has been freed to a full slab so that it had to
been freed in a full slab so that it had to
> +Description:
> + The free_calls file is read-only and lists the locations of
> + object frees for SLAB_STORE_USER caches as specified on the
object frees if slab debugging is enabled (see Documentation/vm/slub.txt)
> +Description:
> + The free_fastpath file is read-only and specifies how many
> + objects have been freed utilizing the cache's fastpath (i.e.
objects have been free using the fastpath because it was an object from
the cpu_slab.
> +What: /sys/kernel/slab/cache/order
> +Date: May 2007
> +KernelVersion: 2.6.22
> +Contact: Pekka Enberg <penberg@...helsinki.fi>,
> + Christoph Lameter <cl@...ux-foundation.org>
> +Description:
> + The order file specifies the page order at which new slabs are
> + allocated. If a slab cannot be allocated because of
> + fragmentation, SLUB will retry with the minimum order possible
> + depending on its characteristics.
The order is writable and can be changed to increase objects per slab.
> +What: /sys/kernel/slab/cache/sanity_checks
> +Date: May 2007
> +KernelVersion: 2.6.22
> +Contact: Pekka Enberg <penberg@...helsinki.fi>,
> + Christoph Lameter <cl@...ux-foundation.org>
> +Description:
> + The sanity_checks file specifies whether expensive checks
> + should be performed on free. This is actually a no-op for SLUB
> + so it only acts to prevent slab merging.
It enables at mininum the double free checks.
> +What: /sys/kernel/slab/cache/slab_size
> +Date: May 2007
> +KernelVersion: 2.6.22
> +Contact: Pekka Enberg <penberg@...helsinki.fi>,
> + Christoph Lameter <cl@...ux-foundation.org>
> +Description:
> + The slab_size file is read-only and specifies the object size
> + with metadata (debugging information and alignment) in bytes.
Also includes alignment.
> +
> +What: /sys/kernel/slab/cache/validate
> +Date: May 2007
> +KernelVersion: 2.6.22
> +Contact: Pekka Enberg <penberg@...helsinki.fi>,
> + Christoph Lameter <cl@...ux-foundation.org>
> +Description:
> + The validate file is written whenever a cache should be
> + validated for correctness.
Writing to the validate files makes SLUB traverse all its objects and
check the validity of metadata.
--
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