^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /sys/kernel/slab
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) The /sys/kernel/slab directory contains a snapshot of the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) internal state of the SLUB allocator for each cache. Certain
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) files may be modified to change the behavior of the cache (and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) any cache it aliases, if any).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) Users: kernel memory tuning tools
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) What: /sys/kernel/slab/cache/aliases
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) The aliases file is read-only and specifies how many caches
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) have merged into this cache.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) What: /sys/kernel/slab/cache/align
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) The align file is read-only and specifies the cache's object
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) alignment in bytes.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) What: /sys/kernel/slab/cache/alloc_calls
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) The alloc_calls file is read-only and lists the kernel code
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) locations from which allocations for this cache were performed.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) The alloc_calls file only contains information if debugging is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) enabled for that cache (see Documentation/vm/slub.rst).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) What: /sys/kernel/slab/cache/alloc_fastpath
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) Date: February 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) KernelVersion: 2.6.25
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) The alloc_fastpath file shows how many objects have been
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) allocated using the fast path. It can be written to clear the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) current count.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) Available when CONFIG_SLUB_STATS is enabled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) What: /sys/kernel/slab/cache/alloc_from_partial
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) Date: February 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) KernelVersion: 2.6.25
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) The alloc_from_partial file shows how many times a cpu slab has
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) been full and it has been refilled by using a slab from the list
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) of partially used slabs. It can be written to clear the current
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) count.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) Available when CONFIG_SLUB_STATS is enabled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) What: /sys/kernel/slab/cache/alloc_refill
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) Date: February 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) KernelVersion: 2.6.25
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) The alloc_refill file shows how many times the per-cpu freelist
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) was empty but there were objects available as the result of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) remote cpu frees. It can be written to clear the current count.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) Available when CONFIG_SLUB_STATS is enabled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) What: /sys/kernel/slab/cache/alloc_slab
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) Date: February 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) KernelVersion: 2.6.25
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) The alloc_slab file is shows how many times a new slab had to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) be allocated from the page allocator. It can be written to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) clear the current count.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) Available when CONFIG_SLUB_STATS is enabled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) What: /sys/kernel/slab/cache/alloc_slowpath
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) Date: February 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) KernelVersion: 2.6.25
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) The alloc_slowpath file shows how many objects have been
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) allocated using the slow path because of a refill or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) allocation from a partial or new slab. It can be written to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) clear the current count.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) Available when CONFIG_SLUB_STATS is enabled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) What: /sys/kernel/slab/cache/cache_dma
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) The cache_dma file is read-only and specifies whether objects
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) are from ZONE_DMA.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) Available when CONFIG_ZONE_DMA is enabled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) What: /sys/kernel/slab/cache/cpu_slabs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) The cpu_slabs file is read-only and displays how many cpu slabs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) are active and their NUMA locality.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) What: /sys/kernel/slab/cache/cpuslab_flush
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) Date: April 2009
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) KernelVersion: 2.6.31
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) The file cpuslab_flush shows how many times a cache's cpu slabs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) have been flushed as the result of destroying or shrinking a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) cache, a cpu going offline, or as the result of forcing an
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) allocation from a certain node. It can be written to clear the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) current count.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) Available when CONFIG_SLUB_STATS is enabled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) What: /sys/kernel/slab/cache/ctor
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) The ctor file is read-only and specifies the cache's object
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) constructor function, which is invoked for each object when a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) new slab is allocated.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) What: /sys/kernel/slab/cache/deactivate_empty
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) Date: February 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) KernelVersion: 2.6.25
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) The deactivate_empty file shows how many times an empty cpu slab
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) was deactivated. It can be written to clear the current count.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) Available when CONFIG_SLUB_STATS is enabled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) What: /sys/kernel/slab/cache/deactivate_full
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) Date: February 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) KernelVersion: 2.6.25
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) The deactivate_full file shows how many times a full cpu slab
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) was deactivated. It can be written to clear the current count.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) Available when CONFIG_SLUB_STATS is enabled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) What: /sys/kernel/slab/cache/deactivate_remote_frees
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) Date: February 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) KernelVersion: 2.6.25
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) The deactivate_remote_frees file shows how many times a cpu slab
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) has been deactivated and contained free objects that were freed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) remotely. It can be written to clear the current count.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) Available when CONFIG_SLUB_STATS is enabled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) What: /sys/kernel/slab/cache/deactivate_to_head
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) Date: February 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) KernelVersion: 2.6.25
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) The deactivate_to_head file shows how many times a partial cpu
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) slab was deactivated and added to the head of its node's partial
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) list. It can be written to clear the current count.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) Available when CONFIG_SLUB_STATS is enabled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) What: /sys/kernel/slab/cache/deactivate_to_tail
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) Date: February 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) KernelVersion: 2.6.25
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) The deactivate_to_tail file shows how many times a partial cpu
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) slab was deactivated and added to the tail of its node's partial
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) list. It can be written to clear the current count.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) Available when CONFIG_SLUB_STATS is enabled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) What: /sys/kernel/slab/cache/destroy_by_rcu
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) The destroy_by_rcu file is read-only and specifies whether
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) slabs (not objects) are freed by rcu.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) What: /sys/kernel/slab/cache/free_add_partial
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) Date: February 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) KernelVersion: 2.6.25
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) The free_add_partial file shows how many times an object has
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) been freed in a full slab so that it had to added to its node's
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) partial list. It can be written to clear the current count.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) Available when CONFIG_SLUB_STATS is enabled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) What: /sys/kernel/slab/cache/free_calls
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) The free_calls file is read-only and lists the locations of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) object frees if slab debugging is enabled (see
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) Documentation/vm/slub.rst).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) What: /sys/kernel/slab/cache/free_fastpath
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) Date: February 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) KernelVersion: 2.6.25
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) The free_fastpath file shows how many objects have been freed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) using the fast path because it was an object from the cpu slab.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232) It can be written to clear the current count.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233) Available when CONFIG_SLUB_STATS is enabled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235) What: /sys/kernel/slab/cache/free_frozen
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236) Date: February 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237) KernelVersion: 2.6.25
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 239) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 240) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 241) The free_frozen file shows how many objects have been freed to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 242) a frozen slab (i.e. a remote cpu slab). It can be written to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 243) clear the current count.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 244) Available when CONFIG_SLUB_STATS is enabled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 245)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 246) What: /sys/kernel/slab/cache/free_remove_partial
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 247) Date: February 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 248) KernelVersion: 2.6.25
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 249) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 250) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 251) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 252) The free_remove_partial file shows how many times an object has
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 253) been freed to a now-empty slab so that it had to be removed from
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 254) its node's partial list. It can be written to clear the current
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 255) count.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 256) Available when CONFIG_SLUB_STATS is enabled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 257)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 258) What: /sys/kernel/slab/cache/free_slab
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 259) Date: February 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 260) KernelVersion: 2.6.25
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 261) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 262) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 263) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 264) The free_slab file shows how many times an empty slab has been
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 265) freed back to the page allocator. It can be written to clear
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 266) the current count.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 267) Available when CONFIG_SLUB_STATS is enabled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 268)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 269) What: /sys/kernel/slab/cache/free_slowpath
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 270) Date: February 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 271) KernelVersion: 2.6.25
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 272) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 273) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 274) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 275) The free_slowpath file shows how many objects have been freed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 276) using the slow path (i.e. to a full or partial slab). It can
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 277) be written to clear the current count.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 278) Available when CONFIG_SLUB_STATS is enabled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 279)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 280) What: /sys/kernel/slab/cache/hwcache_align
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 281) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 282) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 283) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 284) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 285) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 286) The hwcache_align file is read-only and specifies whether
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 287) objects are aligned on cachelines.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 288)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 289) What: /sys/kernel/slab/cache/min_partial
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 290) Date: February 2009
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 291) KernelVersion: 2.6.30
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 292) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 293) David Rientjes <rientjes@google.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 294) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 295) The min_partial file specifies how many empty slabs shall
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 296) remain on a node's partial list to avoid the overhead of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 297) allocating new slabs. Such slabs may be reclaimed by utilizing
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 298) the shrink file.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 299)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 300) What: /sys/kernel/slab/cache/object_size
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 301) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 302) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 303) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 304) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 305) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 306) The object_size file is read-only and specifies the cache's
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 307) object size.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 308)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 309) What: /sys/kernel/slab/cache/objects
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 310) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 311) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 312) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 313) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 314) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 315) The objects file is read-only and displays how many objects are
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 316) active and from which nodes they are from.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 317)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 318) What: /sys/kernel/slab/cache/objects_partial
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 319) Date: April 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 320) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 321) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 322) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 323) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 324) The objects_partial file is read-only and displays how many
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 325) objects are on partial slabs and from which nodes they are
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 326) from.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 327)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 328) What: /sys/kernel/slab/cache/objs_per_slab
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 329) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 330) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 331) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 332) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 333) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 334) The file objs_per_slab is read-only and specifies how many
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 335) objects may be allocated from a single slab of the order
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 336) specified in /sys/kernel/slab/cache/order.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 337)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 338) What: /sys/kernel/slab/cache/order
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 339) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 340) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 341) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 342) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 343) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 344) The order file specifies the page order at which new slabs are
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 345) allocated. It is writable and can be changed to increase the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 346) number of objects per slab. If a slab cannot be allocated
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 347) because of fragmentation, SLUB will retry with the minimum order
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 348) possible depending on its characteristics.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 349)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 350) When debug_guardpage_minorder=N (N > 0) parameter is specified
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 351) (see Documentation/admin-guide/kernel-parameters.rst), the minimum possible
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 352) order is used and this sysfs entry can not be used to change
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 353) the order at run time.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 354)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 355) What: /sys/kernel/slab/cache/order_fallback
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 356) Date: April 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 357) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 358) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 359) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 360) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 361) The order_fallback file shows how many times an allocation of a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 362) new slab has not been possible at the cache's order and instead
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 363) fallen back to its minimum possible order. It can be written to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 364) clear the current count.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 365)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 366) Available when CONFIG_SLUB_STATS is enabled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 367)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 368) What: /sys/kernel/slab/cache/partial
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 369) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 370) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 371) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 372) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 373) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 374) The partial file is read-only and displays how long many
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 375) partial slabs there are and how long each node's list is.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 376)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 377) What: /sys/kernel/slab/cache/poison
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 378) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 379) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 380) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 381) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 382) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 383) The poison file specifies whether objects should be poisoned
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 384) when a new slab is allocated.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 385)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 386) What: /sys/kernel/slab/cache/reclaim_account
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 387) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 388) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 389) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 390) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 391) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 392) The reclaim_account file specifies whether the cache's objects
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 393) are reclaimable (and grouped by their mobility).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 394)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 395) What: /sys/kernel/slab/cache/red_zone
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 396) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 397) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 398) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 399) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 400) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 401) The red_zone file specifies whether the cache's objects are red
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 402) zoned.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 403)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 404) What: /sys/kernel/slab/cache/remote_node_defrag_ratio
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 405) Date: January 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 406) KernelVersion: 2.6.25
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 407) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 408) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 409) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 410) The file remote_node_defrag_ratio specifies the percentage of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 411) times SLUB will attempt to refill the cpu slab with a partial
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 412) slab from a remote node as opposed to allocating a new slab on
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 413) the local node. This reduces the amount of wasted memory over
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 414) the entire system but can be expensive.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 415)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 416) Available when CONFIG_NUMA is enabled.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 417)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 418) What: /sys/kernel/slab/cache/sanity_checks
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 419) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 420) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 421) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 422) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 423) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 424) The sanity_checks file specifies whether expensive checks
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 425) should be performed on free and, at minimum, enables double free
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 426) checks. Caches that enable sanity_checks cannot be merged with
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 427) caches that do not.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 428)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 429) What: /sys/kernel/slab/cache/shrink
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 430) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 431) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 432) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 433) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 434) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 435) The shrink file is used to reclaim unused slab cache
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 436) memory from a cache. Empty per-cpu or partial slabs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 437) are freed and the partial list is sorted so the slabs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 438) with the fewest available objects are used first.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 439) It only accepts a value of "1" on write for shrinking
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 440) the cache. Other input values are considered invalid.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 441) Shrinking slab caches might be expensive and can
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 442) adversely impact other running applications. So it
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 443) should be used with care.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 444)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 445) What: /sys/kernel/slab/cache/slab_size
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 446) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 447) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 448) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 449) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 450) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 451) The slab_size file is read-only and specifies the object size
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 452) with metadata (debugging information and alignment) in bytes.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 453)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 454) What: /sys/kernel/slab/cache/slabs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 455) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 456) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 457) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 458) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 459) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 460) The slabs file is read-only and displays how long many slabs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 461) there are (both cpu and partial) and from which nodes they are
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 462) from.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 463)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 464) What: /sys/kernel/slab/cache/store_user
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 465) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 466) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 467) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 468) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 469) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 470) The store_user file specifies whether the location of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 471) allocation or free should be tracked for a cache.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 472)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 473) What: /sys/kernel/slab/cache/total_objects
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 474) Date: April 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 475) KernelVersion: 2.6.26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 476) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 477) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 478) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 479) The total_objects file is read-only and displays how many total
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 480) objects a cache has and from which nodes they are from.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 481)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 482) What: /sys/kernel/slab/cache/trace
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 483) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 484) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 485) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 486) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 487) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 488) The trace file specifies whether object allocations and frees
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 489) should be traced.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 490)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 491) What: /sys/kernel/slab/cache/validate
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 492) Date: May 2007
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 493) KernelVersion: 2.6.22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 494) Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 495) Christoph Lameter <cl@linux-foundation.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 496) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 497) Writing to the validate file causes SLUB to traverse all of its
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 498) cache's objects and check the validity of metadata.