162306a36Sopenharmony_ciWhat: /sys/kernel/slab 262306a36Sopenharmony_ciDate: May 2007 362306a36Sopenharmony_ciKernelVersion: 2.6.22 462306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 562306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 662306a36Sopenharmony_ciDescription: 762306a36Sopenharmony_ci The /sys/kernel/slab directory contains a snapshot of the 862306a36Sopenharmony_ci internal state of the SLUB allocator for each cache. Certain 962306a36Sopenharmony_ci files may be modified to change the behavior of the cache (and 1062306a36Sopenharmony_ci any cache it aliases, if any). 1162306a36Sopenharmony_ciUsers: kernel memory tuning tools 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/aliases 1462306a36Sopenharmony_ciDate: May 2007 1562306a36Sopenharmony_ciKernelVersion: 2.6.22 1662306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 1762306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 1862306a36Sopenharmony_ciDescription: 1962306a36Sopenharmony_ci The aliases file is read-only and specifies how many caches 2062306a36Sopenharmony_ci have merged into this cache. 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/align 2362306a36Sopenharmony_ciDate: May 2007 2462306a36Sopenharmony_ciKernelVersion: 2.6.22 2562306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 2662306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 2762306a36Sopenharmony_ciDescription: 2862306a36Sopenharmony_ci The align file is read-only and specifies the cache's object 2962306a36Sopenharmony_ci alignment in bytes. 3062306a36Sopenharmony_ci 3162306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/alloc_calls 3262306a36Sopenharmony_ciDate: May 2007 3362306a36Sopenharmony_ciKernelVersion: 2.6.22 3462306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 3562306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 3662306a36Sopenharmony_ciDescription: 3762306a36Sopenharmony_ci The alloc_calls file is read-only and lists the kernel code 3862306a36Sopenharmony_ci locations from which allocations for this cache were performed. 3962306a36Sopenharmony_ci The alloc_calls file only contains information if debugging is 4062306a36Sopenharmony_ci enabled for that cache (see Documentation/mm/slub.rst). 4162306a36Sopenharmony_ci 4262306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/alloc_fastpath 4362306a36Sopenharmony_ciDate: February 2008 4462306a36Sopenharmony_ciKernelVersion: 2.6.25 4562306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 4662306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 4762306a36Sopenharmony_ciDescription: 4862306a36Sopenharmony_ci The alloc_fastpath file shows how many objects have been 4962306a36Sopenharmony_ci allocated using the fast path. It can be written to clear the 5062306a36Sopenharmony_ci current count. 5162306a36Sopenharmony_ci Available when CONFIG_SLUB_STATS is enabled. 5262306a36Sopenharmony_ci 5362306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/alloc_from_partial 5462306a36Sopenharmony_ciDate: February 2008 5562306a36Sopenharmony_ciKernelVersion: 2.6.25 5662306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 5762306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 5862306a36Sopenharmony_ciDescription: 5962306a36Sopenharmony_ci The alloc_from_partial file shows how many times a cpu slab has 6062306a36Sopenharmony_ci been full and it has been refilled by using a slab from the list 6162306a36Sopenharmony_ci of partially used slabs. It can be written to clear the current 6262306a36Sopenharmony_ci count. 6362306a36Sopenharmony_ci Available when CONFIG_SLUB_STATS is enabled. 6462306a36Sopenharmony_ci 6562306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/alloc_refill 6662306a36Sopenharmony_ciDate: February 2008 6762306a36Sopenharmony_ciKernelVersion: 2.6.25 6862306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 6962306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 7062306a36Sopenharmony_ciDescription: 7162306a36Sopenharmony_ci The alloc_refill file shows how many times the per-cpu freelist 7262306a36Sopenharmony_ci was empty but there were objects available as the result of 7362306a36Sopenharmony_ci remote cpu frees. It can be written to clear the current count. 7462306a36Sopenharmony_ci Available when CONFIG_SLUB_STATS is enabled. 7562306a36Sopenharmony_ci 7662306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/alloc_slab 7762306a36Sopenharmony_ciDate: February 2008 7862306a36Sopenharmony_ciKernelVersion: 2.6.25 7962306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 8062306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 8162306a36Sopenharmony_ciDescription: 8262306a36Sopenharmony_ci The alloc_slab file is shows how many times a new slab had to 8362306a36Sopenharmony_ci be allocated from the page allocator. It can be written to 8462306a36Sopenharmony_ci clear the current count. 8562306a36Sopenharmony_ci Available when CONFIG_SLUB_STATS is enabled. 8662306a36Sopenharmony_ci 8762306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/alloc_slowpath 8862306a36Sopenharmony_ciDate: February 2008 8962306a36Sopenharmony_ciKernelVersion: 2.6.25 9062306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 9162306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 9262306a36Sopenharmony_ciDescription: 9362306a36Sopenharmony_ci The alloc_slowpath file shows how many objects have been 9462306a36Sopenharmony_ci allocated using the slow path because of a refill or 9562306a36Sopenharmony_ci allocation from a partial or new slab. It can be written to 9662306a36Sopenharmony_ci clear the current count. 9762306a36Sopenharmony_ci Available when CONFIG_SLUB_STATS is enabled. 9862306a36Sopenharmony_ci 9962306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/cache_dma 10062306a36Sopenharmony_ciDate: May 2007 10162306a36Sopenharmony_ciKernelVersion: 2.6.22 10262306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 10362306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 10462306a36Sopenharmony_ciDescription: 10562306a36Sopenharmony_ci The cache_dma file is read-only and specifies whether objects 10662306a36Sopenharmony_ci are from ZONE_DMA. 10762306a36Sopenharmony_ci Available when CONFIG_ZONE_DMA is enabled. 10862306a36Sopenharmony_ci 10962306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/cpu_slabs 11062306a36Sopenharmony_ciDate: May 2007 11162306a36Sopenharmony_ciKernelVersion: 2.6.22 11262306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 11362306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 11462306a36Sopenharmony_ciDescription: 11562306a36Sopenharmony_ci The cpu_slabs file is read-only and displays how many cpu slabs 11662306a36Sopenharmony_ci are active and their NUMA locality. 11762306a36Sopenharmony_ci 11862306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/cpuslab_flush 11962306a36Sopenharmony_ciDate: April 2009 12062306a36Sopenharmony_ciKernelVersion: 2.6.31 12162306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 12262306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 12362306a36Sopenharmony_ciDescription: 12462306a36Sopenharmony_ci The file cpuslab_flush shows how many times a cache's cpu slabs 12562306a36Sopenharmony_ci have been flushed as the result of destroying or shrinking a 12662306a36Sopenharmony_ci cache, a cpu going offline, or as the result of forcing an 12762306a36Sopenharmony_ci allocation from a certain node. It can be written to clear the 12862306a36Sopenharmony_ci current count. 12962306a36Sopenharmony_ci Available when CONFIG_SLUB_STATS is enabled. 13062306a36Sopenharmony_ci 13162306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/ctor 13262306a36Sopenharmony_ciDate: May 2007 13362306a36Sopenharmony_ciKernelVersion: 2.6.22 13462306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 13562306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 13662306a36Sopenharmony_ciDescription: 13762306a36Sopenharmony_ci The ctor file is read-only and specifies the cache's object 13862306a36Sopenharmony_ci constructor function, which is invoked for each object when a 13962306a36Sopenharmony_ci new slab is allocated. 14062306a36Sopenharmony_ci 14162306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/deactivate_empty 14262306a36Sopenharmony_ciDate: February 2008 14362306a36Sopenharmony_ciKernelVersion: 2.6.25 14462306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 14562306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 14662306a36Sopenharmony_ciDescription: 14762306a36Sopenharmony_ci The deactivate_empty file shows how many times an empty cpu slab 14862306a36Sopenharmony_ci was deactivated. It can be written to clear the current count. 14962306a36Sopenharmony_ci Available when CONFIG_SLUB_STATS is enabled. 15062306a36Sopenharmony_ci 15162306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/deactivate_full 15262306a36Sopenharmony_ciDate: February 2008 15362306a36Sopenharmony_ciKernelVersion: 2.6.25 15462306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 15562306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 15662306a36Sopenharmony_ciDescription: 15762306a36Sopenharmony_ci The deactivate_full file shows how many times a full cpu slab 15862306a36Sopenharmony_ci was deactivated. It can be written to clear the current count. 15962306a36Sopenharmony_ci Available when CONFIG_SLUB_STATS is enabled. 16062306a36Sopenharmony_ci 16162306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/deactivate_remote_frees 16262306a36Sopenharmony_ciDate: February 2008 16362306a36Sopenharmony_ciKernelVersion: 2.6.25 16462306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 16562306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 16662306a36Sopenharmony_ciDescription: 16762306a36Sopenharmony_ci The deactivate_remote_frees file shows how many times a cpu slab 16862306a36Sopenharmony_ci has been deactivated and contained free objects that were freed 16962306a36Sopenharmony_ci remotely. It can be written to clear the current count. 17062306a36Sopenharmony_ci Available when CONFIG_SLUB_STATS is enabled. 17162306a36Sopenharmony_ci 17262306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/deactivate_to_head 17362306a36Sopenharmony_ciDate: February 2008 17462306a36Sopenharmony_ciKernelVersion: 2.6.25 17562306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 17662306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 17762306a36Sopenharmony_ciDescription: 17862306a36Sopenharmony_ci The deactivate_to_head file shows how many times a partial cpu 17962306a36Sopenharmony_ci slab was deactivated and added to the head of its node's partial 18062306a36Sopenharmony_ci list. It can be written to clear the current count. 18162306a36Sopenharmony_ci Available when CONFIG_SLUB_STATS is enabled. 18262306a36Sopenharmony_ci 18362306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/deactivate_to_tail 18462306a36Sopenharmony_ciDate: February 2008 18562306a36Sopenharmony_ciKernelVersion: 2.6.25 18662306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 18762306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 18862306a36Sopenharmony_ciDescription: 18962306a36Sopenharmony_ci The deactivate_to_tail file shows how many times a partial cpu 19062306a36Sopenharmony_ci slab was deactivated and added to the tail of its node's partial 19162306a36Sopenharmony_ci list. It can be written to clear the current count. 19262306a36Sopenharmony_ci Available when CONFIG_SLUB_STATS is enabled. 19362306a36Sopenharmony_ci 19462306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/destroy_by_rcu 19562306a36Sopenharmony_ciDate: May 2007 19662306a36Sopenharmony_ciKernelVersion: 2.6.22 19762306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 19862306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 19962306a36Sopenharmony_ciDescription: 20062306a36Sopenharmony_ci The destroy_by_rcu file is read-only and specifies whether 20162306a36Sopenharmony_ci slabs (not objects) are freed by rcu. 20262306a36Sopenharmony_ci 20362306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/free_add_partial 20462306a36Sopenharmony_ciDate: February 2008 20562306a36Sopenharmony_ciKernelVersion: 2.6.25 20662306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 20762306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 20862306a36Sopenharmony_ciDescription: 20962306a36Sopenharmony_ci The free_add_partial file shows how many times an object has 21062306a36Sopenharmony_ci been freed in a full slab so that it had to added to its node's 21162306a36Sopenharmony_ci partial list. It can be written to clear the current count. 21262306a36Sopenharmony_ci Available when CONFIG_SLUB_STATS is enabled. 21362306a36Sopenharmony_ci 21462306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/free_calls 21562306a36Sopenharmony_ciDate: May 2007 21662306a36Sopenharmony_ciKernelVersion: 2.6.22 21762306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 21862306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 21962306a36Sopenharmony_ciDescription: 22062306a36Sopenharmony_ci The free_calls file is read-only and lists the locations of 22162306a36Sopenharmony_ci object frees if slab debugging is enabled (see 22262306a36Sopenharmony_ci Documentation/mm/slub.rst). 22362306a36Sopenharmony_ci 22462306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/free_fastpath 22562306a36Sopenharmony_ciDate: February 2008 22662306a36Sopenharmony_ciKernelVersion: 2.6.25 22762306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 22862306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 22962306a36Sopenharmony_ciDescription: 23062306a36Sopenharmony_ci The free_fastpath file shows how many objects have been freed 23162306a36Sopenharmony_ci using the fast path because it was an object from the cpu slab. 23262306a36Sopenharmony_ci It can be written to clear the current count. 23362306a36Sopenharmony_ci Available when CONFIG_SLUB_STATS is enabled. 23462306a36Sopenharmony_ci 23562306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/free_frozen 23662306a36Sopenharmony_ciDate: February 2008 23762306a36Sopenharmony_ciKernelVersion: 2.6.25 23862306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 23962306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 24062306a36Sopenharmony_ciDescription: 24162306a36Sopenharmony_ci The free_frozen file shows how many objects have been freed to 24262306a36Sopenharmony_ci a frozen slab (i.e. a remote cpu slab). It can be written to 24362306a36Sopenharmony_ci clear the current count. 24462306a36Sopenharmony_ci Available when CONFIG_SLUB_STATS is enabled. 24562306a36Sopenharmony_ci 24662306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/free_remove_partial 24762306a36Sopenharmony_ciDate: February 2008 24862306a36Sopenharmony_ciKernelVersion: 2.6.25 24962306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 25062306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 25162306a36Sopenharmony_ciDescription: 25262306a36Sopenharmony_ci The free_remove_partial file shows how many times an object has 25362306a36Sopenharmony_ci been freed to a now-empty slab so that it had to be removed from 25462306a36Sopenharmony_ci its node's partial list. It can be written to clear the current 25562306a36Sopenharmony_ci count. 25662306a36Sopenharmony_ci Available when CONFIG_SLUB_STATS is enabled. 25762306a36Sopenharmony_ci 25862306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/free_slab 25962306a36Sopenharmony_ciDate: February 2008 26062306a36Sopenharmony_ciKernelVersion: 2.6.25 26162306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 26262306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 26362306a36Sopenharmony_ciDescription: 26462306a36Sopenharmony_ci The free_slab file shows how many times an empty slab has been 26562306a36Sopenharmony_ci freed back to the page allocator. It can be written to clear 26662306a36Sopenharmony_ci the current count. 26762306a36Sopenharmony_ci Available when CONFIG_SLUB_STATS is enabled. 26862306a36Sopenharmony_ci 26962306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/free_slowpath 27062306a36Sopenharmony_ciDate: February 2008 27162306a36Sopenharmony_ciKernelVersion: 2.6.25 27262306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 27362306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 27462306a36Sopenharmony_ciDescription: 27562306a36Sopenharmony_ci The free_slowpath file shows how many objects have been freed 27662306a36Sopenharmony_ci using the slow path (i.e. to a full or partial slab). It can 27762306a36Sopenharmony_ci be written to clear the current count. 27862306a36Sopenharmony_ci Available when CONFIG_SLUB_STATS is enabled. 27962306a36Sopenharmony_ci 28062306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/hwcache_align 28162306a36Sopenharmony_ciDate: May 2007 28262306a36Sopenharmony_ciKernelVersion: 2.6.22 28362306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 28462306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 28562306a36Sopenharmony_ciDescription: 28662306a36Sopenharmony_ci The hwcache_align file is read-only and specifies whether 28762306a36Sopenharmony_ci objects are aligned on cachelines. 28862306a36Sopenharmony_ci 28962306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/min_partial 29062306a36Sopenharmony_ciDate: February 2009 29162306a36Sopenharmony_ciKernelVersion: 2.6.30 29262306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 29362306a36Sopenharmony_ci David Rientjes <rientjes@google.com> 29462306a36Sopenharmony_ciDescription: 29562306a36Sopenharmony_ci The min_partial file specifies how many empty slabs shall 29662306a36Sopenharmony_ci remain on a node's partial list to avoid the overhead of 29762306a36Sopenharmony_ci allocating new slabs. Such slabs may be reclaimed by utilizing 29862306a36Sopenharmony_ci the shrink file. 29962306a36Sopenharmony_ci 30062306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/object_size 30162306a36Sopenharmony_ciDate: May 2007 30262306a36Sopenharmony_ciKernelVersion: 2.6.22 30362306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 30462306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 30562306a36Sopenharmony_ciDescription: 30662306a36Sopenharmony_ci The object_size file is read-only and specifies the cache's 30762306a36Sopenharmony_ci object size. 30862306a36Sopenharmony_ci 30962306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/objects 31062306a36Sopenharmony_ciDate: May 2007 31162306a36Sopenharmony_ciKernelVersion: 2.6.22 31262306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 31362306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 31462306a36Sopenharmony_ciDescription: 31562306a36Sopenharmony_ci The objects file is read-only and displays how many objects are 31662306a36Sopenharmony_ci active and from which nodes they are from. 31762306a36Sopenharmony_ci 31862306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/objects_partial 31962306a36Sopenharmony_ciDate: April 2008 32062306a36Sopenharmony_ciKernelVersion: 2.6.26 32162306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 32262306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 32362306a36Sopenharmony_ciDescription: 32462306a36Sopenharmony_ci The objects_partial file is read-only and displays how many 32562306a36Sopenharmony_ci objects are on partial slabs and from which nodes they are 32662306a36Sopenharmony_ci from. 32762306a36Sopenharmony_ci 32862306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/objs_per_slab 32962306a36Sopenharmony_ciDate: May 2007 33062306a36Sopenharmony_ciKernelVersion: 2.6.22 33162306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 33262306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 33362306a36Sopenharmony_ciDescription: 33462306a36Sopenharmony_ci The file objs_per_slab is read-only and specifies how many 33562306a36Sopenharmony_ci objects may be allocated from a single slab of the order 33662306a36Sopenharmony_ci specified in /sys/kernel/slab/<cache>/order. 33762306a36Sopenharmony_ci 33862306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/order 33962306a36Sopenharmony_ciDate: May 2007 34062306a36Sopenharmony_ciKernelVersion: 2.6.22 34162306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 34262306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 34362306a36Sopenharmony_ciDescription: 34462306a36Sopenharmony_ci The order file specifies the page order at which new slabs are 34562306a36Sopenharmony_ci allocated. It is writable and can be changed to increase the 34662306a36Sopenharmony_ci number of objects per slab. If a slab cannot be allocated 34762306a36Sopenharmony_ci because of fragmentation, SLUB will retry with the minimum order 34862306a36Sopenharmony_ci possible depending on its characteristics. 34962306a36Sopenharmony_ci 35062306a36Sopenharmony_ci When debug_guardpage_minorder=N (N > 0) parameter is specified 35162306a36Sopenharmony_ci (see Documentation/admin-guide/kernel-parameters.rst), the minimum possible 35262306a36Sopenharmony_ci order is used and this sysfs entry can not be used to change 35362306a36Sopenharmony_ci the order at run time. 35462306a36Sopenharmony_ci 35562306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/order_fallback 35662306a36Sopenharmony_ciDate: April 2008 35762306a36Sopenharmony_ciKernelVersion: 2.6.26 35862306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 35962306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 36062306a36Sopenharmony_ciDescription: 36162306a36Sopenharmony_ci The order_fallback file shows how many times an allocation of a 36262306a36Sopenharmony_ci new slab has not been possible at the cache's order and instead 36362306a36Sopenharmony_ci fallen back to its minimum possible order. It can be written to 36462306a36Sopenharmony_ci clear the current count. 36562306a36Sopenharmony_ci 36662306a36Sopenharmony_ci Available when CONFIG_SLUB_STATS is enabled. 36762306a36Sopenharmony_ci 36862306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/partial 36962306a36Sopenharmony_ciDate: May 2007 37062306a36Sopenharmony_ciKernelVersion: 2.6.22 37162306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 37262306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 37362306a36Sopenharmony_ciDescription: 37462306a36Sopenharmony_ci The partial file is read-only and displays how long many 37562306a36Sopenharmony_ci partial slabs there are and how long each node's list is. 37662306a36Sopenharmony_ci 37762306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/poison 37862306a36Sopenharmony_ciDate: May 2007 37962306a36Sopenharmony_ciKernelVersion: 2.6.22 38062306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 38162306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 38262306a36Sopenharmony_ciDescription: 38362306a36Sopenharmony_ci The poison file specifies whether objects should be poisoned 38462306a36Sopenharmony_ci when a new slab is allocated. 38562306a36Sopenharmony_ci 38662306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/reclaim_account 38762306a36Sopenharmony_ciDate: May 2007 38862306a36Sopenharmony_ciKernelVersion: 2.6.22 38962306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 39062306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 39162306a36Sopenharmony_ciDescription: 39262306a36Sopenharmony_ci The reclaim_account file specifies whether the cache's objects 39362306a36Sopenharmony_ci are reclaimable (and grouped by their mobility). 39462306a36Sopenharmony_ci 39562306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/red_zone 39662306a36Sopenharmony_ciDate: May 2007 39762306a36Sopenharmony_ciKernelVersion: 2.6.22 39862306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 39962306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 40062306a36Sopenharmony_ciDescription: 40162306a36Sopenharmony_ci The red_zone file specifies whether the cache's objects are red 40262306a36Sopenharmony_ci zoned. 40362306a36Sopenharmony_ci 40462306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/remote_node_defrag_ratio 40562306a36Sopenharmony_ciDate: January 2008 40662306a36Sopenharmony_ciKernelVersion: 2.6.25 40762306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 40862306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 40962306a36Sopenharmony_ciDescription: 41062306a36Sopenharmony_ci The file remote_node_defrag_ratio specifies the percentage of 41162306a36Sopenharmony_ci times SLUB will attempt to refill the cpu slab with a partial 41262306a36Sopenharmony_ci slab from a remote node as opposed to allocating a new slab on 41362306a36Sopenharmony_ci the local node. This reduces the amount of wasted memory over 41462306a36Sopenharmony_ci the entire system but can be expensive. 41562306a36Sopenharmony_ci 41662306a36Sopenharmony_ci Available when CONFIG_NUMA is enabled. 41762306a36Sopenharmony_ci 41862306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/sanity_checks 41962306a36Sopenharmony_ciDate: May 2007 42062306a36Sopenharmony_ciKernelVersion: 2.6.22 42162306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 42262306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 42362306a36Sopenharmony_ciDescription: 42462306a36Sopenharmony_ci The sanity_checks file specifies whether expensive checks 42562306a36Sopenharmony_ci should be performed on free and, at minimum, enables double free 42662306a36Sopenharmony_ci checks. Caches that enable sanity_checks cannot be merged with 42762306a36Sopenharmony_ci caches that do not. 42862306a36Sopenharmony_ci 42962306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/shrink 43062306a36Sopenharmony_ciDate: May 2007 43162306a36Sopenharmony_ciKernelVersion: 2.6.22 43262306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 43362306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 43462306a36Sopenharmony_ciDescription: 43562306a36Sopenharmony_ci The shrink file is used to reclaim unused slab cache 43662306a36Sopenharmony_ci memory from a cache. Empty per-cpu or partial slabs 43762306a36Sopenharmony_ci are freed and the partial list is sorted so the slabs 43862306a36Sopenharmony_ci with the fewest available objects are used first. 43962306a36Sopenharmony_ci It only accepts a value of "1" on write for shrinking 44062306a36Sopenharmony_ci the cache. Other input values are considered invalid. 44162306a36Sopenharmony_ci Shrinking slab caches might be expensive and can 44262306a36Sopenharmony_ci adversely impact other running applications. So it 44362306a36Sopenharmony_ci should be used with care. 44462306a36Sopenharmony_ci 44562306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/slab_size 44662306a36Sopenharmony_ciDate: May 2007 44762306a36Sopenharmony_ciKernelVersion: 2.6.22 44862306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 44962306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 45062306a36Sopenharmony_ciDescription: 45162306a36Sopenharmony_ci The slab_size file is read-only and specifies the object size 45262306a36Sopenharmony_ci with metadata (debugging information and alignment) in bytes. 45362306a36Sopenharmony_ci 45462306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/slabs 45562306a36Sopenharmony_ciDate: May 2007 45662306a36Sopenharmony_ciKernelVersion: 2.6.22 45762306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 45862306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 45962306a36Sopenharmony_ciDescription: 46062306a36Sopenharmony_ci The slabs file is read-only and displays how long many slabs 46162306a36Sopenharmony_ci there are (both cpu and partial) and from which nodes they are 46262306a36Sopenharmony_ci from. 46362306a36Sopenharmony_ci 46462306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/store_user 46562306a36Sopenharmony_ciDate: May 2007 46662306a36Sopenharmony_ciKernelVersion: 2.6.22 46762306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 46862306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 46962306a36Sopenharmony_ciDescription: 47062306a36Sopenharmony_ci The store_user file specifies whether the location of 47162306a36Sopenharmony_ci allocation or free should be tracked for a cache. 47262306a36Sopenharmony_ci 47362306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/total_objects 47462306a36Sopenharmony_ciDate: April 2008 47562306a36Sopenharmony_ciKernelVersion: 2.6.26 47662306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 47762306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 47862306a36Sopenharmony_ciDescription: 47962306a36Sopenharmony_ci The total_objects file is read-only and displays how many total 48062306a36Sopenharmony_ci objects a cache has and from which nodes they are from. 48162306a36Sopenharmony_ci 48262306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/trace 48362306a36Sopenharmony_ciDate: May 2007 48462306a36Sopenharmony_ciKernelVersion: 2.6.22 48562306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 48662306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 48762306a36Sopenharmony_ciDescription: 48862306a36Sopenharmony_ci The trace file specifies whether object allocations and frees 48962306a36Sopenharmony_ci should be traced. 49062306a36Sopenharmony_ci 49162306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/validate 49262306a36Sopenharmony_ciDate: May 2007 49362306a36Sopenharmony_ciKernelVersion: 2.6.22 49462306a36Sopenharmony_ciContact: Pekka Enberg <penberg@cs.helsinki.fi>, 49562306a36Sopenharmony_ci Christoph Lameter <cl@linux-foundation.org> 49662306a36Sopenharmony_ciDescription: 49762306a36Sopenharmony_ci Writing to the validate file causes SLUB to traverse all of its 49862306a36Sopenharmony_ci cache's objects and check the validity of metadata. 49962306a36Sopenharmony_ci 50062306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/usersize 50162306a36Sopenharmony_ciDate: Jun 2017 50262306a36Sopenharmony_ciContact: David Windsor <dave@nullcore.net> 50362306a36Sopenharmony_ciDescription: 50462306a36Sopenharmony_ci The usersize file is read-only and contains the usercopy 50562306a36Sopenharmony_ci region size. 50662306a36Sopenharmony_ci 50762306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/slabs_cpu_partial 50862306a36Sopenharmony_ciDate: Aug 2011 50962306a36Sopenharmony_ciContact: Christoph Lameter <cl@linux.com> 51062306a36Sopenharmony_ciDescription: 51162306a36Sopenharmony_ci This read-only file shows the number of partialli allocated 51262306a36Sopenharmony_ci frozen slabs. 51362306a36Sopenharmony_ci 51462306a36Sopenharmony_ciWhat: /sys/kernel/slab/<cache>/cpu_partial 51562306a36Sopenharmony_ciDate: Aug 2011 51662306a36Sopenharmony_ciContact: Christoph Lameter <cl@linux.com> 51762306a36Sopenharmony_ciDescription: 51862306a36Sopenharmony_ci This read-only file shows the number of per cpu partial 51962306a36Sopenharmony_ci pages to keep around. 520