From f38149e60428f66410602900a2254ad76dd88fb0 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Fri, 29 Oct 2021 14:25:58 +0200 Subject: 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. --- make_slackware_live.sh | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'make_slackware_live.sh') 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_', 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 <> ${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 <> ${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