Archlinux Kernel based on different schedulers and some other performance improvements.
Shell archlinuxbaby-schedcachycachy-schedulercachyoscacule-schedkernellinux-kernelperformanceperformance-tuning
stable: Bring back PREEMPT_DYNAMIC (#836)
Eric Naim3cd5f63b3685
diff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILDindex 3ccbab4c..d9ec1ffb 100644--- a/linux-cachyos-bmq/PKGBUILD+++ b/linux-cachyos-bmq/PKGBUILD@@ -64,8 +64,7 @@### Full tickless can give higher performances in various cases but, depending on hardware, lower consistency.: "${_tickrate:=full}"-## Choose between full, lazy or dynamic-# Dynamic allows you to switch between full and lazy at runtime+## Choose between full or lazy# Full: Makes all non-critical kernel code preemptible to reduce latency# Lazy: Same as full but instead of preempting immediately it waits for signals from the scheduler# in an attempt to boost throughput.@@ -363,9 +362,8 @@ prepare() {# We should not set up the PREEMPT for RT kernelsif [[ "$_cpusched" != "rt" && "$_cpusched" != "rt-bore" ]]; thencase "$_preempt" in- full) scripts/config -d PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_LAZY;;- lazy) scripts/config -d PREEMPT_DYNAMIC -d PREEMPT -e PREEMPT_LAZY;;- dynamic) scripts/config -e PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_LAZY;;+ full) scripts/config -e PREEMPT -d PREEMPT_LAZY;;+ lazy) scripts/config -d PREEMPT -e PREEMPT_LAZY;;*) _die "The value '$_preempt' is invalid. Choose the correct one again.";;esacdiff --git a/linux-cachyos-bmq/config b/linux-cachyos-bmq/configindex 5e6602ca..649a0fac 100644--- a/linux-cachyos-bmq/config+++ b/linux-cachyos-bmq/config@@ -148,7 +148,7 @@ CONFIG_PREEMPT=y# CONFIG_PREEMPT_RT is not setCONFIG_PREEMPT_COUNT=yCONFIG_PREEMPTION=y-# CONFIG_PREEMPT_DYNAMIC is not set+CONFIG_PREEMPT_DYNAMIC=yCONFIG_SCHED_CORE=yCONFIG_SCHED_CLASS_EXT=ydiff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILDindex 49bf1737..c7af1a0a 100644--- a/linux-cachyos-bore/PKGBUILD+++ b/linux-cachyos-bore/PKGBUILD@@ -64,8 +64,7 @@### Full tickless can give higher performances in various cases but, depending on hardware, lower consistency.: "${_tickrate:=full}"-## Choose between full, lazy or dynamic-# Dynamic allows you to switch between full and lazy at runtime+## Choose between full or lazy# Full: Makes all non-critical kernel code preemptible to reduce latency# Lazy: Same as full but instead of preempting immediately it waits for signals from the scheduler# in an attempt to boost throughput.@@ -363,9 +362,8 @@ prepare() {# We should not set up the PREEMPT for RT kernelsif [[ "$_cpusched" != "rt" && "$_cpusched" != "rt-bore" ]]; thencase "$_preempt" in- full) scripts/config -d PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_LAZY;;- lazy) scripts/config -d PREEMPT_DYNAMIC -d PREEMPT -e PREEMPT_LAZY;;- dynamic) scripts/config -e PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_LAZY;;+ full) scripts/config -e PREEMPT -d PREEMPT_LAZY;;+ lazy) scripts/config -d PREEMPT -e PREEMPT_LAZY;;*) _die "The value '$_preempt' is invalid. Choose the correct one again.";;esacdiff --git a/linux-cachyos-bore/config b/linux-cachyos-bore/configindex 5e6602ca..649a0fac 100644--- a/linux-cachyos-bore/config+++ b/linux-cachyos-bore/config@@ -148,7 +148,7 @@ CONFIG_PREEMPT=y# CONFIG_PREEMPT_RT is not setCONFIG_PREEMPT_COUNT=yCONFIG_PREEMPTION=y-# CONFIG_PREEMPT_DYNAMIC is not set+CONFIG_PREEMPT_DYNAMIC=yCONFIG_SCHED_CORE=yCONFIG_SCHED_CLASS_EXT=ydiff --git a/linux-cachyos-deckify/PKGBUILD b/linux-cachyos-deckify/PKGBUILDindex 7a229325..00357a88 100644--- a/linux-cachyos-deckify/PKGBUILD+++ b/linux-cachyos-deckify/PKGBUILD@@ -64,8 +64,7 @@### Full tickless can give higher performances in various cases but, depending on hardware, lower consistency.: "${_tickrate:=full}"-## Choose between full, lazy or dynamic-# Dynamic allows you to switch between full and lazy at runtime+## Choose between full or lazy# Full: Makes all non-critical kernel code preemptible to reduce latency# Lazy: Same as full but instead of preempting immediately it waits for signals from the scheduler# in an attempt to boost throughput.@@ -364,9 +363,8 @@ prepare() {# We should not set up the PREEMPT for RT kernelsif [[ "$_cpusched" != "rt" && "$_cpusched" != "rt-bore" ]]; thencase "$_preempt" in- full) scripts/config -d PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_LAZY;;- lazy) scripts/config -d PREEMPT_DYNAMIC -d PREEMPT -e PREEMPT_LAZY;;- dynamic) scripts/config -e PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_LAZY;;+ full) scripts/config -e PREEMPT -d PREEMPT_LAZY;;+ lazy) scripts/config -d PREEMPT -e PREEMPT_LAZY;;*) _die "The value '$_preempt' is invalid. Choose the correct one again.";;esacdiff --git a/linux-cachyos-deckify/config b/linux-cachyos-deckify/configindex cf30ec7b..8ea65677 100644--- a/linux-cachyos-deckify/config+++ b/linux-cachyos-deckify/config@@ -148,7 +148,7 @@ CONFIG_PREEMPT=y# CONFIG_PREEMPT_RT is not setCONFIG_PREEMPT_COUNT=yCONFIG_PREEMPTION=y-# CONFIG_PREEMPT_DYNAMIC is not set+CONFIG_PREEMPT_DYNAMIC=yCONFIG_SCHED_CORE=yCONFIG_SCHED_CLASS_EXT=ydiff --git a/linux-cachyos-eevdf/PKGBUILD b/linux-cachyos-eevdf/PKGBUILDindex 96d48f11..1c398ace 100644--- a/linux-cachyos-eevdf/PKGBUILD+++ b/linux-cachyos-eevdf/PKGBUILD@@ -64,8 +64,7 @@### Full tickless can give higher performances in various cases but, depending on hardware, lower consistency.: "${_tickrate:=full}"-## Choose between full, lazy or dynamic-# Dynamic allows you to switch between full and lazy at runtime+## Choose between full or lazy# Full: Makes all non-critical kernel code preemptible to reduce latency# Lazy: Same as full but instead of preempting immediately it waits for signals from the scheduler# in an attempt to boost throughput.@@ -366,9 +365,8 @@ prepare() {# We should not set up the PREEMPT for RT kernelsif [[ "$_cpusched" != "rt" && "$_cpusched" != "rt-bore" ]]; thencase "$_preempt" in- full) scripts/config -d PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_LAZY;;- lazy) scripts/config -d PREEMPT_DYNAMIC -d PREEMPT -e PREEMPT_LAZY;;- dynamic) scripts/config -e PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_LAZY;;+ full) scripts/config -e PREEMPT -d PREEMPT_LAZY;;+ lazy) scripts/config -d PREEMPT -e PREEMPT_LAZY;;*) _die "The value '$_preempt' is invalid. Choose the correct one again.";;esacdiff --git a/linux-cachyos-eevdf/config b/linux-cachyos-eevdf/configindex 5e6602ca..649a0fac 100644--- a/linux-cachyos-eevdf/config+++ b/linux-cachyos-eevdf/config@@ -148,7 +148,7 @@ CONFIG_PREEMPT=y# CONFIG_PREEMPT_RT is not setCONFIG_PREEMPT_COUNT=yCONFIG_PREEMPTION=y-# CONFIG_PREEMPT_DYNAMIC is not set+CONFIG_PREEMPT_DYNAMIC=yCONFIG_SCHED_CORE=yCONFIG_SCHED_CLASS_EXT=ydiff --git a/linux-cachyos-rt-bore/PKGBUILD b/linux-cachyos-rt-bore/PKGBUILDindex ef2a267c..85124430 100644--- a/linux-cachyos-rt-bore/PKGBUILD+++ b/linux-cachyos-rt-bore/PKGBUILD@@ -64,14 +64,13 @@### Full tickless can give higher performances in various cases but, depending on hardware, lower consistency.: "${_tickrate:=full}"-## Choose between full, lazy or dynamic-# Dynamic allows you to switch between full and lazy at runtime+## Choose between full or lazy# Full: Makes all non-critical kernel code preemptible to reduce latency# Lazy: Same as full but instead of preempting immediately it waits for signals from the scheduler# in an attempt to boost throughput.# In practice, this doesn't seem to perform well as both throughput and latency suffer# compared to full.-: "${_preempt:=dynamic}"+: "${_preempt:=full}"### Transparent Hugepages# ATTENTION - one of two predefined values should be selected!@@ -366,9 +365,8 @@ prepare() {# We should not set up the PREEMPT for RT kernelsif [[ "$_cpusched" != "rt" && "$_cpusched" != "rt-bore" ]]; thencase "$_preempt" in- full) scripts/config -d PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_LAZY;;- lazy) scripts/config -d PREEMPT_DYNAMIC -d PREEMPT -e PREEMPT_LAZY;;- dynamic) scripts/config -e PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_LAZY;;+ full) scripts/config -e PREEMPT -d PREEMPT_LAZY;;+ lazy) scripts/config -d PREEMPT -e PREEMPT_LAZY;;*) _die "The value '$_preempt' is invalid. Choose the correct one again.";;esacdiff --git a/linux-cachyos-rt-bore/config b/linux-cachyos-rt-bore/configindex 5e6602ca..649a0fac 100644--- a/linux-cachyos-rt-bore/config+++ b/linux-cachyos-rt-bore/config@@ -148,7 +148,7 @@ CONFIG_PREEMPT=y# CONFIG_PREEMPT_RT is not setCONFIG_PREEMPT_COUNT=yCONFIG_PREEMPTION=y-# CONFIG_PREEMPT_DYNAMIC is not set+CONFIG_PREEMPT_DYNAMIC=yCONFIG_SCHED_CORE=yCONFIG_SCHED_CLASS_EXT=ydiff --git a/linux-cachyos-server/PKGBUILD b/linux-cachyos-server/PKGBUILDindex 59f13446..bd2e6a0e 100644--- a/linux-cachyos-server/PKGBUILD+++ b/linux-cachyos-server/PKGBUILD@@ -64,8 +64,7 @@### Full tickless can give higher performances in various cases but, depending on hardware, lower consistency.: "${_tickrate:=full}"-## Choose between full, lazy or dynamic-# Dynamic allows you to switch between full and lazy at runtime+## Choose between full or lazy# Full: Makes all non-critical kernel code preemptible to reduce latency# Lazy: Same as full but instead of preempting immediately it waits for signals from the scheduler# in an attempt to boost throughput.@@ -363,9 +362,8 @@ prepare() {# We should not set up the PREEMPT for RT kernelsif [[ "$_cpusched" != "rt" && "$_cpusched" != "rt-bore" ]]; thencase "$_preempt" in- full) scripts/config -d PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_LAZY;;- lazy) scripts/config -d PREEMPT_DYNAMIC -d PREEMPT -e PREEMPT_LAZY;;- dynamic) scripts/config -e PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_LAZY;;+ full) scripts/config -e PREEMPT -d PREEMPT_LAZY;;+ lazy) scripts/config -d PREEMPT -e PREEMPT_LAZY;;*) _die "The value '$_preempt' is invalid. Choose the correct one again.";;esacdiff --git a/linux-cachyos-server/config b/linux-cachyos-server/configindex 5e6602ca..649a0fac 100644--- a/linux-cachyos-server/config+++ b/linux-cachyos-server/config@@ -148,7 +148,7 @@ CONFIG_PREEMPT=y# CONFIG_PREEMPT_RT is not setCONFIG_PREEMPT_COUNT=yCONFIG_PREEMPTION=y-# CONFIG_PREEMPT_DYNAMIC is not set+CONFIG_PREEMPT_DYNAMIC=yCONFIG_SCHED_CORE=yCONFIG_SCHED_CLASS_EXT=ydiff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILDindex f41abb9b..b91df3a1 100644--- a/linux-cachyos/PKGBUILD+++ b/linux-cachyos/PKGBUILD@@ -64,8 +64,7 @@### Full tickless can give higher performances in various cases but, depending on hardware, lower consistency.: "${_tickrate:=full}"-## Choose between full, lazy or dynamic-# Dynamic allows you to switch between full and lazy at runtime+## Choose between full or lazy# Full: Makes all non-critical kernel code preemptible to reduce latency# Lazy: Same as full but instead of preempting immediately it waits for signals from the scheduler# in an attempt to boost throughput.@@ -403,9 +402,8 @@ prepare() {# We should not set up the PREEMPT for RT kernelsif [[ "$_cpusched" != "rt" && "$_cpusched" != "rt-bore" ]]; thencase "$_preempt" in- full) scripts/config -d PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_LAZY;;- lazy) scripts/config -d PREEMPT_DYNAMIC -d PREEMPT -e PREEMPT_LAZY;;- dynamic) scripts/config -e PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_LAZY;;+ full) scripts/config -e PREEMPT -d PREEMPT_LAZY;;+ lazy) scripts/config -d PREEMPT -e PREEMPT_LAZY;;*) _die "The value '$_preempt' is invalid. Choose the correct one again.";;esacdiff --git a/linux-cachyos/config b/linux-cachyos/configindex 5e6602ca..649a0fac 100644--- a/linux-cachyos/config+++ b/linux-cachyos/config@@ -148,7 +148,7 @@ CONFIG_PREEMPT=y# CONFIG_PREEMPT_RT is not setCONFIG_PREEMPT_COUNT=yCONFIG_PREEMPTION=y-# CONFIG_PREEMPT_DYNAMIC is not set+CONFIG_PREEMPT_DYNAMIC=yCONFIG_SCHED_CORE=yCONFIG_SCHED_CLASS_EXT=y