Skip to content

Commit ed8597f

Browse files
committed
linux-cachyos-rc: Disable dynamic preemption
By observing a few results, it is observed that dynamic preemption can somehow blur the results between the various preemption models. One example is [1] where there seems to be a 5% difference in throughput between voluntary vs full with dynamic preemption disabled but then the difference goes to a measly 0.6% when dynamic preemption is enabled. I've also been able to reproduce this behaviour across various benchmarks, one of them shared in [2]. Due to that, let's disable dynamic preemption for all kernel configurations (or atleast the default) [1] https://lore.kernel.org/all/[email protected]/ [2] #339 Signed-off-by: Eric Naim <[email protected]>
1 parent 9665091 commit ed8597f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

linux-cachyos-rc/.SRCINFO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pkgbase = linux-cachyos-rc
2828
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.13/misc/dkms-clang.patch
2929
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.13/sched/0001-bore-cachy.patch
3030
b2sums = e82921a5852d76802004fa3764f60a916b5a2382d81ec593b63421bdfd09a2222c8afe91905abcbb1d9a4bbb270808cb247ca7f63f1db70abba39c7507133834
31-
b2sums = 62156108dc2cf8b2421ca4a90d1281267ba6867b7f8ed11e346a44a88bb699667af405fb4d12e4f72a8815dfb8fbf9c32120270d0455e21ca262cffe982829e9
31+
b2sums = b253a968c5a0e28154861b5abe420456d3b5d7d311beb1e7a2a213396600c6be64b8f420d613685d857dfaf52fd9c87bf241320c9f60bf87c7fd59a71acc156e
3232
b2sums = 390c7b80608e9017f752b18660cc18ad1ec69f0aab41a2edfcfc26621dcccf5c7051c9d233d9bdf1df63d5f1589549ee0ba3a30e43148509d27dafa9102c19ab
3333
b2sums = 1e4cf21d220271d0d63ea23ae13f3172a286eeb858c00d12900bde1691dcf7a0825560f991d97d40f23107aabdada02127b7deb6fead0c1ade0d73ba684e883a
3434
b2sums = c7294a689f70b2a44b0c4e9f00c61dbd59dd7063ecbe18655c4e7f12e21ed7c5bb4f5169f5aa8623b1c59de7b2667facb024913ecb9f4c650dabce4e8a7e5452

linux-cachyos-rc/PKGBUILD

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,8 @@ prepare() {
422422
[ -z "$_preempt" ] && _die "The value is empty. Choose the correct one again."
423423

424424
case "$_preempt" in
425-
full) scripts/config -e PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_VOLUNTARY -d PREEMPT_LAZY -d PREEMPT_NONE;;
426-
lazy) scripts/config -e PREEMPT_DYNAMIC -d PREEMPT -d PREEMPT_VOLUNTARY -e PREEMPT_LAZY -d PREEMPT_NONE;;
425+
full) scripts/config -d PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_VOLUNTARY -d PREEMPT_LAZY -d PREEMPT_NONE;;
426+
lazy) scripts/config -d PREEMPT_DYNAMIC -d PREEMPT -d PREEMPT_VOLUNTARY -e PREEMPT_LAZY -d PREEMPT_NONE;;
427427
voluntary) scripts/config -d PREEMPT_DYNAMIC -e PREEMPT_VOLUNTARY_BUILD -d PREEMPT -e PREEMPT_VOLUNTARY -d PREEMPT_LAZY -d PREEMPT_NONE;;
428428
none) scripts/config -d PREEMPT_DYNAMIC -e PREEMPT_NONE_BUILD -d PREEMPT -d PREEMPT_VOLUNTARY -d PREEMPT_LAZY -e PREEMPT_NONE;;
429429
*) _die "The value '$_preempt' is invalid. Choose the correct one again.";;
@@ -832,7 +832,7 @@ for _p in "${pkgname[@]}"; do
832832
done
833833

834834
b2sums=('e82921a5852d76802004fa3764f60a916b5a2382d81ec593b63421bdfd09a2222c8afe91905abcbb1d9a4bbb270808cb247ca7f63f1db70abba39c7507133834'
835-
'62156108dc2cf8b2421ca4a90d1281267ba6867b7f8ed11e346a44a88bb699667af405fb4d12e4f72a8815dfb8fbf9c32120270d0455e21ca262cffe982829e9'
835+
'b253a968c5a0e28154861b5abe420456d3b5d7d311beb1e7a2a213396600c6be64b8f420d613685d857dfaf52fd9c87bf241320c9f60bf87c7fd59a71acc156e'
836836
'390c7b80608e9017f752b18660cc18ad1ec69f0aab41a2edfcfc26621dcccf5c7051c9d233d9bdf1df63d5f1589549ee0ba3a30e43148509d27dafa9102c19ab'
837837
'1e4cf21d220271d0d63ea23ae13f3172a286eeb858c00d12900bde1691dcf7a0825560f991d97d40f23107aabdada02127b7deb6fead0c1ade0d73ba684e883a'
838838
'c7294a689f70b2a44b0c4e9f00c61dbd59dd7063ecbe18655c4e7f12e21ed7c5bb4f5169f5aa8623b1c59de7b2667facb024913ecb9f4c650dabce4e8a7e5452'

linux-cachyos-rc/config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ CONFIG_PREEMPT=y
140140
# CONFIG_PREEMPT_RT is not set
141141
CONFIG_PREEMPT_COUNT=y
142142
CONFIG_PREEMPTION=y
143-
CONFIG_PREEMPT_DYNAMIC=y
143+
# CONFIG_PREEMPT_DYNAMIC is not set
144144
CONFIG_SCHED_CORE=y
145145
CONFIG_SCHED_CLASS_EXT=y
146146

0 commit comments

Comments
 (0)