Files
linux-apfs/Documentation
David Rientjes fa5ec8a1f6 slub: add option to disable higher order debugging slabs
When debugging is enabled, slub requires that additional metadata be
stored in slabs for certain options: SLAB_RED_ZONE, SLAB_POISON, and
SLAB_STORE_USER.

Consequently, it may require that the minimum possible slab order needed
to allocate a single object be greater when using these options.  The
most notable example is for objects that are PAGE_SIZE bytes in size.

Higher minimum slab orders may cause page allocation failures when oom or
under heavy fragmentation.

This patch adds a new slub_debug option, which disables debugging by
default for caches that would have resulted in higher minimum orders:

	slub_debug=O

When this option is used on systems with 4K pages, kmalloc-4096, for
example, will not have debugging enabled by default even if
CONFIG_SLUB_DEBUG_ON is defined because it would have resulted in a
order-1 minimum slab order.

Reported-by: Larry Finger <Larry.Finger@lwfinger.net>
Tested-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
2009-07-10 09:52:55 +03:00
..
2009-06-22 16:56:22 -07:00
2009-04-07 08:12:38 +02:00
2009-06-22 10:12:35 +01:00
2009-07-08 15:24:28 -04:00
2009-06-16 19:47:58 -07:00
2009-03-30 15:21:59 +02:00
2009-06-11 01:58:01 -07:00
2009-06-18 13:04:04 -07:00
2009-06-20 01:10:38 -07:00
2009-06-16 14:30:14 -07:00
2009-06-18 13:04:04 -07:00
2009-06-30 18:56:00 -07:00
2009-06-11 23:31:52 +02:00
2009-03-26 15:45:43 -07:00
2009-06-30 18:55:59 -07:00
2009-04-27 12:00:27 -07:00
2009-04-27 12:00:27 -07:00
2009-03-31 15:18:37 +11:00
2009-04-14 09:00:23 +10:00