From 7e6fdff142d76e883168a7ec5297e8cb13965b4f Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Fri, 5 Jul 2024 15:57:18 +0200 Subject: [PATCH] Disable proactive compation I see a lot of kcompactd0 entries in sched_switch log, so disable it for now. --- lagarto-ox.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lagarto-ox.nix b/lagarto-ox.nix index dfd4f44..f8f8a65 100644 --- a/lagarto-ox.nix +++ b/lagarto-ox.nix @@ -89,6 +89,11 @@ sh -c 'hb=0; while [ 1 ]; do let hb=$hb+1; devmem 0x1bfff0000 32 $hb; done' & '' + + # Disable proactive compaction. May be better to disable CONFIG_COMPACTION. + '' + echo 0 > /proc/sys/vm/compaction_proactiveness + '' + + # Exclude the second pid, which is the kthread that will dump the trace to # the console, otherwise we live lock the kernel. Then enable the # sched_switch events.