summaryrefslogtreecommitdiff
path: root/patches/mm-slub-Don-t-enable-partial-CPU-caches-on-PREEMPT_R.patch
blob: 78f0ed099f748e3366e96a25b6d9c79ac1f63d09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date: Tue, 2 Mar 2021 18:58:04 +0100
Subject: [PATCH] mm: slub: Don't enable partial CPU caches on PREEMPT_RT by
 default

SLUB's partial CPU caches lead to higher latencies in a hackbench
benchmark.

Don't enable partial CPU caches by default on PREEMPT_RT.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
 init/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1974,7 +1974,7 @@ config SHUFFLE_PAGE_ALLOCATOR
 	  Say Y if unsure.
 
 config SLUB_CPU_PARTIAL
-	default y
+	default y if !PREEMPT_RT
 	depends on SLUB && SMP
 	bool "SLUB per cpu partial cache"
 	help