aboutsummaryrefslogtreecommitdiffstats
path: root/features/rt/mm-slub-Don-t-enable-partial-CPU-caches-on-PREEMPT_R.patch
blob: d3c75a7e6cd1f55ff46d6f0ccbb6f714d00d5744 (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
27
28
29
30
31
32
From b49dbaa0391f05adefc6384ea61cb9e60c4a452a Mon Sep 17 00:00:00 2001
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date: Tue, 2 Mar 2021 18:58:04 +0100
Subject: [PATCH 112/191] 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(-)

diff --git a/init/Kconfig b/init/Kconfig
index 37686a22a769..45f2231c7131 100644
--- 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
-- 
2.19.1