Skip to content

Archlinux Kernel based on different schedulers and some other performance improvements.

stable: Bring back PREEMPT_DYNAMIC (#836)

Eric Naim3cd5f63b3685
diff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILD
index 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 kernels
if [[ "$_cpusched" != "rt" && "$_cpusched" != "rt-bore" ]]; then
case "$_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.";;
esac
diff --git a/linux-cachyos-bmq/config b/linux-cachyos-bmq/config
index 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 set
CONFIG_PREEMPT_COUNT=y
CONFIG_PREEMPTION=y
-# CONFIG_PREEMPT_DYNAMIC is not set
+CONFIG_PREEMPT_DYNAMIC=y
CONFIG_SCHED_CORE=y
CONFIG_SCHED_CLASS_EXT=y
diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILD
index 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 kernels
if [[ "$_cpusched" != "rt" && "$_cpusched" != "rt-bore" ]]; then
case "$_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.";;
esac
diff --git a/linux-cachyos-bore/config b/linux-cachyos-bore/config
index 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 set
CONFIG_PREEMPT_COUNT=y
CONFIG_PREEMPTION=y
-# CONFIG_PREEMPT_DYNAMIC is not set
+CONFIG_PREEMPT_DYNAMIC=y
CONFIG_SCHED_CORE=y
CONFIG_SCHED_CLASS_EXT=y
diff --git a/linux-cachyos-deckify/PKGBUILD b/linux-cachyos-deckify/PKGBUILD
index 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 kernels
if [[ "$_cpusched" != "rt" && "$_cpusched" != "rt-bore" ]]; then
case "$_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.";;
esac
diff --git a/linux-cachyos-deckify/config b/linux-cachyos-deckify/config
index 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 set
CONFIG_PREEMPT_COUNT=y
CONFIG_PREEMPTION=y
-# CONFIG_PREEMPT_DYNAMIC is not set
+CONFIG_PREEMPT_DYNAMIC=y
CONFIG_SCHED_CORE=y
CONFIG_SCHED_CLASS_EXT=y
diff --git a/linux-cachyos-eevdf/PKGBUILD b/linux-cachyos-eevdf/PKGBUILD
index 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 kernels
if [[ "$_cpusched" != "rt" && "$_cpusched" != "rt-bore" ]]; then
case "$_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.";;
esac
diff --git a/linux-cachyos-eevdf/config b/linux-cachyos-eevdf/config
index 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 set
CONFIG_PREEMPT_COUNT=y
CONFIG_PREEMPTION=y
-# CONFIG_PREEMPT_DYNAMIC is not set
+CONFIG_PREEMPT_DYNAMIC=y
CONFIG_SCHED_CORE=y
CONFIG_SCHED_CLASS_EXT=y
diff --git a/linux-cachyos-rt-bore/PKGBUILD b/linux-cachyos-rt-bore/PKGBUILD
index 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 kernels
if [[ "$_cpusched" != "rt" && "$_cpusched" != "rt-bore" ]]; then
case "$_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.";;
esac
diff --git a/linux-cachyos-rt-bore/config b/linux-cachyos-rt-bore/config
index 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 set
CONFIG_PREEMPT_COUNT=y
CONFIG_PREEMPTION=y
-# CONFIG_PREEMPT_DYNAMIC is not set
+CONFIG_PREEMPT_DYNAMIC=y
CONFIG_SCHED_CORE=y
CONFIG_SCHED_CLASS_EXT=y
diff --git a/linux-cachyos-server/PKGBUILD b/linux-cachyos-server/PKGBUILD
index 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 kernels
if [[ "$_cpusched" != "rt" && "$_cpusched" != "rt-bore" ]]; then
case "$_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.";;
esac
diff --git a/linux-cachyos-server/config b/linux-cachyos-server/config
index 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 set
CONFIG_PREEMPT_COUNT=y
CONFIG_PREEMPTION=y
-# CONFIG_PREEMPT_DYNAMIC is not set
+CONFIG_PREEMPT_DYNAMIC=y
CONFIG_SCHED_CORE=y
CONFIG_SCHED_CLASS_EXT=y
diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILD
index 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 kernels
if [[ "$_cpusched" != "rt" && "$_cpusched" != "rt-bore" ]]; then
case "$_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.";;
esac
diff --git a/linux-cachyos/config b/linux-cachyos/config
index 5e6602ca..649a0fac 100644
--- a/linux-cachyos/config
+++ b/linux-cachyos/config
@@ -148,7 +148,7 @@ CONFIG_PREEMPT=y
# CONFIG_PREEMPT_RT is not set
CONFIG_PREEMPT_COUNT=y
CONFIG_PREEMPTION=y
-# CONFIG_PREEMPT_DYNAMIC is not set
+CONFIG_PREEMPT_DYNAMIC=y
CONFIG_SCHED_CORE=y
CONFIG_SCHED_CLASS_EXT=y