Skip to contentSkip to conversation

slub: document setting min order with debug_guardpage_minorder > 0

PATCH New Stanislaw Gruszka 1 participant 1 message Jan 11, 2012 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 slub: document setting min order with debug_guardpage_minorder > 0

v1 -> v2:
- remove trailing whitespace
- note debug_guardpage_minorder is a command line parameter
- make clear that writing to /sys/cache/slab/cache/order will have no effect with debug_guardpage_minorder > 0

---
 Documentation/ABI/testing/sysfs-kernel-slab |    4 ++++
 Documentation/vm/slub.txt                   |    5 ++++-
 2 files changed, 8 insertions(+), 1 deletions(-)
Documentation/ABI/testing/sysfs-kernel-slab +4 -0
index 8b093f8..91bd6ca 100644
@@ -346,6 +346,10 @@ Description:
 		number of objects per slab.  If a slab cannot be allocated
 		because of fragmentation, SLUB will retry with the minimum order
 		possible depending on its characteristics.
+		When debug_guardpage_minorder=N (N > 0) parameter is specified
+		(see Documentation/kernel-parameters.txt), the minimum possible
+		order is used and this sysfs entry can not be used to change
+		the order at run time.
 
 What:		/sys/kernel/slab/cache/order_fallback
 Date:		April 2008
Documentation/vm/slub.txt +4 -1
index f464f47..1514d9f 100644
@@ -131,7 +131,10 @@ slub_min_objects.
 slub_max_order specified the order at which slub_min_objects should no
 longer be checked. This is useful to avoid SLUB trying to generate
 super large order pages to fit slub_min_objects of a slab cache with
-large object sizes into one high order page.
+large object sizes into one high order page. Setting command line
+parameter debug_guardpage_minorder=N (N > 0), forces setting
+slub_max_order to 0, what cause minimum possible order of slabs
+allocation.
 
 SLUB Debug output
 -----------------
Signature · 1 line
1.7.1