[patch 21/21] slab defrag: Obsolete SLAB

From: Christoph Lameter
Date: Fri May 09 2008 - 23:16:35 EST


Slab defragmentation introduces new functionality not supported by SLAB and
SLOB.

Make slab depend on EXPERIMENTAL and note its obsoleteness and that
various functionality is not supported by SLAB.

Also update SLOB's description a bit to indicate that certain OS
support is limited by design.

Signed-off-by: Christoph Lameter <clameter@xxxxxxx>

---
init/Kconfig | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)

Index: linux-2.6/init/Kconfig
===================================================================
--- linux-2.6.orig/init/Kconfig 2008-05-09 18:41:41.000000000 -0700
+++ linux-2.6/init/Kconfig 2008-05-09 18:46:13.000000000 -0700
@@ -749,12 +749,16 @@ choice
This option allows to select a slab allocator.

config SLAB
- bool "SLAB"
+ bool "SLAB (Obsolete)"
+ depends on EXPERIMENTAL
help
- The regular slab allocator that is established and known to work
- well in all environments. It organizes cache hot objects in
- per cpu and per node queues. SLAB is the default choice for
- a slab allocator.
+ The old slab allocator that is being replaced by SLUB.
+ SLAB does not support slab defragmentation and has limited
+ debugging support. There is no sysfs support for /sys/kernel/slab.
+ SLAB requires order 1 allocations for some caches which may under
+ extreme circumstances fail. New general object debugging methods
+ (such as kmemcheck) do not support SLAB. The code is complex,
+ difficult to comprehend and has a history of subtle bugs.

config SLUB
bool "SLUB (Unqueued Allocator)"
@@ -771,7 +775,10 @@ config SLOB
help
SLOB replaces the stock allocator with a drastically simpler
allocator. SLOB is generally more space efficient but
- does not perform as well on large systems.
+ does not perform as well on large systems. SLOBs functionality
+ is limited by design (no sysfs support, no defrag, no debugging
+ etc).
+

endchoice


--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/