Archlinux Kernel based on different schedulers and some other performance improvements.
Shell archlinuxbaby-schedcachycachy-schedulercachyoscacule-schedkernellinux-kernelperformanceperformance-tuning
5.19.rc7-2
Peter Jungc759d165f46f
diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILDindex caf8abf9..f8ec72a9 100644--- a/linux-cachyos-rc/PKGBUILD+++ b/linux-cachyos-rc/PKGBUILD@@ -118,7 +118,7 @@ _use_kcfi=_build_zfs=# Enable bcachefs-#_bcachefs=+_bcachefs=if [ -n "$_use_llvm_lto" ]; thenpkgsuffix=cachyos-rc-lto@@ -140,7 +140,7 @@ _srcname=linux-${_stable}#_srcname=linux-${_major}arch=(x86_64 x86_64_v3)pkgdesc='Linux BORE scheduler Kernel by CachyOS and with some other patches and other improvements'-pkgrel=1+pkgrel=2_kernver=$pkgver-$pkgrelarch=('x86_64' 'x86_64_v3')url="https://github.com/CachyOS/linux-cachyos"@@ -162,31 +162,40 @@ source=("config""auto-cpu-optimization.sh""${_patchsource}/all/0001-cachyos-base-rc-all-dev.patch")+## ZFS Supportif [ -n "$_build_zfs" ]; then-source+=("git+https://github.com/openzfs/zfs.git#commit=6c3c5fcfbe27d9193cd131753cc7e47ee2784621")+ source+=("git+https://github.com/openzfs/zfs.git#commit=6c3c5fcfbe27d9193cd131753cc7e47ee2784621")fi+## BMQ Schedulerif [ "$_cpusched" = "bmq" ]; then-source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fi+## PDS Schedulerif [ "$_cpusched" = "pds" ]; then-source+=("${_patchsource}/sched/0001-prjc.patch")+ source+=("${_patchsource}/sched/0001-prjc.patch")fi+## BORE Schedulerif [ "$_cpusched" = "bore" ]; then-source+=("${_patchsource}/sched/0001-bore.patch")+ source+=("${_patchsource}/sched/0001-bore.patch")fi+## CacULE Schedulerif [ "$_cpusched" = "cacule" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18-migrate.patch")+ source+=("${_patchsource}/sched/0001-cacULE-cachy.patch")fi+## CacULE-RDB Schedulerif [ "$_cpusched" = "cacule-rdb" ]; then- source+=("${_patchsource}/sched/0001-cacULE-5.18-migrate.patch")+ source+=("${_patchsource}/sched/0001-cacULE-cachy.patch")fi+#ä TT Schedulerif [ "$_cpusched" = "tt" ]; then- source+=("${_patchsource}/sched/0001-tt-5.18.patch")+ source+=("${_patchsource}/sched/0001-tt-cachy.patch")fi+## Hardened Patches with BORE Schedulerif [ "$_cpusched" = "hardened" ]; then-source+=("${_patchsource}/sched/0001-bore-sched.patch"+ source+=("${_patchsource}/sched/0001-bore-sched.patch""${_patchsource}/0001-hardening.patch")fi+## Kernel CFI Patchif [ -n "$_use_kcfi" ]; thensource+=("${_patchsource}/0001-kcfi.patch")depends+=(clang llvm lld python)@@ -196,6 +205,10 @@ if [ -n "$_use_kcfi" ]; thenLLVM=1)fi+## bcachefs Support+if [ -n "$_bcachefs" ]; then+ source+=("${_patchsource}/0001-bcachefs-after-lru.patch")+fiexport KBUILD_BUILD_HOST=archlinuxexport KBUILD_BUILD_USER=$pkgbase@@ -222,6 +235,7 @@ prepare() {echo "Setting config..."cp ../config .config+ ## Processor march manual selectionif [ -n "$_processor_opt" ]; thenMARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)MARCH2=M${MARCH}@@ -229,6 +243,7 @@ prepare() {scripts/config -k --enable CONFIG_${MARCH2}fi+ #ä CPU March autodetectionif [ -n "$_use_auto_optimization" ]; then"${srcdir}"/auto-cpu-optimization.shfi@@ -263,7 +278,7 @@ prepare() {elif [ "$_cpusched" = "cfs" ]; thenecho "Selecting Completely Fair Scheduler..."elif [ "$_cpusched" = "hardened" ]; then- echo "Selecting hardened..."+ echo "Selecting hardened patches with the BORE Scheduler..."elseif [ -n "$_cpusched" ]; thenerror "The value $_cpusched is invalid. Choose the correct one again."@@ -795,8 +810,8 @@ for _p in "${pkgname[@]}"; do}"done-sha256sums=('4cf0d0d0e46c31781a3f571845973b616c07af90d059922bdff3c6ff941bfda4'- '259af8ad931e6ec2e78271969de460f1876c7fb1b9031a7b36991ad7f2c64e02'+sha256sums=('4589a4237cb3d17061a0c940fd44e1c87796794eda64fe729c4e916c9d30c579'+ '91323784024d14a444fbf2320ded460f21e52233b7606175d9379165c911f16a''ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f'- '36f2bfaeaed866fe9cd138ccca10ca9c96830a3540f888a54e7497cb2964a757'+ '1f64b9bbd5b4ca33da5cfcb114bac63283b84df12e69ef9bda83ce6e4b076b3c''7a36fe0a53a644ade0ce85f08f9ca2ebaddd47876966b7cc9d4cae8844649271')diff --git a/linux-cachyos-rc/config b/linux-cachyos-rc/configindex fde968d9..384fd76e 100644--- a/linux-cachyos-rc/config+++ b/linux-cachyos-rc/config@@ -129,11 +129,13 @@ CONFIG_BPF_PRELOAD_UMD=mCONFIG_BPF_LSM=y# end of BPF subsystem-CONFIG_PREEMPT_VOLUNTARY_BUILD=y+CONFIG_PREEMPT_BUILD=y# CONFIG_PREEMPT_NONE is not set-CONFIG_PREEMPT_VOLUNTARY=y-# CONFIG_PREEMPT is not set-# CONFIG_PREEMPT_DYNAMIC is not set+# CONFIG_PREEMPT_VOLUNTARY is not set+CONFIG_PREEMPT=y+CONFIG_PREEMPT_COUNT=y+CONFIG_PREEMPTION=y+CONFIG_PREEMPT_DYNAMIC=yCONFIG_SCHED_CORE=y#@@ -1233,7 +1235,7 @@ CONFIG_IP_ROUTE_CLASSID=y# CONFIG_IP_PNP is not setCONFIG_NET_IPIP=mCONFIG_NET_IPGRE_DEMUX=m-CONFIG_NET_IP_TUNNEL=m+CONFIG_NET_IP_TUNNEL=yCONFIG_NET_IPGRE=mCONFIG_NET_IPGRE_BROADCAST=yCONFIG_IP_MROUTE_COMMON=y@@ -1243,7 +1245,7 @@ CONFIG_IP_PIMSM_V1=yCONFIG_IP_PIMSM_V2=yCONFIG_SYN_COOKIES=yCONFIG_NET_IPVTI=m-CONFIG_NET_UDP_TUNNEL=m+CONFIG_NET_UDP_TUNNEL=yCONFIG_NET_FOU=mCONFIG_NET_FOU_IP_TUNNELS=yCONFIG_INET_AH=m@@ -1437,7 +1439,6 @@ CONFIG_NETFILTER_XT_TARGET_LOG=mCONFIG_NETFILTER_XT_TARGET_MARK=mCONFIG_NETFILTER_XT_NAT=mCONFIG_NETFILTER_XT_TARGET_NETMAP=m-CONFIG_NETFILTER_XT_TARGET_FULLCONENAT=mCONFIG_NETFILTER_XT_TARGET_NFLOG=mCONFIG_NETFILTER_XT_TARGET_NFQUEUE=mCONFIG_NETFILTER_XT_TARGET_NOTRACK=m@@ -1599,7 +1600,6 @@ CONFIG_IP_NF_TARGET_SYNPROXY=mCONFIG_IP_NF_NAT=mCONFIG_IP_NF_TARGET_MASQUERADE=mCONFIG_IP_NF_TARGET_NETMAP=m-CONFIG_IP_NF_TARGET_FULLCONENAT=mCONFIG_IP_NF_TARGET_REDIRECT=mCONFIG_IP_NF_MANGLE=mCONFIG_IP_NF_TARGET_CLUSTERIP=m@@ -3076,6 +3076,7 @@ CONFIG_BONDING=mCONFIG_DUMMY=mCONFIG_WIREGUARD=m# CONFIG_WIREGUARD_DEBUG is not set+CONFIG_OVPN_DCO=yCONFIG_EQUALIZER=mCONFIG_NET_FC=yCONFIG_IFB=m