From 0de6ea0d13af189068d2cf816a975b6c4f170259 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Thu, 28 Oct 2021 21:59:20 +0200 Subject: DAW: enable full pre-emptive mode in the kernel Note: this was enabled in kernel 5.14.15 in Slackware-current. On older / non-preemptive kernels the above will do nothing. --- make_slackware_live.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'make_slackware_live.sh') diff --git a/make_slackware_live.sh b/make_slackware_live.sh index c205986..13fba59 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -2710,6 +2710,16 @@ fs.inotify.max_user_watches = 524288 vm.swappiness = 10 EOT fi + # Enable full preemption on boot: + cat <> ${LIVE_ROOTDIR}/etc/rc.d/rc.local + +# Enable full preemption model in the kernel +# (possible values to use are 'none', 'voluntary', 'full'): +mount -t debugfs none /sys/kernel/debug +echo full > /sys/kernel/debug/sched/preempt +umount /sys/kernel/debug + +EOT # # This would benefit a DAW, but if the user runs the Live OS on a laptop, # # she might want to decide about this herself: -- cgit v1.2.3