Skip to content

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

cacule-fix

Peter Jung81d5c758dd66
diff --git a/linux-cachyos-cacule/.SRCINFO b/linux-cachyos-cacule/.SRCINFO
index bee4422a..7581ce26 100755
--- a/linux-cachyos-cacule/.SRCINFO
+++ b/linux-cachyos-cacule/.SRCINFO
@@ -49,7 +49,7 @@ pkgbase = linux-cachyos-cacule
sha256sums = 09aa0e17190ee113a352573b2d2386cc04b522641fd277306e8ace9fd7af0037
sha256sums = ddaf45cc72ed743f70c8754505357e94d6dd4133bfde6e9c6afc59f4cc12ee69
sha256sums = 6b31e4655e5ff9dbe95fb7db665426dad2bf3e33b5102d040a256f707cc99a23
- sha256sums = 770164218529f3dac2736b5c4e36e8e2ae47feea7571425eb9725a11a18ddd3f
+ sha256sums = 85703fbf9218d3fa1cbd8d77a4edad0e6726c9aa9c740f9f863601a92dbd46ed
sha256sums = ef7d6253dc8a149ffea1293f65ef43fe9277ba6a629bc54d656f594429813b5e
sha256sums = ab87b51fcacd9c7c5bf5d363ac45dab994c2c53d0e80e552390c7cbf752d7dca
sha256sums = 748d5b112d10870ce214c5fab1cc793492416faab73637e95c0a1b877b2574b7
diff --git a/linux-cachyos-cacule/PKGBUILD b/linux-cachyos-cacule/PKGBUILD
index a26f5acc..27ce6814 100644
--- a/linux-cachyos-cacule/PKGBUILD
+++ b/linux-cachyos-cacule/PKGBUILD
@@ -743,7 +743,7 @@ sha256sums=('64ccf18380be5b5491322a3fd54904538b544e523e4bf86289dd8df7404cb10c'
'09aa0e17190ee113a352573b2d2386cc04b522641fd277306e8ace9fd7af0037'
'ddaf45cc72ed743f70c8754505357e94d6dd4133bfde6e9c6afc59f4cc12ee69'
'6b31e4655e5ff9dbe95fb7db665426dad2bf3e33b5102d040a256f707cc99a23'
- '770164218529f3dac2736b5c4e36e8e2ae47feea7571425eb9725a11a18ddd3f'
+ '85703fbf9218d3fa1cbd8d77a4edad0e6726c9aa9c740f9f863601a92dbd46ed'
'ef7d6253dc8a149ffea1293f65ef43fe9277ba6a629bc54d656f594429813b5e'
'ab87b51fcacd9c7c5bf5d363ac45dab994c2c53d0e80e552390c7cbf752d7dca'
'748d5b112d10870ce214c5fab1cc793492416faab73637e95c0a1b877b2574b7'
diff --git a/linux-cachyos/.SRCINFO b/linux-cachyos/.SRCINFO
index 37000cde..acec2828 100755
--- a/linux-cachyos/.SRCINFO
+++ b/linux-cachyos/.SRCINFO
@@ -1,4 +1,4 @@
-pkgbase = linux-cachyos-cfs
+pkgbase = linux-cachyos-lto
pkgdesc = Linux CFS scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.17.6
pkgrel = 4
@@ -61,7 +61,7 @@ pkgbase = linux-cachyos-cfs
sha256sums = 179b540f8848b03ccb1a0d12e24feab63fd0576b5e9eed8f214d6e9cb790f151
sha256sums = 65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b
-pkgname = linux-cachyos-cfs
+pkgname = linux-cachyos-lto
pkgdesc = The Linux CFS scheduler Kernel by CachyOS with other patches and improvements kernel and modules
depends = coreutils
depends = kmod
@@ -73,6 +73,6 @@ pkgname = linux-cachyos-cfs
provides = WIREGUARD-MODULE
provides = KSMBD-MODULE
-pkgname = linux-cachyos-cfs-headers
+pkgname = linux-cachyos-lto-headers
pkgdesc = Headers and scripts for building modules for the Linux CFS scheduler Kernel by CachyOS with other patches and improvements kernel
depends = pahole
diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILD
index 4cae6424..d093692a 100644
--- a/linux-cachyos/PKGBUILD
+++ b/linux-cachyos/PKGBUILD
@@ -106,9 +106,11 @@ _thin_lto_cachedir=
_use_cfi=
if [ -n "$_use_llvm_lto" ]; then
- pkgbase=linux-cachyos-${_cpusched}-lto
+# pkgbase=linux-cachyos-${_cpusched}-lto
+ pkgbase=linux-cachyos-lto
else
- pkgbase=linux-cachyos-${_cpusched}
+# pkgbase=linux-cachyos-${_cpusched}
+ pkgbase=linux-cachyos-lto
fi
_major=5.17
_minor=6
diff --git a/linux-cacule-rdb/.SRCINFO b/linux-cacule-rdb/.SRCINFO
index 70b1c045..fa560500 100755
--- a/linux-cacule-rdb/.SRCINFO
+++ b/linux-cacule-rdb/.SRCINFO
@@ -49,7 +49,7 @@ pkgbase = linux-cacule-rdb
sha256sums = 09aa0e17190ee113a352573b2d2386cc04b522641fd277306e8ace9fd7af0037
sha256sums = ddaf45cc72ed743f70c8754505357e94d6dd4133bfde6e9c6afc59f4cc12ee69
sha256sums = 6b31e4655e5ff9dbe95fb7db665426dad2bf3e33b5102d040a256f707cc99a23
- sha256sums = 770164218529f3dac2736b5c4e36e8e2ae47feea7571425eb9725a11a18ddd3f
+ sha256sums = 85703fbf9218d3fa1cbd8d77a4edad0e6726c9aa9c740f9f863601a92dbd46ed
sha256sums = ef7d6253dc8a149ffea1293f65ef43fe9277ba6a629bc54d656f594429813b5e
sha256sums = ab87b51fcacd9c7c5bf5d363ac45dab994c2c53d0e80e552390c7cbf752d7dca
sha256sums = 748d5b112d10870ce214c5fab1cc793492416faab73637e95c0a1b877b2574b7
diff --git a/linux-cacule-rdb/PKGBUILD b/linux-cacule-rdb/PKGBUILD
index 69ef4f24..3d1e6ad6 100644
--- a/linux-cacule-rdb/PKGBUILD
+++ b/linux-cacule-rdb/PKGBUILD
@@ -743,7 +743,7 @@ sha256sums=('64ccf18380be5b5491322a3fd54904538b544e523e4bf86289dd8df7404cb10c'
'09aa0e17190ee113a352573b2d2386cc04b522641fd277306e8ace9fd7af0037'
'ddaf45cc72ed743f70c8754505357e94d6dd4133bfde6e9c6afc59f4cc12ee69'
'6b31e4655e5ff9dbe95fb7db665426dad2bf3e33b5102d040a256f707cc99a23'
- '770164218529f3dac2736b5c4e36e8e2ae47feea7571425eb9725a11a18ddd3f'
+ '85703fbf9218d3fa1cbd8d77a4edad0e6726c9aa9c740f9f863601a92dbd46ed'
'ef7d6253dc8a149ffea1293f65ef43fe9277ba6a629bc54d656f594429813b5e'
'ab87b51fcacd9c7c5bf5d363ac45dab994c2c53d0e80e552390c7cbf752d7dca'
'748d5b112d10870ce214c5fab1cc793492416faab73637e95c0a1b877b2574b7'
diff --git a/linux-cacule/.SRCINFO b/linux-cacule/.SRCINFO
index d562b004..78c0ec63 100755
--- a/linux-cacule/.SRCINFO
+++ b/linux-cacule/.SRCINFO
@@ -49,7 +49,7 @@ pkgbase = linux-cacule
sha256sums = 09aa0e17190ee113a352573b2d2386cc04b522641fd277306e8ace9fd7af0037
sha256sums = ddaf45cc72ed743f70c8754505357e94d6dd4133bfde6e9c6afc59f4cc12ee69
sha256sums = 6b31e4655e5ff9dbe95fb7db665426dad2bf3e33b5102d040a256f707cc99a23
- sha256sums = 770164218529f3dac2736b5c4e36e8e2ae47feea7571425eb9725a11a18ddd3f
+ sha256sums = 85703fbf9218d3fa1cbd8d77a4edad0e6726c9aa9c740f9f863601a92dbd46ed
sha256sums = ef7d6253dc8a149ffea1293f65ef43fe9277ba6a629bc54d656f594429813b5e
sha256sums = ab87b51fcacd9c7c5bf5d363ac45dab994c2c53d0e80e552390c7cbf752d7dca
sha256sums = 748d5b112d10870ce214c5fab1cc793492416faab73637e95c0a1b877b2574b7
diff --git a/linux-cacule/PKGBUILD b/linux-cacule/PKGBUILD
index d3f02a16..f60d842b 100644
--- a/linux-cacule/PKGBUILD
+++ b/linux-cacule/PKGBUILD
@@ -743,7 +743,7 @@ sha256sums=('64ccf18380be5b5491322a3fd54904538b544e523e4bf86289dd8df7404cb10c'
'09aa0e17190ee113a352573b2d2386cc04b522641fd277306e8ace9fd7af0037'
'ddaf45cc72ed743f70c8754505357e94d6dd4133bfde6e9c6afc59f4cc12ee69'
'6b31e4655e5ff9dbe95fb7db665426dad2bf3e33b5102d040a256f707cc99a23'
- '770164218529f3dac2736b5c4e36e8e2ae47feea7571425eb9725a11a18ddd3f'
+ '85703fbf9218d3fa1cbd8d77a4edad0e6726c9aa9c740f9f863601a92dbd46ed'
'ef7d6253dc8a149ffea1293f65ef43fe9277ba6a629bc54d656f594429813b5e'
'ab87b51fcacd9c7c5bf5d363ac45dab994c2c53d0e80e552390c7cbf752d7dca'
'748d5b112d10870ce214c5fab1cc793492416faab73637e95c0a1b877b2574b7'
diff --git a/zfs/PKGBUILD b/zfs/PKGBUILD
index 4f25a4e2..1771b916 100644
--- a/zfs/PKGBUILD
+++ b/zfs/PKGBUILD
@@ -30,7 +30,7 @@ _pkgcore=cachyos
# 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=
+_use_llvm_lto=thin
if [ -n "$_use_llvm_lto" ]; then
_linuxpostfix=${_pkgcore}-lto
@@ -43,6 +43,7 @@ _kernver=5.17.6-4
pkgname="${_linuxprefix}-zfs"
pkgver=2.1.4
pkgrel=8
+options=('!buildcache')
pkgdesc='Kernel modules for the Zettabyte File System.'
arch=('x86_64' 'x86_64_v3')
url="http://zfsonlinux.org/"
@@ -56,13 +57,16 @@ source=("https://github.com/zfsonlinux/zfs/releases/download/zfs-${pkgver}/zfs-$
sha256sums=('3b52c0d493f806f638dca87dde809f53861cd318c1ebb0e60daeaa061cf1acf6')
if [ -n "$_use_llvm_lto" ]; then
depends+=(clang llvm lld python)
+ BUILD_FLAGS=(
+ LLVM=1
+ LLVM_IAS=1
+ )
fi
build() {
cd "zfs-${pkgver}"
if [ -n "$_use_llvm_lto" ]; then
- export CC=clang LD=ld.lld LLVM=1 LLVM_IAS=1
./autogen.sh
sed -i "s|\$(uname -r)|${_kernver}-${_linuxpostfix}|g" configure
./configure KERNEL_LLVM=1 --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin --libdir=/usr/lib \
@@ -79,7 +83,7 @@ else
--with-linux=/usr/lib/modules/${_kernver}-${_linuxpostfix}/build \
--with-linux-obj=/usr/lib/modules/${_kernver}-${_linuxpostfix}/build
fi
- make
+ make ${BUILD_FLAGS[*]}
}
package(){
diff --git a/zfs/zfs.install b/zfs/zfs.install
index 4cd4885c..992f1308 100644
--- a/zfs/zfs.install
+++ b/zfs/zfs.install
@@ -1,13 +1,16 @@
-EXTRAMODULES='${_kernver}-${_linuxpostfix}'
+EXTRAMODULES='5.17.6-4-cachyos-lto'
post_install() {
depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+ mkinitcpio -P
}
post_upgrade() {
depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+ mkinitcpio -P
}
post_remove() {
depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+ mkinitcpio -P
}