Skip to content

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

5.18-rc7-7

Peter Jungbb3f8019c028
diff --git a/linux-cachyos-rc/.SRCINFO b/linux-cachyos-rc/.SRCINFO
index adf3916c..fecd23f5 100755
--- a/linux-cachyos-rc/.SRCINFO
+++ b/linux-cachyos-rc/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = linux-cachyos-rc
pkgdesc = Linux CFS scheduler Kernel by CachyOS and with some other patches and other improvements
pkgver = 5.18.rc7
- pkgrel = 5
+ pkgrel = 7
url = https://github.com/CachyOS/linux-cachyos
arch = x86_64
arch = x86_64_v3
@@ -40,12 +40,11 @@ pkgbase = linux-cachyos-rc
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-futex-winesync.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-hwmon.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-kbuild.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-kcfi.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-latency_nice.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-lrng.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-lru-le9-spf.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-migrate.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-randstruct.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-ksm.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-zram-entropy-calculation.patch
source = auto-cpu-optimization.sh
sha256sums = da477700e2a5e91ae5b0a6f5c70b2618aab07aa39dcfe78106b9d742df411a24
@@ -64,12 +63,11 @@ pkgbase = linux-cachyos-rc
sha256sums = 67134052d1dc7332ba5a991ec54a2a957539bec4eb4a1a0ed0f0ad7daa8fe763
sha256sums = c1aae07261bafc711c2d66e26c2c30e444e11509cacc7aec148dc021761294cd
sha256sums = 4746c9b16f41403c78c6d20c8dc5d09f49dc8e0f73441faa260c1b6f022529aa
- sha256sums = 1f4231ba732c0c39918d744eb83d9483a9315917481ec5c3db9afd46675f8e74
sha256sums = 890e9f9953f3650a8e2523bca0fdf84ffc763367a8a792a7f3ef72eb18aed9ad
sha256sums = c8b76830adc1cbc82cc4d12859e4f4cc0006d90c9824296c8350fc6ace741ad9
sha256sums = 9d5556c194fe3dbd75125cd8e17e34cb6cc5b94d6ff24d596c52225c46fbf868
sha256sums = e8179f661dc9ba2ad89455f0c7e952e9dd9b4d6445476384cbac2730cdd46b65
- sha256sums = 916fd520eb8414f0b4dc87bd1987cff801529517fb4dc9814eb8d51435fa1146
+ sha256sums = 8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19
sha256sums = efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb
sha256sums = 65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b
diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILD
index efdb1322..f5784979 100644
--- a/linux-cachyos-rc/PKGBUILD
+++ b/linux-cachyos-rc/PKGBUILD
@@ -26,9 +26,6 @@ _makenconfig=
# See, https://bugs.archlinux.org/task/31187
_NUMAdisable=y
-## Enable Anbox
-_anbox=
-
# Compile ONLY used modules to VASTLYreduce the number of modules built
# and the build time.
#
@@ -102,6 +99,15 @@ _use_llvm_lto=
## Change the thin lto cachedir for fixing building several dkms modules including zfs
_thin_lto_cachedir=
+# KCFI is a proposed forward-edge control-flow integrity scheme for
+# Clang, which is more suitable for kernel use than the existing CFI
+# scheme used by CONFIG_CFI_CLANG. KCFI doesn't require LTO, doesn't
+# alter function references to point to a jump table, and won't break
+# function address equality.
+# ATTENTION!: you do need a patched llvm for the usage of kcfi,
+# you can find a patched llvm-git in the cachyos-repo's.
+# The packagename is called "llvm-kcfi"
+_use_kcfi=
if [ -n "$_use_llvm_lto" ]; then
pkgbase=linux-cachyos-rc-lto
@@ -120,7 +126,7 @@ _srcname=linux-${_stable}
#_srcname=linux-${_major}
arch=(x86_64 x86_64_v3)
pkgdesc='Linux CFS scheduler Kernel by CachyOS and with some other patches and other improvements'
-pkgrel=6
+pkgrel=7
arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos"
license=('GPL2')
@@ -171,16 +177,25 @@ source+=(
"${_patchsource}/0001-futex-winesync.patch"
"${_patchsource}/0001-hwmon.patch"
"${_patchsource}/0001-kbuild.patch"
- "${_patchsource}/0001-kcfi.patch"
"${_patchsource}/0001-latency_nice.patch"
"${_patchsource}/0001-lrng.patch"
"${_patchsource}/0001-lru-le9-spf.patch"
"${_patchsource}/0001-migrate.patch"
- "${_patchsource}/0001-randstruct.patch"
+ "${_patchsource}/0001-ksm.patch"
"${_patchsource}/0001-zram-entropy-calculation.patch"
"auto-cpu-optimization.sh"
)
+if [ -n "$_use_kcfi" ]; then
+source+=("${_patchsource}/0001-kcfi.patch")
+depends+=(clang llvm lld python)
+BUILD_FLAGS=(
+ CC=clang
+ LD=ld.lld
+ LLVM=1
+)
+fi
+
export KBUILD_BUILD_HOST=archlinux
export KBUILD_BUILD_USER=$pkgbase
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"
@@ -254,8 +269,8 @@ prepare() {
exit
fi
- if [ -n "$_use_cfi" ]; then
- echo "Enabling CFI"
+ if [ -n "$_use_kcfi" ]; then
+ echo "Enabling kCFI"
scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \
--enable CFI_CLANG
fi
@@ -500,10 +515,10 @@ prepare() {
--set-str ZSWAP_COMPRESSOR_DEFAULT zstd
fi
- scripts/config --enable ZRAM_ENTROPY
+ echo "Enable ZRAM_ENTROPY"
+ scripts/config --enable ZRAM_ENTROPY
echo "Enable USER_NS_UNPRIVILEGED"
scripts/config --enable USER_NS
-
echo "Enable WINE FASTSYNC"
scripts/config --enable WINESYNC
@@ -692,11 +707,10 @@ sha256sums=('da477700e2a5e91ae5b0a6f5c70b2618aab07aa39dcfe78106b9d742df411a24'
'67134052d1dc7332ba5a991ec54a2a957539bec4eb4a1a0ed0f0ad7daa8fe763'
'c1aae07261bafc711c2d66e26c2c30e444e11509cacc7aec148dc021761294cd'
'4746c9b16f41403c78c6d20c8dc5d09f49dc8e0f73441faa260c1b6f022529aa'
- '1f4231ba732c0c39918d744eb83d9483a9315917481ec5c3db9afd46675f8e74'
'890e9f9953f3650a8e2523bca0fdf84ffc763367a8a792a7f3ef72eb18aed9ad'
'c8b76830adc1cbc82cc4d12859e4f4cc0006d90c9824296c8350fc6ace741ad9'
'9d5556c194fe3dbd75125cd8e17e34cb6cc5b94d6ff24d596c52225c46fbf868'
'e8179f661dc9ba2ad89455f0c7e952e9dd9b4d6445476384cbac2730cdd46b65'
- '916fd520eb8414f0b4dc87bd1987cff801529517fb4dc9814eb8d51435fa1146'
+ '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'
'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'
'65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b')