Don't prompt for voluntary preemption setting. We want it disabled for most users as it tends to create latency problems in some situations and it's not a recommended setting unless you're using a GPU passthrough VM.

This commit is contained in:
Tk-Glitch 2021-02-26 22:15:55 +01:00
parent 6147e9f88d
commit 29afa3e91c

View File

@ -1002,14 +1002,7 @@ CONFIG_DEBUG_INFO_BTF_MODULES=y\n
fi fi
# voluntary preempt # voluntary preempt
if [ -z "$_voluntary_preempt" ]; then if [ "$_voluntary_preempt" = "true" ]; then
plain ""
plain "Use explicit preemption points?"
plain "It can improve latency on PDS (at the cost of throughput)"
plain "and improve throughput on other schedulers (at the cost of latency)"
read -rp "`echo $' > N/y : '`" CONDITION5;
fi
if [[ "$CONDITION5" =~ [yY] ]] || [ "$_voluntary_preempt" = "true" ]; then
sed -i -e 's/CONFIG_PREEMPT=y/# CONFIG_PREEMPT is not set/' ./.config sed -i -e 's/CONFIG_PREEMPT=y/# CONFIG_PREEMPT is not set/' ./.config
sed -i -e 's/CONFIG_PREEMPT_LL=y/# CONFIG_PREEMPT_LL is not set/' ./.config sed -i -e 's/CONFIG_PREEMPT_LL=y/# CONFIG_PREEMPT_LL is not set/' ./.config
sed -i -e 's/# CONFIG_PREEMPT_VOLUNTARY is not set/CONFIG_PREEMPT_VOLUNTARY=y/' ./.config sed -i -e 's/# CONFIG_PREEMPT_VOLUNTARY is not set/CONFIG_PREEMPT_VOLUNTARY=y/' ./.config