diff options
author | Eric Hameleers <alien@slackware.com> | 2021-10-28 21:59:20 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2021-10-28 21:59:20 +0200 |
commit | 0de6ea0d13af189068d2cf816a975b6c4f170259 (patch) | |
tree | ea6dc91f9059a53cc0c50b50bd8000bf5632bc2c /make_slackware_live.sh | |
parent | 60ea9f2a58495a910a2bed94c1296e4fad489b3a (diff) | |
download | liveslak-0de6ea0d13af189068d2cf816a975b6c4f170259.tar.gz liveslak-0de6ea0d13af189068d2cf816a975b6c4f170259.tar.xz |
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.
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-x | make_slackware_live.sh | 10 |
1 files changed, 10 insertions, 0 deletions
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 <<EOT >> ${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: |