Archlinux Kernel based on different schedulers and some other performance improvements.
Shell archlinuxbaby-schedcachycachy-schedulercachyoscacule-schedkernellinux-kernelperformanceperformance-tuning
linux-cachyos-rc: Preemption Bits & Config Updates (#345)
Eric Naim9b1480b28fc6
diff --git a/linux-cachyos-rc/.SRCINFO b/linux-cachyos-rc/.SRCINFOindex 74b0f615..db616f43 100644--- a/linux-cachyos-rc/.SRCINFO+++ b/linux-cachyos-rc/.SRCINFO@@ -28,11 +28,11 @@ pkgbase = linux-cachyos-rcsource = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.13/misc/dkms-clang.patchsource = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.13/sched/0001-bore-cachy.patchb2sums = 0e17a46b6de4138a252643beaaf6fc8e4e2ce6b8f3cc7becbba6b90fc7336959b0a4f5f04d7805c3baa59198042664b672c2d0612d7ff4b607c8b49fb2976c78- b2sums = cf28325c80bd4e642d8b51d111b72f3c3c5aec37c515a5e38c3de3d4ee72e68c832f4dcb71c7962e76546353d7ad479902ee03c214d555b9bddf67562b8fca59+ b2sums = ec86c7024cf1b209c217d10d0f3db0052871308177d4e56922bf1629cecee2a5dfef3c456cec55d566afcfd915e631fba9b26fa2ebacf829f000944060c41210b2sums = b1e964389424d43c398a76e7cee16a643ac027722b91fe59022afacb19956db5856b2808ca0dd484f6d0dfc170482982678d7a9a00779d98cd62d5105200a667b2sums = 42ad9bbddc7c395650254bb75232750f7ec145ba7bd4eff8f56b188706c61d498c4d326a8d96d9abee1fd3f7344a2a29c0afa55fb7fd70a4525769924a6af0c0b2sums = c7294a689f70b2a44b0c4e9f00c61dbd59dd7063ecbe18655c4e7f12e21ed7c5bb4f5169f5aa8623b1c59de7b2667facb024913ecb9f4c650dabce4e8a7e5452- b2sums = e03ff296488ca4f613ebe6df4c6ae0073864f012db520c36a4b508b8959abf1dcb7dec6782b524a025c9eb3d7e4656e42a6484004ff2c4b09c924eac413fa714+ b2sums = 85d4c6c80e0e4d4eaf9fd04228782e5c81d5680ac1925a70adaf1037d56ae8283797250f222f86099e20cbadceb941e3d1b5842a13e02b0ed6ab21a4702815d2pkgname = linux-cachyos-rcpkgdesc = The Linux BORE + LTO + Cachy Sauce Kernel by CachyOS with other patches and improvements - Release Candidate kernel and modulesdiff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILDindex 71acbf17..ed085961 100644--- a/linux-cachyos-rc/PKGBUILD+++ b/linux-cachyos-rc/PKGBUILD@@ -76,7 +76,7 @@ _HZ_ticks=${_HZ_ticks-1000}### Full tickless can give higher performances in various cases but, depending on hardware, lower consistency._tickrate=${_tickrate-full}-## Choose between full(low-latency), voluntary or server+## Choose between full(low-latency), lazy, voluntary or none_preempt=${_preempt-full}### Transparent Hugepages@@ -333,8 +333,8 @@ prepare() {cachyos|bore|hardened) scripts/config -e SCHED_BORE;;bmq) scripts/config -e SCHED_ALT -e SCHED_BMQ;;eevdf) ;;- rt) scripts/config -d PREEMPT -d PREEMPT_DYNAMIC -e PREEMPT_RT;;- rt-bore) scripts/config -e SCHED_BORE -d PREEMPT -d PREEMPT_DYNAMIC -e PREEMPT_RT;;+ rt) scripts/config -d PREEMPT -e PREEMPT_RT;;+ rt-bore) scripts/config -e SCHED_BORE -d PREEMPT -e PREEMPT_RT;;*) _die "The value $_cpusched is invalid. Choose the correct one again.";;esac@@ -418,9 +418,10 @@ prepare() {[ -z "$_preempt" ] && _die "The value is empty. Choose the correct one again."case "$_preempt" in- full) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -d PREEMPT_VOLUNTARY -e PREEMPT -e PREEMPT_COUNT -e PREEMPTION -e PREEMPT_DYNAMIC;;- voluntary) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -e PREEMPT_VOLUNTARY -d PREEMPT -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_DYNAMIC;;- server) scripts/config -e PREEMPT_NONE_BUILD -e PREEMPT_NONE -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPTION -d PREEMPT_DYNAMIC;;+ full) scripts/config -e PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_VOLUNTARY -d PREEMPT_LAZY -d PREEMPT_NONE;;+ lazy) scripts/config -e PREEMPT_DYNAMIC -d PREEMPT -d PREEMPT_VOLUNTARY -e PREEMPT_LAZY -d PREEMPT_NONE;;+ voluntary) scripts/config -d PREEMPT_DYNAMIC -e PREEMPT_VOLUNTARY_BUILD -d PREEMPT -e PREEMPT_VOLUNTARY -d PREEMPT_LAZY -d PREEMPT_NONE;;+ none) scripts/config -d PREEMPT_DYNAMIC -e PREEMPT_NONE_BUILD -d PREEMPT -d PREEMPT_VOLUNTARY -d PREEMPT_LAZY -e PREEMPT_NONE;;*) _die "The value '$_preempt' is invalid. Choose the correct one again.";;esac@@ -800,8 +801,8 @@ for _p in "${pkgname[@]}"; dodoneb2sums=('0e17a46b6de4138a252643beaaf6fc8e4e2ce6b8f3cc7becbba6b90fc7336959b0a4f5f04d7805c3baa59198042664b672c2d0612d7ff4b607c8b49fb2976c78'- 'cf28325c80bd4e642d8b51d111b72f3c3c5aec37c515a5e38c3de3d4ee72e68c832f4dcb71c7962e76546353d7ad479902ee03c214d555b9bddf67562b8fca59'+ 'ec86c7024cf1b209c217d10d0f3db0052871308177d4e56922bf1629cecee2a5dfef3c456cec55d566afcfd915e631fba9b26fa2ebacf829f000944060c41210''b1e964389424d43c398a76e7cee16a643ac027722b91fe59022afacb19956db5856b2808ca0dd484f6d0dfc170482982678d7a9a00779d98cd62d5105200a667''42ad9bbddc7c395650254bb75232750f7ec145ba7bd4eff8f56b188706c61d498c4d326a8d96d9abee1fd3f7344a2a29c0afa55fb7fd70a4525769924a6af0c0''c7294a689f70b2a44b0c4e9f00c61dbd59dd7063ecbe18655c4e7f12e21ed7c5bb4f5169f5aa8623b1c59de7b2667facb024913ecb9f4c650dabce4e8a7e5452'- 'e03ff296488ca4f613ebe6df4c6ae0073864f012db520c36a4b508b8959abf1dcb7dec6782b524a025c9eb3d7e4656e42a6484004ff2c4b09c924eac413fa714')+ '85d4c6c80e0e4d4eaf9fd04228782e5c81d5680ac1925a70adaf1037d56ae8283797250f222f86099e20cbadceb941e3d1b5842a13e02b0ed6ab21a4702815d2')diff --git a/linux-cachyos-rc/config b/linux-cachyos-rc/configindex 488ec324..5737b861 100644--- a/linux-cachyos-rc/config+++ b/linux-cachyos-rc/config@@ -11,8 +11,8 @@ CONFIG_AS_VERSION=24300CONFIG_LD_IS_BFD=yCONFIG_LD_VERSION=24300CONFIG_LLD_VERSION=0-CONFIG_RUSTC_VERSION=108200-CONFIG_RUSTC_LLVM_VERSION=190101+CONFIG_RUSTC_VERSION=108300+CONFIG_RUSTC_LLVM_VERSION=180108CONFIG_CC_CAN_LINK=yCONFIG_CC_CAN_LINK_STATIC=yCONFIG_CC_HAS_ASM_GOTO_OUTPUT=y@@ -135,8 +135,9 @@ CONFIG_PREEMPT_BUILD=yCONFIG_ARCH_HAS_PREEMPT_LAZY=y# CONFIG_PREEMPT_NONE is not set# CONFIG_PREEMPT_VOLUNTARY is not set-# CONFIG_PREEMPT is not set-CONFIG_PREEMPT_LAZY=y+CONFIG_PREEMPT=y+# CONFIG_PREEMPT_RT is not set+# CONFIG_PREEMPT_LAZY is not setCONFIG_PREEMPT_COUNT=yCONFIG_PREEMPTION=yCONFIG_PREEMPT_DYNAMIC=y@@ -608,6 +609,9 @@ CONFIG_HAVE_LIVEPATCH=yCONFIG_X86_BUS_LOCK_DETECT=y# end of Processor type and features+CONFIG_CC_HAS_NAMED_AS=y+CONFIG_CC_HAS_NAMED_AS_FIXED_SANITIZERS=y+CONFIG_USE_X86_SEG_SUPPORT=yCONFIG_CC_HAS_SLS=yCONFIG_CC_HAS_RETURN_THUNK=yCONFIG_CC_HAS_ENTRY_PADDING=y@@ -6231,6 +6235,7 @@ CONFIG_REGULATOR_BD957XMUF=mCONFIG_REGULATOR_BD96801=mCONFIG_REGULATOR_CPCAP=mCONFIG_REGULATOR_CROS_EC=m+CONFIG_REGULATOR_DA903X=mCONFIG_REGULATOR_DA9052=mCONFIG_REGULATOR_DA9055=mCONFIG_REGULATOR_DA9062=m@@ -12424,7 +12429,9 @@ CONFIG_DEBUG_INFO_BTF_MODULES=yCONFIG_GDB_SCRIPTS=yCONFIG_FRAME_WARN=2048CONFIG_STRIP_ASM_SYMS=y+# CONFIG_READABLE_ASM is not set# CONFIG_HEADERS_INSTALL is not set+# CONFIG_DEBUG_SECTION_MISMATCH is not setCONFIG_SECTION_MISMATCH_WARN_ONLY=yCONFIG_OBJTOOL=y# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set@@ -12547,7 +12554,6 @@ CONFIG_SCHED_INFO=yCONFIG_SCHEDSTATS=y# end of Scheduler Debugging-# CONFIG_DEBUG_TIMEKEEPING is not set# CONFIG_DEBUG_PREEMPT is not set#diff --git a/linux-cachyos-server/.SRCINFO b/linux-cachyos-server/.SRCINFOindex fc0f0d9f..52db199e 100644--- a/linux-cachyos-server/.SRCINFO+++ b/linux-cachyos-server/.SRCINFO@@ -22,12 +22,10 @@ pkgbase = linux-cachyos-serversource = configsource = auto-cpu-optimization.shsource = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.12/all/0001-cachyos-base-all.patch- source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.12/misc/0001-preempt-lazy.patchb2sums = de3f4dec2fc7e36711c68683d6564d0c3ce6fe728ffa6a629604e2fa9e489dbab45fd6676343f6e68bafbd202a3e814e82a1448b46844e34046b9f82f819b8f4b2sums = d5f647e8517b423cb3dec37b5b3a65c90c8dcedf36187fb5024a650dfb1817f6cde5f1b0a588a96c374e4b4e78dd7d534b6aa273ed28510e5c0900b96fc48049b2sums = b1e964389424d43c398a76e7cee16a643ac027722b91fe59022afacb19956db5856b2808ca0dd484f6d0dfc170482982678d7a9a00779d98cd62d5105200a667b2sums = 158349b76cd1a08fd1ca2eaa6cce1573fa39eab4641b69baaafbdf4cad1890377762bdd6c76a4731c4ddce8b98b4ed6fd302df02b93b59e17ebfa50265cedce7- b2sums = b76ae29d820d1be66e10c80b2333649f4e28e5ad7103796dc34a878903136ad9df764ad881f2a9dec95f42ff7e4c7c96e357829caaa2851d8c783e6670fc92bapkgname = linux-cachyos-serverpkgdesc = The Linux EEVDF scheduler Kernel by CachyOS targeted for Servers workloads kernel and modulesdiff --git a/linux-cachyos-server/PKGBUILD b/linux-cachyos-server/PKGBUILDindex 3872febf..868e36e1 100644--- a/linux-cachyos-server/PKGBUILD+++ b/linux-cachyos-server/PKGBUILD@@ -76,8 +76,8 @@ _HZ_ticks=${_HZ_ticks-300}### Full tickless can give higher performances in various cases but, depending on hardware, lower consistency._tickrate=${_tickrate-idle}-## Choose between full(low-latency), voluntary, server or lazy-_preempt=${_preempt-lazy}+## Choose between full(low-latency), voluntary, server+_preempt=${_preempt-server}### Transparent Hugepages# ATTENTION - one of two predefined values should be selected!@@ -196,8 +196,7 @@ source=("https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz""config""auto-cpu-optimization.sh"- "${_patchsource}/all/0001-cachyos-base-all.patch"- "${_patchsource}/misc/0001-preempt-lazy.patch")+ "${_patchsource}/all/0001-cachyos-base-all.patch")# LLVM makedependsif _is_clang_kernel; then@@ -397,9 +396,9 @@ prepare() {[ -z "$_preempt" ] && _die "The value is empty. Choose the correct one again."case "$_preempt" in- full) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -d PREEMPT_VOLUNTARY -e PREEMPT -e PREEMPT_COUNT -e PREEMPTION -e PREEMPT_DYNAMIC;;- voluntary) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -e PREEMPT_VOLUNTARY -d PREEMPT -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_DYNAMIC;;- server) scripts/config -e PREEMPT_NONE_BUILD -e PREEMPT_NONE -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPTION -d PREEMPT_DYNAMIC;;+ full) scripts/config -e PREEMPT_DYNAMIC -e PREEMPT -d PREEMPT_VOLUNTARY -d PREEMPT_NONE;;+ voluntary) scripts/config -d PREEMPT_DYNAMIC -e PREEMPT_VOLUNTARY_BUILD -d PREEMPT -e PREEMPT_VOLUNTARY -d PREEMPT_NONE;;+ server) scripts/config -d PREEMPT_DYNAMIC -e PREEMPT_NONE_BUILD -d PREEMPT -d PREEMPT_VOLUNTARY -e PREEMPT_NONE;;*) _die "The value '$_preempt' is invalid. Choose the correct one again.";;esac@@ -763,5 +762,4 @@ doneb2sums=('de3f4dec2fc7e36711c68683d6564d0c3ce6fe728ffa6a629604e2fa9e489dbab45fd6676343f6e68bafbd202a3e814e82a1448b46844e34046b9f82f819b8f4''d5f647e8517b423cb3dec37b5b3a65c90c8dcedf36187fb5024a650dfb1817f6cde5f1b0a588a96c374e4b4e78dd7d534b6aa273ed28510e5c0900b96fc48049''b1e964389424d43c398a76e7cee16a643ac027722b91fe59022afacb19956db5856b2808ca0dd484f6d0dfc170482982678d7a9a00779d98cd62d5105200a667'- '158349b76cd1a08fd1ca2eaa6cce1573fa39eab4641b69baaafbdf4cad1890377762bdd6c76a4731c4ddce8b98b4ed6fd302df02b93b59e17ebfa50265cedce7'- 'b76ae29d820d1be66e10c80b2333649f4e28e5ad7103796dc34a878903136ad9df764ad881f2a9dec95f42ff7e4c7c96e357829caaa2851d8c783e6670fc92ba')+ '158349b76cd1a08fd1ca2eaa6cce1573fa39eab4641b69baaafbdf4cad1890377762bdd6c76a4731c4ddce8b98b4ed6fd302df02b93b59e17ebfa50265cedce7')