Skip to content

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

add linux-cachyos-hardened

Peter Junge8343eafe3ee
diff --git a/linux-cachyos-hardened/.SRCINFO b/linux-cachyos-hardened/.SRCINFO
index 8a8ae3be..b5c67705 100755
--- a/linux-cachyos-hardened/.SRCINFO
+++ b/linux-cachyos-hardened/.SRCINFO
@@ -28,7 +28,7 @@ pkgbase = linux-cachyos-hardened
source = config
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/sched/0001-bore-sched.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/dev/0001-stable-rc.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-stable-rc.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/dev/0001-amd-perf.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/dev/0001-arch.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/dev/0001-bbr2.patch
@@ -40,7 +40,7 @@ pkgbase = linux-cachyos-hardened
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/dev/0001-fs-patches.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/dev/0001-futex-winesync.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/dev/0001-hwmon.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/dev/0001-hardening.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-hardening.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/dev/0001-hardened.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/dev/0001-kbuild.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/dev/0001-lrng.patch
@@ -65,7 +65,7 @@ pkgbase = linux-cachyos-hardened
sha256sums = f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e
sha256sums = 1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00
sha256sums = c1aae07261bafc711c2d66e26c2c30e444e11509cacc7aec148dc021761294cd
- sha256sums = a2701625ea310c809fd7ecdf96c43a51ba28ed1dd8583fdbc06897a0a18230e2
+ sha256sums = 65b5a8d23387a4a9831505777f25614e345e26671fc8a237f8ac4521f0713c52
sha256sums = 81673b0f46bee5bffa8807e5f87208457a43cc46668738e80d7ea1f8ee8d071e
sha256sums = 781cd26d7b0794d11f103ada94140061117c628471a4c49f0228f22f0a6cf425
sha256sums = 99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79
diff --git a/linux-cachyos-hardened/PKGBUILD b/linux-cachyos-hardened/PKGBUILD
index 18ae6df1..b5a62e28 100644
--- a/linux-cachyos-hardened/PKGBUILD
+++ b/linux-cachyos-hardened/PKGBUILD
@@ -167,7 +167,7 @@ if [ "$_cpusched" = "cfs" ]; then
source+=("${_patchsource}/0001-migrate.patch")
fi
source+=(
- "${_patchsource}/dev/0001-stable-rc.patch"
+ "${_patchsource}/0001-stable-rc.patch"
"${_patchsource}/dev/0001-amd-perf.patch"
"${_patchsource}/dev/0001-arch.patch"
"${_patchsource}/dev/0001-bbr2.patch"
@@ -179,7 +179,7 @@ source+=(
"${_patchsource}/dev/0001-fs-patches.patch"
"${_patchsource}/dev/0001-futex-winesync.patch"
"${_patchsource}/dev/0001-hwmon.patch"
- "${_patchsource}/dev/0001-hardening.patch"
+ "${_patchsource}/0001-hardening.patch"
"${_patchsource}/dev/0001-hardened.patch"
"${_patchsource}/dev/0001-kbuild.patch"
"${_patchsource}/dev/0001-lrng.patch"
@@ -729,7 +729,7 @@ sha256sums=('ef9ff2dfa5416a03e7e5fd9c308aaec385fe8ff9f4a62d957b167843849659a2'
'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e'
'1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00'
'c1aae07261bafc711c2d66e26c2c30e444e11509cacc7aec148dc021761294cd'
- 'a2701625ea310c809fd7ecdf96c43a51ba28ed1dd8583fdbc06897a0a18230e2'
+ '65b5a8d23387a4a9831505777f25614e345e26671fc8a237f8ac4521f0713c52'
'81673b0f46bee5bffa8807e5f87208457a43cc46668738e80d7ea1f8ee8d071e'
'781cd26d7b0794d11f103ada94140061117c628471a4c49f0228f22f0a6cf425'
'99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79'
diff --git a/zfs/PKGBUILD b/zfs/PKGBUILD
index da4eda2b..28888579 100644
--- a/zfs/PKGBUILD
+++ b/zfs/PKGBUILD
@@ -26,11 +26,11 @@
# 'bore' - select 'Burst-Oriented Response Enhancer'
# 'tt' - select 'Task Type Scheduler by Hamad Marri'
# 'cfs' - select 'Completely Fair Scheduler'
-_pkgcore=cachyos-bore
+_pkgcore=cachyos-hardened
# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".
# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
-_use_llvm_lto=thin
+_use_llvm_lto=
if [ -n "$_use_llvm_lto" ]; then
_linuxpostfix=${_pkgcore}-lto
diff --git a/zfs/build-zfs.sh b/zfs/build-zfs.sh
index d3ce0f41..f91586c1 100755
--- a/zfs/build-zfs.sh
+++ b/zfs/build-zfs.sh
@@ -58,6 +58,12 @@ docker rm kernelbuild-zfs
docker run --name kernelbuild-zfs -e EXPORT_PKG=1 -v $PWD:/pkg pttrr/docker-makepkg-v3
docker rm kernelbuild-zfs
+find . -name "PKGBUILD" | xargs -I {} sed -i "s/_pkgcore=cachyos-tt/_pkgcore=cachyos-hardened/" {}
+docker run --name kernelbuild-zfs -e EXPORT_PKG=1 -v $PWD:/pkg pttrr/docker-makepkg
+docker rm kernelbuild-zfs
+docker run --name kernelbuild-zfs -e EXPORT_PKG=1 -v $PWD:/pkg pttrr/docker-makepkg-v3
+docker rm kernelbuild-zfs
+
mv *-x86_64.pkg.tar.zst* /home/ptr1337/.docker/build/nginx/www/repo/x86_64/cachyos/
repoctl update -P cachyos
diff --git a/zfs/zfs.install b/zfs/zfs.install
index 79771f59..8633b483 100644
--- a/zfs/zfs.install
+++ b/zfs/zfs.install
@@ -1,4 +1,4 @@
-EXTRAMODULES='5.18.2-2-cachyos-bore-lto'
+EXTRAMODULES='5.18.2-2-cachyos-hardened'
post_install() {
depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)