Skip to content

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

5.19.rc7-2

Peter Jungc759d165f46f
diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILD
index 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" ]; then
pkgsuffix=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-$pkgrel
arch=('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 Support
if [ -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 Scheduler
if [ "$_cpusched" = "bmq" ]; then
-source+=("${_patchsource}/sched/0001-prjc.patch")
+ source+=("${_patchsource}/sched/0001-prjc.patch")
fi
+## PDS Scheduler
if [ "$_cpusched" = "pds" ]; then
-source+=("${_patchsource}/sched/0001-prjc.patch")
+ source+=("${_patchsource}/sched/0001-prjc.patch")
fi
+## BORE Scheduler
if [ "$_cpusched" = "bore" ]; then
-source+=("${_patchsource}/sched/0001-bore.patch")
+ source+=("${_patchsource}/sched/0001-bore.patch")
fi
+## CacULE Scheduler
if [ "$_cpusched" = "cacule" ]; then
- source+=("${_patchsource}/sched/0001-cacULE-5.18-migrate.patch")
+ source+=("${_patchsource}/sched/0001-cacULE-cachy.patch")
fi
+## CacULE-RDB Scheduler
if [ "$_cpusched" = "cacule-rdb" ]; then
- source+=("${_patchsource}/sched/0001-cacULE-5.18-migrate.patch")
+ source+=("${_patchsource}/sched/0001-cacULE-cachy.patch")
fi
+#ä TT Scheduler
if [ "$_cpusched" = "tt" ]; then
- source+=("${_patchsource}/sched/0001-tt-5.18.patch")
+ source+=("${_patchsource}/sched/0001-tt-cachy.patch")
fi
+## Hardened Patches with BORE Scheduler
if [ "$_cpusched" = "hardened" ]; then
-source+=("${_patchsource}/sched/0001-bore-sched.patch"
+ source+=("${_patchsource}/sched/0001-bore-sched.patch"
"${_patchsource}/0001-hardening.patch")
fi
+## Kernel CFI Patch
if [ -n "$_use_kcfi" ]; then
source+=("${_patchsource}/0001-kcfi.patch")
depends+=(clang llvm lld python)
@@ -196,6 +205,10 @@ if [ -n "$_use_kcfi" ]; then
LLVM=1
)
fi
+## bcachefs Support
+if [ -n "$_bcachefs" ]; then
+ source+=("${_patchsource}/0001-bcachefs-after-lru.patch")
+fi
export KBUILD_BUILD_HOST=archlinux
export KBUILD_BUILD_USER=$pkgbase
@@ -222,6 +235,7 @@ prepare() {
echo "Setting config..."
cp ../config .config
+ ## Processor march manual selection
if [ -n "$_processor_opt" ]; then
MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)
MARCH2=M${MARCH}
@@ -229,6 +243,7 @@ prepare() {
scripts/config -k --enable CONFIG_${MARCH2}
fi
+ #ä CPU March autodetection
if [ -n "$_use_auto_optimization" ]; then
"${srcdir}"/auto-cpu-optimization.sh
fi
@@ -263,7 +278,7 @@ prepare() {
elif [ "$_cpusched" = "cfs" ]; then
echo "Selecting Completely Fair Scheduler..."
elif [ "$_cpusched" = "hardened" ]; then
- echo "Selecting hardened..."
+ echo "Selecting hardened patches with the BORE Scheduler..."
else
if [ -n "$_cpusched" ]; then
error "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/config
index fde968d9..384fd76e 100644
--- a/linux-cachyos-rc/config
+++ b/linux-cachyos-rc/config
@@ -129,11 +129,13 @@ CONFIG_BPF_PRELOAD_UMD=m
CONFIG_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=y
CONFIG_SCHED_CORE=y
#
@@ -1233,7 +1235,7 @@ CONFIG_IP_ROUTE_CLASSID=y
# CONFIG_IP_PNP is not set
CONFIG_NET_IPIP=m
CONFIG_NET_IPGRE_DEMUX=m
-CONFIG_NET_IP_TUNNEL=m
+CONFIG_NET_IP_TUNNEL=y
CONFIG_NET_IPGRE=m
CONFIG_NET_IPGRE_BROADCAST=y
CONFIG_IP_MROUTE_COMMON=y
@@ -1243,7 +1245,7 @@ CONFIG_IP_PIMSM_V1=y
CONFIG_IP_PIMSM_V2=y
CONFIG_SYN_COOKIES=y
CONFIG_NET_IPVTI=m
-CONFIG_NET_UDP_TUNNEL=m
+CONFIG_NET_UDP_TUNNEL=y
CONFIG_NET_FOU=m
CONFIG_NET_FOU_IP_TUNNELS=y
CONFIG_INET_AH=m
@@ -1437,7 +1439,6 @@ CONFIG_NETFILTER_XT_TARGET_LOG=m
CONFIG_NETFILTER_XT_TARGET_MARK=m
CONFIG_NETFILTER_XT_NAT=m
CONFIG_NETFILTER_XT_TARGET_NETMAP=m
-CONFIG_NETFILTER_XT_TARGET_FULLCONENAT=m
CONFIG_NETFILTER_XT_TARGET_NFLOG=m
CONFIG_NETFILTER_XT_TARGET_NFQUEUE=m
CONFIG_NETFILTER_XT_TARGET_NOTRACK=m
@@ -1599,7 +1600,6 @@ CONFIG_IP_NF_TARGET_SYNPROXY=m
CONFIG_IP_NF_NAT=m
CONFIG_IP_NF_TARGET_MASQUERADE=m
CONFIG_IP_NF_TARGET_NETMAP=m
-CONFIG_IP_NF_TARGET_FULLCONENAT=m
CONFIG_IP_NF_TARGET_REDIRECT=m
CONFIG_IP_NF_MANGLE=m
CONFIG_IP_NF_TARGET_CLUSTERIP=m
@@ -3076,6 +3076,7 @@ CONFIG_BONDING=m
CONFIG_DUMMY=m
CONFIG_WIREGUARD=m
# CONFIG_WIREGUARD_DEBUG is not set
+CONFIG_OVPN_DCO=y
CONFIG_EQUALIZER=m
CONFIG_NET_FC=y
CONFIG_IFB=m