summaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2021-10-29 14:25:58 +0200
committer Eric Hameleers <alien@slackware.com>2021-10-29 14:25:58 +0200
commitf38149e60428f66410602900a2254ad76dd88fb0 (patch)
treed1e27ec424e6335d2b70aa0af66a06e2c15d37c4 /make_slackware_live.sh
parent7f3ff948533e08f2f1d9898bf3c8abc8ebf7ce78 (diff)
downloadliveslak-f38149e60428f66410602900a2254ad76dd88fb0.tar.gz
liveslak-f38149e60428f66410602900a2254ad76dd88fb0.tar.xz
DAW, STUDIOWARE: enable full preemptive mode via kernel boot option
Using rc.local to post-configure the kernel was nice, but this solution is cleaner and less lines of code.
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-xmake_slackware_live.sh23
1 files changed, 12 insertions, 11 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index 015fbfb..d5150c3 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -245,8 +245,8 @@ NETFIRMWARE="3com acenic adaptec bnx tigon e100 sun kaweth tr_smctr cxgb3 rtl_ni
# either using a variable name 'KAPPEND_<LIVEDE>', or by defining 'KAPPEND' in the .conf file:
KAPPEND_SLACKWARE=""
KAPPEND_KTOWN="threadirqs"
-KAPPEND_DAW="threadirqs"
-KAPPEND_STUDIOWARE="threadirqs"
+KAPPEND_DAW="threadirqs preempt=full"
+KAPPEND_STUDIOWARE="threadirqs preempt=full"
# Add CACert root certificates yes/no?
ADD_CACERT=${ADD_CACERT:-"NO"}
@@ -2710,16 +2710,17 @@ 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
+# # 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: