sysfs-kernel-slab 16 KB

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