hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/Documentation/ABI/testing/sysfs-kernel-slab
....@@ -346,6 +346,7 @@
346346 number of objects per slab. If a slab cannot be allocated
347347 because of fragmentation, SLUB will retry with the minimum order
348348 possible depending on its characteristics.
349
+
349350 When debug_guardpage_minorder=N (N > 0) parameter is specified
350351 (see Documentation/admin-guide/kernel-parameters.rst), the minimum possible
351352 order is used and this sysfs entry can not be used to change
....@@ -361,6 +362,7 @@
361362 new slab has not been possible at the cache's order and instead
362363 fallen back to its minimum possible order. It can be written to
363364 clear the current count.
365
+
364366 Available when CONFIG_SLUB_STATS is enabled.
365367
366368 What: /sys/kernel/slab/cache/partial
....@@ -410,6 +412,7 @@
410412 slab from a remote node as opposed to allocating a new slab on
411413 the local node. This reduces the amount of wasted memory over
412414 the entire system but can be expensive.
415
+
413416 Available when CONFIG_NUMA is enabled.
414417
415418 What: /sys/kernel/slab/cache/sanity_checks
....@@ -429,10 +432,15 @@
429432 Contact: Pekka Enberg <penberg@cs.helsinki.fi>,
430433 Christoph Lameter <cl@linux-foundation.org>
431434 Description:
432
- The shrink file is written when memory should be reclaimed from
433
- a cache. Empty partial slabs are freed and the partial list is
434
- sorted so the slabs with the fewest available objects are used
435
- first.
435
+ The shrink file is used to reclaim unused slab cache
436
+ memory from a cache. Empty per-cpu or partial slabs
437
+ are freed and the partial list is sorted so the slabs
438
+ with the fewest available objects are used first.
439
+ It only accepts a value of "1" on write for shrinking
440
+ the cache. Other input values are considered invalid.
441
+ Shrinking slab caches might be expensive and can
442
+ adversely impact other running applications. So it
443
+ should be used with care.
436444
437445 What: /sys/kernel/slab/cache/slab_size
438446 Date: May 2007