Debian Codegraph @

Documentation/ABI/testing/sysfs-kernel-slab

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