diff options
author | Joonsoo Kim <iamjoonsoo.kim@lge.com> | 2013-06-19 01:05:52 -0400 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2013-07-07 12:09:56 -0400 |
commit | 345c905d13a4ec9f774b6b4bc038fe4aef26cced (patch) | |
tree | 9b6177f5b4712ff78c3808b240e66079e8c8338f /init | |
parent | e7efa615ccf78394338144ff0187be331240748a (diff) |
slub: Make cpu partial slab support configurable
CPU partial support can introduce level of indeterminism that is not
wanted in certain context (like a realtime kernel). Make it
configurable.
This patch is based on Christoph Lameter's "slub: Make cpu partial slab
support configurable V2".
Acked-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'init')
-rw-r--r-- | init/Kconfig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig index 7d30240e5bfe..3b34a88cf34e 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -1511,6 +1511,17 @@ config SLOB | |||
1511 | 1511 | ||
1512 | endchoice | 1512 | endchoice |
1513 | 1513 | ||
1514 | config SLUB_CPU_PARTIAL | ||
1515 | default y | ||
1516 | depends on SLUB | ||
1517 | bool "SLUB per cpu partial cache" | ||
1518 | help | ||
1519 | Per cpu partial caches accellerate objects allocation and freeing | ||
1520 | that is local to a processor at the price of more indeterminism | ||
1521 | in the latency of the free. On overflow these caches will be cleared | ||
1522 | which requires the taking of locks that may cause latency spikes. | ||
1523 | Typically one would choose no for a realtime system. | ||
1524 | |||
1514 | config MMAP_ALLOW_UNINITIALIZED | 1525 | config MMAP_ALLOW_UNINITIALIZED |
1515 | bool "Allow mmapped anonymous memory to be uninitialized" | 1526 | bool "Allow mmapped anonymous memory to be uninitialized" |
1516 | depends on EXPERT && !MMU | 1527 | depends on EXPERT && !MMU |