Skip to content

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

5.17.3-5

Peter Jung0294b49eaa2c
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
deleted file mode 100755
index d2aa6e7e..00000000
--- a/.github/workflows/main.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-name: PKGBUILD CI
-on:
- workflow_dispatch:
-jobs:
- pkgbuild:
- runs-on: [self-hosted, linux, x64]
- steps:
- - name: Checkout
- uses: actions/checkout@v2
- - name: Login to Docker Hub
- uses: docker/login-action@v1
- with:
- username: ${{ secrets.DOCKERHUB_USERNAME }}
- password: ${{ secrets.DOCKERHUB_TOKEN }}
- - name: Checkout
- run: |
- chmod +x ./script.sh
- sh script.sh
diff --git a/linux-bore/.SRCINFO b/linux-bore/.SRCINFO
index 5e84791e..35a0076f 100755
--- a/linux-bore/.SRCINFO
+++ b/linux-bore/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = linux-bore
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.17.3
- pkgrel = 4
+ pkgrel = 5
url = https://github.com/CachyOS/linux-cachyos
arch = x86_64
arch = x86_64_v3
@@ -30,41 +30,39 @@ pkgbase = linux-bore
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0001-arch.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0002-anbox.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0003-bbr2.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0004-fs-patches.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0005-cachy.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0006-clearlinux.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0007-cpu-patches.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0008-fixes-miscellaneous.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0009-fixes.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0010-hwmon.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0011-MG-LRU.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0012-spf-lru.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0014-v4l2loopback.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0015-xanmod.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0016-lrng.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0017-le9.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0018-ck-hrtimer.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0004-cachy.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0005-clearlinux.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0006-cpu.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0007-fixes-miscellaneous.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0008-fs-patches.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0009-hwmon.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0010-MG-LRU.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0011-spf-lru.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0012-v4l2loopback.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0013-xanmod.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0014-lrng.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0015-le9.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0016-ck-hrtimer.patch
source = auto-cpu-optimization.sh
sha256sums = 32d0a8e366b87e1cbde951b9f7a01287546670ba60fac35cccfc8a7c005a162c
- sha256sums = db9bea739fad4ced06fad88b8f86824436899ac06e04d6a0cc4b037856e4aeba
- sha256sums = 9bcdb1bff0acc3ed43c985fb04e5df01aff17d16bdc4686e0daae0d7326230be
- sha256sums = 86881dd86c0982d86b66aca11f440ce3a0c88a28fb7120fdf8f7d6ad7d328e05
- sha256sums = 7616bde11139d419ef190f2870e3a848b7157b9a4dc769a6f1ff59cb99508126
- sha256sums = 576d14d12b54a8756117d4839fa63241fcde0ff7799ddfd07f0b25e7e852407c
- sha256sums = 3b9a5a31c77e1b708793fd735ad82bd5906f0d8c0b055eae03ea0242ef83509c
- sha256sums = a801630a75a59363c99144836a13aef4f36f93b3b5b64299faa11e21e329cfe4
- sha256sums = 440f463d88183ced1ca0e1e8dafa227e6c0212752de7a0d5203e293e8ccb2f88
- sha256sums = 7c76f76baccf3ca163f7889bb3d5b28a0551b94cd08312a63581b6df9f439693
- sha256sums = bda7360b44d033dc274649d4c99e252321145162cbe7463ac1f97d79eae7101e
- sha256sums = cf3554d737c52663dd3048906788c28ade3e53a660049ea0bdb792f096965c70
- sha256sums = 8de7224e9d84605b7498dd003018dc94cc421d9871500ae885176f051fe048f8
- sha256sums = f6e422d11a5389c5da330501a2a816f9fc088627124ab0910252dfa4d5eac367
- sha256sums = ea4174aa8fbeb309c17fb0aedb4eacbf269ba02123d28067ec46142823782ca7
- sha256sums = 1e486bf2a8d33762ed429569d4220a218e1d6db0e96d7cfb57e4ed8090a349bf
- sha256sums = 6d2c65532a81468d15f8fb326837eef12f07e10c24e7219fc49c941eb40450db
- sha256sums = c921936c051dd5efe66d7b53eb03a2f26b14b138047cd76702ba6cedf4474432
- sha256sums = 98d833fb1616e1ef7332e73f3d0ee8dcd58ceca5e5d30279944e9d4b9003d991
- sha256sums = 84249d7d74d8510c12a2a0511064eade53ee36f69180f9f0e738615611a0afb2
+ sha256sums = b304bc70ea0fcea5964cf54275bc050b3f34886c10430816a13f7824b0b82738
+ sha256sums = 0f99f7935f545033eff35b5e4ffa54142c31c7034ee801cd1534fe085351f019
+ sha256sums = e7a81fb26bb61875c07ba83075522d3d1c1ed463581c7067404a91bc724340b8
+ sha256sums = dea401c0efff7f7979b91b1a32524646d0bab38191d70daf18924f944a4f1fd5
+ sha256sums = 9962cab7ce58729912c70f2dce345d088c0c61f640e0bd9ee2975d571b08a0d2
+ sha256sums = 9710c78919d651e2266391c129bf89557ee09aabeaa7935ae798c037d3c7c0cc
+ sha256sums = 6f291e71de3df52728933d2e04da6a59eb08c3bdb3012ebeae40f05183744b93
+ sha256sums = 18cfe65a2da89006f8aeb701a846a2e6ed2cac2e84b86cd7f6f9a25e988c4057
+ sha256sums = 832781712c6c6a9523e1a9436f2131cc9f0b9d7131d44477c7e81739fc28e529
+ sha256sums = 334263fecd6a1fe325c026928ac971fbb8168e23665085f62e3924f4c81029e4
+ sha256sums = be3e41373ab7a6f112b5ebd96f4c2b0550333192b54b587be43727bf82003a2a
+ sha256sums = 9c701eda6fda419ceab4b9e7b21b9d6e2a1eb0844b65404fc04bc609778b7419
+ sha256sums = b03d9ea1b2a7e5687e6e954dd3f039c341fa4d69fb047ca688ffe5b953e977be
+ sha256sums = 6cb2a9282ebb4fd53058d22f8159e10d1d8c321b7d17d0f2d761bdab7f88eaf8
+ sha256sums = b64ccbec1080320fec7bfc3b55a6a2ebc33159d216039170ba58008ba7ec37b7
+ sha256sums = 354616dccd88c5227c276ddbf184c083c77d9cea9ac143993101d9e67b7f0cfc
+ sha256sums = 93eca845542db214f113c72df69c456f53ea0e77e1db865124384939ecd76e2d
+ sha256sums = 3a2f95a37b4614f05ac5a7c5d81a99555ba01b0b192667896006db8490cb89fa
sha256sums = 65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b
pkgname = linux-bore
diff --git a/linux-bore/PKGBUILD b/linux-bore/PKGBUILD
index c81ec287..dbc8ec57 100644
--- a/linux-bore/PKGBUILD
+++ b/linux-bore/PKGBUILD
@@ -127,7 +127,7 @@ _srcname=linux-${_stable}
#_srcname=linux-${_major}
arch=(x86_64 x86_64_v3)
pkgdesc='Linux BORE scheduler Kernel by CachyOS with other patches and improvements'
-pkgrel=4
+pkgrel=5
arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos"
license=('GPL2')
@@ -147,20 +147,20 @@ source=(
"${_patchsource}/0001-arch.patch"
"${_patchsource}/0002-anbox.patch"
"${_patchsource}/0003-bbr2.patch"
- "${_patchsource}/0004-fs-patches.patch"
- "${_patchsource}/0005-cachy.patch"
- "${_patchsource}/0006-clearlinux.patch"
- "${_patchsource}/0007-cpu-patches.patch"
- "${_patchsource}/0008-fixes-miscellaneous.patch"
- "${_patchsource}/0009-fixes.patch"
- "${_patchsource}/0010-hwmon.patch"
- "${_patchsource}/0011-MG-LRU.patch"
- "${_patchsource}/0012-spf-lru.patch"
- "${_patchsource}/0014-v4l2loopback.patch"
- "${_patchsource}/0015-xanmod.patch"
- "${_patchsource}/0016-lrng.patch"
- "${_patchsource}/0017-le9.patch"
- "${_patchsource}/0018-ck-hrtimer.patch"
+ "${_patchsource}/0004-cachy.patch"
+ "${_patchsource}/0005-clearlinux.patch"
+ "${_patchsource}/0006-cpu.patch"
+ "${_patchsource}/0007-fixes-miscellaneous.patch"
+ "${_patchsource}/0008-fs-patches.patch"
+ "${_patchsource}/0009-hwmon.patch"
+ "${_patchsource}/0010-MG-LRU.patch"
+ "${_patchsource}/0011-spf-lru.patch"
+ "${_patchsource}/0012-v4l2loopback.patch"
+ "${_patchsource}/0013-xanmod.patch"
+ "${_patchsource}/0014-lrng.patch"
+ "${_patchsource}/0015-le9.patch"
+ "${_patchsource}/0016-ck-hrtimer.patch"
+ # "${_patchsource}/0017-FG-KASLR.patch"
"auto-cpu-optimization.sh"
)
@@ -220,11 +220,10 @@ prepare() {
scripts/config --enable CONFIG_SCHED_PDS
elif [ "$_cpusched" = "cacule" ]; then
echo "Selecting CacULE scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
scripts/config --enable CONFIG_CACULE_SCHED
+ scripts/config --disable CONFIG_CACULE_RDB
elif [ "$_cpusched" = "cacule-rdb" ]; then
echo "Selecting CacULE-RDB scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
scripts/config --enable CONFIG_CACULE_SCHED
scripts/config --enable CONFIG_CACULE_RDB
scripts/config --set-val CONFIG_RDB_INTERVAL 19
@@ -234,10 +233,9 @@ prepare() {
scripts/config --enable CONFIG_TT_ACCOUNTING_STATS
elif [ "$_cpusched" = "bore" ]; then
echo "Selecting BORE Scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
+ scripts/config --enable CONFIG_SCHED_BORE
elif [ "$_cpusched" = "cfs" ]; then
echo "Selecting Completely Fair Scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
else
if [ -n "$_cpusched" ]; then
error "The value $_cpusched is invalid. Choose the correct one again."
@@ -302,11 +300,17 @@ prepare() {
if [ -n "$_NUMAdisable" ]; then
echo "Disabling NUMA from kernel config..."
scripts/config --disable CONFIG_NUMA
- fi
-
- if [ -n "$_winesync" ]; then
- echo "Enable winesync support"
- scripts/config --module CONFIG_WINESYNC
+ scripts/config --disable CONFIG_AMD_NUMA
+ scripts/config --disable CONFIG_X86_64_ACPI_NUMA
+ scripts/config --disable CONFIG_NODES_SPAN_OTHER_NODES
+ scripts/config --disable CONFIG_NUMA_EMU
+ scripts/config --disable CONFIG_NEED_MULTIPLE_NODES
+ scripts/config --disable CONFIG_USE_PERCPU_NUMA_NODE_ID
+ scripts/config --disable CONFIG_ACPI_NUMA
+ scripts/config --disable CONFIG_ARCH_SUPPORTS_NUMA_BALANCING
+ scripts/config --disable CONFIG_NODES_SHIFT
+ scripts/config --undefine CONFIG_NODES_SHIFT
+ scripts/config --disable CONFIG_NEED_MULTIPLE_NODES
fi
### Disable MQ-Deadline I/O scheduler
@@ -331,6 +335,11 @@ prepare() {
scripts/config --disable CONFIG_CPU_FREQ_GOV_CONSERVATIVE
scripts/config --disable CONFIG_CPU_FREQ_GOV_USERSPACE
scripts/config --disable CONFIG_CPU_FREQ_GOV_SCHEDUTIL
+ echo "Set PCIEASPM DRIVER to performance..."
+ scripts/config --enable CONFIG_PCIEASPM
+ scripts/config --enable CONFIG_PCIEASPM_PERFORMANCE
+ echo "Set CONFIG_PCIE_BUS for performance..."
+ scripts/config --enable CONFIG_PCIE_BUS_PERFORMANCE
fi
### Enable KBUILD_CFLAGS -O3
@@ -351,7 +360,6 @@ prepare() {
scripts/config --set-str CONFIG_DEFAULT_TCP_CONG bbr2
fi
-
### Enable FULLCONENAT
if [ -n "$_nf_cone" ]; then
echo "Enabling FULLCONENAT..."
@@ -359,7 +367,6 @@ prepare() {
scripts/config --module CONFIG_NETFILTER_XT_TARGET_FULLCONENAT
fi
-
### Enable SPF
if [ -n "$_spf_enable" ]; then
echo "Enabling multigenerational LRU..."
@@ -488,14 +495,25 @@ prepare() {
scripts/config --set-str CONFIG_ZSWAP_COMPRESSOR_DEFAULT zstd
fi
-
- echo "Enable Anbox"
+ echo "Enable Anbox..."
scripts/config --enable CONFIG_ASHMEM
scripts/config --enable CONFIG_ANDROID
scripts/config --enable CONFIG_ANDROID_BINDER_IPC
scripts/config --enable CONFIG_ANDROID_BINDERFS
scripts/config --enable CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
+ echo "disable debugging features to reduce the size..."
+ scripts/config --disable CONFIG_DEBUG_INFO
+ scripts/config --disable CONFIG_CGROUP_BPF
+ scripts/config --disable CONFIG_BPF_LSM
+ scripts/config --disable CONFIG_BPF_PRELOAD
+ scripts/config --disable CONFIG_BPF_LIRC_MODE2
+ scripts/config --disable CONFIG_BPF_KPROBE_OVERRIDE
+ scripts/config --enable CONFIG_PSI_DEFAULT_DISABLED
+ scripts/config --disable CONFIG_LATENCYTOP
+ scripts/config --disable CONFIG_SCHED_DEBUG
+ scripts/config --disable CONFIG_KVM_WERROR
+
### Optionally use running kernel's config
# code originally by nous; http://aur.archlinux.org/packages.php?ID=40191
if [ -n "$_use_current" ]; then
@@ -560,14 +578,15 @@ _package() {
echo "Installing boot image..."
# systemd expects to find the kernel here to allow hibernation
# https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344
- install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"
+ install -Dm644 "$(make ${BUILD_FLAGS[*]} -s image_name)" "$modulesdir/vmlinuz"
# Used by mkinitcpio to name the kernel
echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"
echo "Installing modules..."
- make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
+ make ${BUILD_FLAGS[*]} INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
DEPMOD=/doesnt/exist modules_install # Suppress depmod
+
# remove build and source links
rm "$modulesdir"/{source,build}
}
@@ -590,7 +609,7 @@ _package-headers() {
install -Dt "$builddir/tools/objtool" tools/objtool/objtool
# required when DEBUG_INFO_BTF_MODULES is enabled
- install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
+ # install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
echo "Installing headers..."
cp -t "$builddir" -a include
@@ -646,8 +665,9 @@ _package-headers() {
esac
done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)
- echo "Stripping vmlinux..."
- strip -v $STRIP_STATIC "$builddir/vmlinux"
+ # echo "Stripping vmlinux..."
+ # strip -v $STRIP_STATIC "$builddir/vmlinux"
+ # not needed since not building with CONFIG_DEBUG_INFO=y
echo "Adding symlink..."
mkdir -p "$pkgdir/usr/src"
@@ -664,23 +684,22 @@ for _p in "${pkgname[@]}"; do
done
sha256sums=('32d0a8e366b87e1cbde951b9f7a01287546670ba60fac35cccfc8a7c005a162c'
- 'db9bea739fad4ced06fad88b8f86824436899ac06e04d6a0cc4b037856e4aeba'
- '9bcdb1bff0acc3ed43c985fb04e5df01aff17d16bdc4686e0daae0d7326230be'
- '86881dd86c0982d86b66aca11f440ce3a0c88a28fb7120fdf8f7d6ad7d328e05'
- '7616bde11139d419ef190f2870e3a848b7157b9a4dc769a6f1ff59cb99508126'
- '576d14d12b54a8756117d4839fa63241fcde0ff7799ddfd07f0b25e7e852407c'
- '3b9a5a31c77e1b708793fd735ad82bd5906f0d8c0b055eae03ea0242ef83509c'
- 'a801630a75a59363c99144836a13aef4f36f93b3b5b64299faa11e21e329cfe4'
- '440f463d88183ced1ca0e1e8dafa227e6c0212752de7a0d5203e293e8ccb2f88'
- '7c76f76baccf3ca163f7889bb3d5b28a0551b94cd08312a63581b6df9f439693'
- 'bda7360b44d033dc274649d4c99e252321145162cbe7463ac1f97d79eae7101e'
- 'cf3554d737c52663dd3048906788c28ade3e53a660049ea0bdb792f096965c70'
- '8de7224e9d84605b7498dd003018dc94cc421d9871500ae885176f051fe048f8'
- 'f6e422d11a5389c5da330501a2a816f9fc088627124ab0910252dfa4d5eac367'
- 'ea4174aa8fbeb309c17fb0aedb4eacbf269ba02123d28067ec46142823782ca7'
- '1e486bf2a8d33762ed429569d4220a218e1d6db0e96d7cfb57e4ed8090a349bf'
- '6d2c65532a81468d15f8fb326837eef12f07e10c24e7219fc49c941eb40450db'
- 'c921936c051dd5efe66d7b53eb03a2f26b14b138047cd76702ba6cedf4474432'
- '98d833fb1616e1ef7332e73f3d0ee8dcd58ceca5e5d30279944e9d4b9003d991'
- '84249d7d74d8510c12a2a0511064eade53ee36f69180f9f0e738615611a0afb2'
+ 'b304bc70ea0fcea5964cf54275bc050b3f34886c10430816a13f7824b0b82738'
+ '0f99f7935f545033eff35b5e4ffa54142c31c7034ee801cd1534fe085351f019'
+ 'e7a81fb26bb61875c07ba83075522d3d1c1ed463581c7067404a91bc724340b8'
+ 'dea401c0efff7f7979b91b1a32524646d0bab38191d70daf18924f944a4f1fd5'
+ '9962cab7ce58729912c70f2dce345d088c0c61f640e0bd9ee2975d571b08a0d2'
+ '9710c78919d651e2266391c129bf89557ee09aabeaa7935ae798c037d3c7c0cc'
+ '6f291e71de3df52728933d2e04da6a59eb08c3bdb3012ebeae40f05183744b93'
+ '18cfe65a2da89006f8aeb701a846a2e6ed2cac2e84b86cd7f6f9a25e988c4057'
+ '832781712c6c6a9523e1a9436f2131cc9f0b9d7131d44477c7e81739fc28e529'
+ '334263fecd6a1fe325c026928ac971fbb8168e23665085f62e3924f4c81029e4'
+ 'be3e41373ab7a6f112b5ebd96f4c2b0550333192b54b587be43727bf82003a2a'
+ '9c701eda6fda419ceab4b9e7b21b9d6e2a1eb0844b65404fc04bc609778b7419'
+ 'b03d9ea1b2a7e5687e6e954dd3f039c341fa4d69fb047ca688ffe5b953e977be'
+ '6cb2a9282ebb4fd53058d22f8159e10d1d8c321b7d17d0f2d761bdab7f88eaf8'
+ 'b64ccbec1080320fec7bfc3b55a6a2ebc33159d216039170ba58008ba7ec37b7'
+ '354616dccd88c5227c276ddbf184c083c77d9cea9ac143993101d9e67b7f0cfc'
+ '93eca845542db214f113c72df69c456f53ea0e77e1db865124384939ecd76e2d'
+ '3a2f95a37b4614f05ac5a7c5d81a99555ba01b0b192667896006db8490cb89fa'
'65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b')
diff --git a/linux-bore/config b/linux-bore/config
index 765d0856..38eda534 100644
--- a/linux-bore/config
+++ b/linux-bore/config
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Linux/x86 5.17.3 Kernel Configuration
+# Linux/x86 5.17.4 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.2.0"
CONFIG_CC_IS_GCC=y
@@ -100,8 +100,10 @@ CONFIG_POSIX_CPU_TIMERS_TASK_WORK=y
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
-CONFIG_NO_HZ_IDLE=y
-# CONFIG_NO_HZ_FULL is not set
+# CONFIG_NO_HZ_IDLE is not set
+CONFIG_NO_HZ_FULL=y
+CONFIG_CONTEXT_TRACKING=y
+# CONFIG_CONTEXT_TRACKING_FORCE is not set
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
# end of Timers subsystem
@@ -124,13 +126,11 @@ CONFIG_BPF_PRELOAD_UMD=m
CONFIG_BPF_LSM=y
# end of BPF subsystem
-CONFIG_PREEMPT_BUILD=y
+CONFIG_PREEMPT_VOLUNTARY_BUILD=y
# CONFIG_PREEMPT_NONE is not set
-# CONFIG_PREEMPT_VOLUNTARY is not set
-CONFIG_PREEMPT=y
-CONFIG_PREEMPT_COUNT=y
-CONFIG_PREEMPTION=y
-CONFIG_PREEMPT_DYNAMIC=y
+CONFIG_PREEMPT_VOLUNTARY=y
+# CONFIG_PREEMPT is not set
+# CONFIG_PREEMPT_DYNAMIC is not set
CONFIG_SCHED_CORE=y
#
@@ -156,22 +156,16 @@ CONFIG_CPU_ISOLATION=y
# RCU Subsystem
#
CONFIG_TREE_RCU=y
-CONFIG_PREEMPT_RCU=y
-CONFIG_RCU_EXPERT=y
+# CONFIG_RCU_EXPERT is not set
CONFIG_SRCU=y
CONFIG_TREE_SRCU=y
CONFIG_TASKS_RCU_GENERIC=y
-CONFIG_TASKS_RCU=y
CONFIG_TASKS_RUDE_RCU=y
CONFIG_TASKS_TRACE_RCU=y
CONFIG_RCU_STALL_COMMON=y
CONFIG_RCU_NEED_SEGCBLIST=y
-CONFIG_RCU_FANOUT=64
-CONFIG_RCU_FANOUT_LEAF=16
-CONFIG_RCU_BOOST=y
-CONFIG_RCU_BOOST_DELAY=500
-# CONFIG_RCU_NOCB_CPU is not set
-# CONFIG_TASKS_TRACE_RCU_READ_MB is not set
+CONFIG_RCU_NOCB_CPU=y
+CONFIG_RCU_NOCB_CPU_DEFAULT_ALL=y
# end of RCU Subsystem
CONFIG_BUILD_BIN2C=y
@@ -192,7 +186,6 @@ CONFIG_UCLAMP_BUCKETS_COUNT=5
# CONFIG_SCHED_ALT is not set
# CONFIG_SCHED_BMQ is not set
# CONFIG_SCHED_PDS is not set
-# CONFIG_SCHED_BORE is not set
# end of Scheduler features
# CONFIG_CACULE_SCHED is not set
@@ -237,6 +230,7 @@ CONFIG_USER_NS_UNPRIVILEGED=y
CONFIG_PID_NS=y
CONFIG_NET_NS=y
CONFIG_CHECKPOINT_RESTORE=y
+# CONFIG_SCHED_BORE is not set
CONFIG_SCHED_AUTOGROUP=y
CONFIG_SCHED_AUTOGROUP_DEFAULT_ENABLED=y
# CONFIG_SYSFS_DEPRECATED is not set
diff --git a/linux-cachyos-bmq/.SRCINFO b/linux-cachyos-bmq/.SRCINFO
index 5c8f326e..52f29c2b 100755
--- a/linux-cachyos-bmq/.SRCINFO
+++ b/linux-cachyos-bmq/.SRCINFO
@@ -30,41 +30,39 @@ pkgbase = linux-cachyos-bmq
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0001-arch.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0002-anbox.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0003-bbr2.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0004-fs-patches.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0005-cachy.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0006-clearlinux.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0007-cpu-patches.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0008-fixes-miscellaneous.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0009-fixes.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0010-hwmon.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0011-MG-LRU.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0012-spf-lru.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0014-v4l2loopback.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0015-xanmod.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0016-lrng.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0017-le9.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0018-ck-hrtimer.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0004-cachy.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0005-clearlinux.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0006-cpu.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0007-fixes-miscellaneous.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0008-fs-patches.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0009-hwmon.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0010-MG-LRU.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0011-spf-lru.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0012-v4l2loopback.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0013-xanmod.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0014-lrng.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0015-le9.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0016-ck-hrtimer.patch
source = auto-cpu-optimization.sh
sha256sums = 32d0a8e366b87e1cbde951b9f7a01287546670ba60fac35cccfc8a7c005a162c
- sha256sums = 70118f513695925cc1f1928032ea79bacca3e3fc0e9e66020f7a6e613601e204
- sha256sums = ba65acd3f1168a7479e3665b5b13f7d1066e713eadb5a0e5110423ba97d7ccd3
- sha256sums = 86881dd86c0982d86b66aca11f440ce3a0c88a28fb7120fdf8f7d6ad7d328e05
- sha256sums = 7616bde11139d419ef190f2870e3a848b7157b9a4dc769a6f1ff59cb99508126
- sha256sums = 576d14d12b54a8756117d4839fa63241fcde0ff7799ddfd07f0b25e7e852407c
- sha256sums = 3b9a5a31c77e1b708793fd735ad82bd5906f0d8c0b055eae03ea0242ef83509c
- sha256sums = a801630a75a59363c99144836a13aef4f36f93b3b5b64299faa11e21e329cfe4
- sha256sums = 440f463d88183ced1ca0e1e8dafa227e6c0212752de7a0d5203e293e8ccb2f88
- sha256sums = 7c76f76baccf3ca163f7889bb3d5b28a0551b94cd08312a63581b6df9f439693
- sha256sums = bda7360b44d033dc274649d4c99e252321145162cbe7463ac1f97d79eae7101e
- sha256sums = cf3554d737c52663dd3048906788c28ade3e53a660049ea0bdb792f096965c70
- sha256sums = 8de7224e9d84605b7498dd003018dc94cc421d9871500ae885176f051fe048f8
- sha256sums = f6e422d11a5389c5da330501a2a816f9fc088627124ab0910252dfa4d5eac367
- sha256sums = ea4174aa8fbeb309c17fb0aedb4eacbf269ba02123d28067ec46142823782ca7
- sha256sums = 1e486bf2a8d33762ed429569d4220a218e1d6db0e96d7cfb57e4ed8090a349bf
- sha256sums = 6d2c65532a81468d15f8fb326837eef12f07e10c24e7219fc49c941eb40450db
- sha256sums = c921936c051dd5efe66d7b53eb03a2f26b14b138047cd76702ba6cedf4474432
- sha256sums = 98d833fb1616e1ef7332e73f3d0ee8dcd58ceca5e5d30279944e9d4b9003d991
- sha256sums = 84249d7d74d8510c12a2a0511064eade53ee36f69180f9f0e738615611a0afb2
+ sha256sums = 29c5dd2ae6b452b75b25816a8f6610fa2ff54f21b22a0ccef5c2e98a7077eb36
+ sha256sums = a10e35eb0786a78d325fe95890b88a728f6e4a8317f244b82e433229f2e294eb
+ sha256sums = e7a81fb26bb61875c07ba83075522d3d1c1ed463581c7067404a91bc724340b8
+ sha256sums = dea401c0efff7f7979b91b1a32524646d0bab38191d70daf18924f944a4f1fd5
+ sha256sums = 9962cab7ce58729912c70f2dce345d088c0c61f640e0bd9ee2975d571b08a0d2
+ sha256sums = 9710c78919d651e2266391c129bf89557ee09aabeaa7935ae798c037d3c7c0cc
+ sha256sums = 6f291e71de3df52728933d2e04da6a59eb08c3bdb3012ebeae40f05183744b93
+ sha256sums = 18cfe65a2da89006f8aeb701a846a2e6ed2cac2e84b86cd7f6f9a25e988c4057
+ sha256sums = 832781712c6c6a9523e1a9436f2131cc9f0b9d7131d44477c7e81739fc28e529
+ sha256sums = 334263fecd6a1fe325c026928ac971fbb8168e23665085f62e3924f4c81029e4
+ sha256sums = be3e41373ab7a6f112b5ebd96f4c2b0550333192b54b587be43727bf82003a2a
+ sha256sums = 9c701eda6fda419ceab4b9e7b21b9d6e2a1eb0844b65404fc04bc609778b7419
+ sha256sums = b03d9ea1b2a7e5687e6e954dd3f039c341fa4d69fb047ca688ffe5b953e977be
+ sha256sums = 6cb2a9282ebb4fd53058d22f8159e10d1d8c321b7d17d0f2d761bdab7f88eaf8
+ sha256sums = b64ccbec1080320fec7bfc3b55a6a2ebc33159d216039170ba58008ba7ec37b7
+ sha256sums = 354616dccd88c5227c276ddbf184c083c77d9cea9ac143993101d9e67b7f0cfc
+ sha256sums = 93eca845542db214f113c72df69c456f53ea0e77e1db865124384939ecd76e2d
+ sha256sums = 3a2f95a37b4614f05ac5a7c5d81a99555ba01b0b192667896006db8490cb89fa
sha256sums = 65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b
pkgname = linux-cachyos-bmq
diff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILD
index 01cb8284..73cc60fc 100644
--- a/linux-cachyos-bmq/PKGBUILD
+++ b/linux-cachyos-bmq/PKGBUILD
@@ -155,20 +155,20 @@ source=(
"${_patchsource}/0001-arch.patch"
"${_patchsource}/0002-anbox.patch"
"${_patchsource}/0003-bbr2.patch"
- "${_patchsource}/0004-fs-patches.patch"
- "${_patchsource}/0005-cachy.patch"
- "${_patchsource}/0006-clearlinux.patch"
- "${_patchsource}/0007-cpu-patches.patch"
- "${_patchsource}/0008-fixes-miscellaneous.patch"
- "${_patchsource}/0009-fixes.patch"
- "${_patchsource}/0010-hwmon.patch"
- "${_patchsource}/0011-MG-LRU.patch"
- "${_patchsource}/0012-spf-lru.patch"
- "${_patchsource}/0014-v4l2loopback.patch"
- "${_patchsource}/0015-xanmod.patch"
- "${_patchsource}/0016-lrng.patch"
- "${_patchsource}/0017-le9.patch"
- "${_patchsource}/0018-ck-hrtimer.patch"
+ "${_patchsource}/0004-cachy.patch"
+ "${_patchsource}/0005-clearlinux.patch"
+ "${_patchsource}/0006-cpu.patch"
+ "${_patchsource}/0007-fixes-miscellaneous.patch"
+ "${_patchsource}/0008-fs-patches.patch"
+ "${_patchsource}/0009-hwmon.patch"
+ "${_patchsource}/0010-MG-LRU.patch"
+ "${_patchsource}/0011-spf-lru.patch"
+ "${_patchsource}/0012-v4l2loopback.patch"
+ "${_patchsource}/0013-xanmod.patch"
+ "${_patchsource}/0014-lrng.patch"
+ "${_patchsource}/0015-le9.patch"
+ "${_patchsource}/0016-ck-hrtimer.patch"
+ # "${_patchsource}/0017-FG-KASLR.patch"
"auto-cpu-optimization.sh"
)
@@ -228,11 +228,10 @@ prepare() {
scripts/config --enable CONFIG_SCHED_PDS
elif [ "$_cpusched" = "cacule" ]; then
echo "Selecting CacULE scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
scripts/config --enable CONFIG_CACULE_SCHED
+ scripts/config --disable CONFIG_CACULE_RDB
elif [ "$_cpusched" = "cacule-rdb" ]; then
echo "Selecting CacULE-RDB scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
scripts/config --enable CONFIG_CACULE_SCHED
scripts/config --enable CONFIG_CACULE_RDB
scripts/config --set-val CONFIG_RDB_INTERVAL 19
@@ -242,10 +241,9 @@ prepare() {
scripts/config --enable CONFIG_TT_ACCOUNTING_STATS
elif [ "$_cpusched" = "bore" ]; then
echo "Selecting BORE Scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
+ scripts/config --enable CONFIG_SCHED_BORE
elif [ "$_cpusched" = "cfs" ]; then
echo "Selecting Completely Fair Scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
else
if [ -n "$_cpusched" ]; then
error "The value $_cpusched is invalid. Choose the correct one again."
@@ -310,11 +308,17 @@ prepare() {
if [ -n "$_NUMAdisable" ]; then
echo "Disabling NUMA from kernel config..."
scripts/config --disable CONFIG_NUMA
- fi
-
- if [ -n "$_winesync" ]; then
- echo "Enable winesync support"
- scripts/config --module CONFIG_WINESYNC
+ scripts/config --disable CONFIG_AMD_NUMA
+ scripts/config --disable CONFIG_X86_64_ACPI_NUMA
+ scripts/config --disable CONFIG_NODES_SPAN_OTHER_NODES
+ scripts/config --disable CONFIG_NUMA_EMU
+ scripts/config --disable CONFIG_NEED_MULTIPLE_NODES
+ scripts/config --disable CONFIG_USE_PERCPU_NUMA_NODE_ID
+ scripts/config --disable CONFIG_ACPI_NUMA
+ scripts/config --disable CONFIG_ARCH_SUPPORTS_NUMA_BALANCING
+ scripts/config --disable CONFIG_NODES_SHIFT
+ scripts/config --undefine CONFIG_NODES_SHIFT
+ scripts/config --disable CONFIG_NEED_MULTIPLE_NODES
fi
### Disable MQ-Deadline I/O scheduler
@@ -339,6 +343,11 @@ prepare() {
scripts/config --disable CONFIG_CPU_FREQ_GOV_CONSERVATIVE
scripts/config --disable CONFIG_CPU_FREQ_GOV_USERSPACE
scripts/config --disable CONFIG_CPU_FREQ_GOV_SCHEDUTIL
+ echo "Set PCIEASPM DRIVER to performance..."
+ scripts/config --enable CONFIG_PCIEASPM
+ scripts/config --enable CONFIG_PCIEASPM_PERFORMANCE
+ echo "Set CONFIG_PCIE_BUS for performance..."
+ scripts/config --enable CONFIG_PCIE_BUS_PERFORMANCE
fi
### Enable KBUILD_CFLAGS -O3
@@ -359,7 +368,6 @@ prepare() {
scripts/config --set-str CONFIG_DEFAULT_TCP_CONG bbr2
fi
-
### Enable FULLCONENAT
if [ -n "$_nf_cone" ]; then
echo "Enabling FULLCONENAT..."
@@ -495,14 +503,25 @@ prepare() {
scripts/config --set-str CONFIG_ZSWAP_COMPRESSOR_DEFAULT zstd
fi
-
- echo "Enable Anbox"
+ echo "Enable Anbox..."
scripts/config --enable CONFIG_ASHMEM
scripts/config --enable CONFIG_ANDROID
scripts/config --enable CONFIG_ANDROID_BINDER_IPC
scripts/config --enable CONFIG_ANDROID_BINDERFS
scripts/config --enable CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
+ echo "disable debugging features to reduce the size..."
+ scripts/config --disable CONFIG_DEBUG_INFO
+ scripts/config --disable CONFIG_CGROUP_BPF
+ scripts/config --disable CONFIG_BPF_LSM
+ scripts/config --disable CONFIG_BPF_PRELOAD
+ scripts/config --disable CONFIG_BPF_LIRC_MODE2
+ scripts/config --disable CONFIG_BPF_KPROBE_OVERRIDE
+ scripts/config --enable CONFIG_PSI_DEFAULT_DISABLED
+ scripts/config --disable CONFIG_LATENCYTOP
+ scripts/config --disable CONFIG_SCHED_DEBUG
+ scripts/config --disable CONFIG_KVM_WERROR
+
### Optionally use running kernel's config
# code originally by nous; http://aur.archlinux.org/packages.php?ID=40191
if [ -n "$_use_current" ]; then
@@ -567,14 +586,15 @@ _package() {
echo "Installing boot image..."
# systemd expects to find the kernel here to allow hibernation
# https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344
- install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"
+ install -Dm644 "$(make ${BUILD_FLAGS[*]} -s image_name)" "$modulesdir/vmlinuz"
# Used by mkinitcpio to name the kernel
echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"
echo "Installing modules..."
- make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
+ make ${BUILD_FLAGS[*]} INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
DEPMOD=/doesnt/exist modules_install # Suppress depmod
+
# remove build and source links
rm "$modulesdir"/{source,build}
}
@@ -597,7 +617,7 @@ _package-headers() {
install -Dt "$builddir/tools/objtool" tools/objtool/objtool
# required when DEBUG_INFO_BTF_MODULES is enabled
- install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
+ # install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
echo "Installing headers..."
cp -t "$builddir" -a include
@@ -653,8 +673,9 @@ _package-headers() {
esac
done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)
- echo "Stripping vmlinux..."
- strip -v $STRIP_STATIC "$builddir/vmlinux"
+ # echo "Stripping vmlinux..."
+ # strip -v $STRIP_STATIC "$builddir/vmlinux"
+ # not needed since not building with CONFIG_DEBUG_INFO=y
echo "Adding symlink..."
mkdir -p "$pkgdir/usr/src"
@@ -671,23 +692,22 @@ for _p in "${pkgname[@]}"; do
done
sha256sums=('32d0a8e366b87e1cbde951b9f7a01287546670ba60fac35cccfc8a7c005a162c'
- '70118f513695925cc1f1928032ea79bacca3e3fc0e9e66020f7a6e613601e204'
- 'ba65acd3f1168a7479e3665b5b13f7d1066e713eadb5a0e5110423ba97d7ccd3'
- '86881dd86c0982d86b66aca11f440ce3a0c88a28fb7120fdf8f7d6ad7d328e05'
- '7616bde11139d419ef190f2870e3a848b7157b9a4dc769a6f1ff59cb99508126'
- '576d14d12b54a8756117d4839fa63241fcde0ff7799ddfd07f0b25e7e852407c'
- '3b9a5a31c77e1b708793fd735ad82bd5906f0d8c0b055eae03ea0242ef83509c'
- 'a801630a75a59363c99144836a13aef4f36f93b3b5b64299faa11e21e329cfe4'
- '440f463d88183ced1ca0e1e8dafa227e6c0212752de7a0d5203e293e8ccb2f88'
- '7c76f76baccf3ca163f7889bb3d5b28a0551b94cd08312a63581b6df9f439693'
- 'bda7360b44d033dc274649d4c99e252321145162cbe7463ac1f97d79eae7101e'
- 'cf3554d737c52663dd3048906788c28ade3e53a660049ea0bdb792f096965c70'
- '8de7224e9d84605b7498dd003018dc94cc421d9871500ae885176f051fe048f8'
- 'f6e422d11a5389c5da330501a2a816f9fc088627124ab0910252dfa4d5eac367'
- 'ea4174aa8fbeb309c17fb0aedb4eacbf269ba02123d28067ec46142823782ca7'
- '1e486bf2a8d33762ed429569d4220a218e1d6db0e96d7cfb57e4ed8090a349bf'
- '6d2c65532a81468d15f8fb326837eef12f07e10c24e7219fc49c941eb40450db'
- 'c921936c051dd5efe66d7b53eb03a2f26b14b138047cd76702ba6cedf4474432'
- '98d833fb1616e1ef7332e73f3d0ee8dcd58ceca5e5d30279944e9d4b9003d991'
- '84249d7d74d8510c12a2a0511064eade53ee36f69180f9f0e738615611a0afb2'
+ '29c5dd2ae6b452b75b25816a8f6610fa2ff54f21b22a0ccef5c2e98a7077eb36'
+ 'a10e35eb0786a78d325fe95890b88a728f6e4a8317f244b82e433229f2e294eb'
+ 'e7a81fb26bb61875c07ba83075522d3d1c1ed463581c7067404a91bc724340b8'
+ 'dea401c0efff7f7979b91b1a32524646d0bab38191d70daf18924f944a4f1fd5'
+ '9962cab7ce58729912c70f2dce345d088c0c61f640e0bd9ee2975d571b08a0d2'
+ '9710c78919d651e2266391c129bf89557ee09aabeaa7935ae798c037d3c7c0cc'
+ '6f291e71de3df52728933d2e04da6a59eb08c3bdb3012ebeae40f05183744b93'
+ '18cfe65a2da89006f8aeb701a846a2e6ed2cac2e84b86cd7f6f9a25e988c4057'
+ '832781712c6c6a9523e1a9436f2131cc9f0b9d7131d44477c7e81739fc28e529'
+ '334263fecd6a1fe325c026928ac971fbb8168e23665085f62e3924f4c81029e4'
+ 'be3e41373ab7a6f112b5ebd96f4c2b0550333192b54b587be43727bf82003a2a'
+ '9c701eda6fda419ceab4b9e7b21b9d6e2a1eb0844b65404fc04bc609778b7419'
+ 'b03d9ea1b2a7e5687e6e954dd3f039c341fa4d69fb047ca688ffe5b953e977be'
+ '6cb2a9282ebb4fd53058d22f8159e10d1d8c321b7d17d0f2d761bdab7f88eaf8'
+ 'b64ccbec1080320fec7bfc3b55a6a2ebc33159d216039170ba58008ba7ec37b7'
+ '354616dccd88c5227c276ddbf184c083c77d9cea9ac143993101d9e67b7f0cfc'
+ '93eca845542db214f113c72df69c456f53ea0e77e1db865124384939ecd76e2d'
+ '3a2f95a37b4614f05ac5a7c5d81a99555ba01b0b192667896006db8490cb89fa'
'65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b')
diff --git a/linux-cachyos-bmq/config b/linux-cachyos-bmq/config
index d445f5d6..3fe06e48 100644
--- a/linux-cachyos-bmq/config
+++ b/linux-cachyos-bmq/config
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Linux/x86 5.17.3 Kernel Configuration
+# Linux/x86 5.17.4 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.2.0"
CONFIG_CC_IS_GCC=y
@@ -100,8 +100,10 @@ CONFIG_POSIX_CPU_TIMERS_TASK_WORK=y
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
-CONFIG_NO_HZ_IDLE=y
-# CONFIG_NO_HZ_FULL is not set
+# CONFIG_NO_HZ_IDLE is not set
+CONFIG_NO_HZ_FULL=y
+CONFIG_CONTEXT_TRACKING=y
+# CONFIG_CONTEXT_TRACKING_FORCE is not set
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
# end of Timers subsystem
@@ -124,13 +126,11 @@ CONFIG_BPF_PRELOAD_UMD=m
CONFIG_BPF_LSM=y
# end of BPF subsystem
-CONFIG_PREEMPT_BUILD=y
+CONFIG_PREEMPT_VOLUNTARY_BUILD=y
# CONFIG_PREEMPT_NONE is not set
-# CONFIG_PREEMPT_VOLUNTARY is not set
-CONFIG_PREEMPT=y
-CONFIG_PREEMPT_COUNT=y
-CONFIG_PREEMPTION=y
-CONFIG_PREEMPT_DYNAMIC=y
+CONFIG_PREEMPT_VOLUNTARY=y
+# CONFIG_PREEMPT is not set
+# CONFIG_PREEMPT_DYNAMIC is not set
CONFIG_SCHED_CORE=y
#
@@ -170,7 +170,8 @@ CONFIG_RCU_FANOUT=64
CONFIG_RCU_FANOUT_LEAF=16
CONFIG_RCU_BOOST=y
CONFIG_RCU_BOOST_DELAY=500
-# CONFIG_RCU_NOCB_CPU is not set
+CONFIG_RCU_NOCB_CPU=y
+CONFIG_RCU_NOCB_CPU_DEFAULT_ALL=y
# CONFIG_TASKS_TRACE_RCU_READ_MB is not set
# end of RCU Subsystem
@@ -192,7 +193,6 @@ CONFIG_UCLAMP_BUCKETS_COUNT=5
# CONFIG_SCHED_ALT is not set
# CONFIG_SCHED_BMQ is not set
# CONFIG_SCHED_PDS is not set
-# CONFIG_SCHED_BORE is not set
# end of Scheduler features
# CONFIG_CACULE_SCHED is not set
@@ -237,6 +237,7 @@ CONFIG_USER_NS_UNPRIVILEGED=y
CONFIG_PID_NS=y
CONFIG_NET_NS=y
CONFIG_CHECKPOINT_RESTORE=y
+# CONFIG_SCHED_BORE is not set
CONFIG_SCHED_AUTOGROUP=y
CONFIG_SCHED_AUTOGROUP_DEFAULT_ENABLED=y
# CONFIG_SYSFS_DEPRECATED is not set
diff --git a/linux-cachyos-bore/.SRCINFO b/linux-cachyos-bore/.SRCINFO
index 70311f38..59d02caa 100755
--- a/linux-cachyos-bore/.SRCINFO
+++ b/linux-cachyos-bore/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = linux-cachyos-bore
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.17.3
- pkgrel = 4
+ pkgrel = 5
url = https://github.com/CachyOS/linux-cachyos
arch = x86_64
arch = x86_64_v3
@@ -29,40 +29,38 @@ pkgbase = linux-cachyos-bore
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0001-arch.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0002-anbox.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0003-bbr2.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0004-fs-patches.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0005-cachy.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0006-clearlinux.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0007-cpu-patches.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0008-fixes-miscellaneous.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0009-fixes.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0010-hwmon.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0011-MG-LRU.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0012-spf-lru.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0014-v4l2loopback.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0015-xanmod.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0016-lrng.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0017-le9.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0018-ck-hrtimer.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0004-cachy.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0005-clearlinux.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0006-cpu.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0007-fixes-miscellaneous.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0008-fs-patches.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0009-hwmon.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0010-MG-LRU.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0011-spf-lru.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0012-v4l2loopback.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0013-xanmod.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0014-lrng.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0015-le9.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0016-ck-hrtimer.patch
source = auto-cpu-optimization.sh
sha256sums = 32d0a8e366b87e1cbde951b9f7a01287546670ba60fac35cccfc8a7c005a162c
- sha256sums = 70118f513695925cc1f1928032ea79bacca3e3fc0e9e66020f7a6e613601e204
- sha256sums = 86881dd86c0982d86b66aca11f440ce3a0c88a28fb7120fdf8f7d6ad7d328e05
- sha256sums = 7616bde11139d419ef190f2870e3a848b7157b9a4dc769a6f1ff59cb99508126
- sha256sums = 576d14d12b54a8756117d4839fa63241fcde0ff7799ddfd07f0b25e7e852407c
- sha256sums = 3b9a5a31c77e1b708793fd735ad82bd5906f0d8c0b055eae03ea0242ef83509c
- sha256sums = a801630a75a59363c99144836a13aef4f36f93b3b5b64299faa11e21e329cfe4
- sha256sums = 440f463d88183ced1ca0e1e8dafa227e6c0212752de7a0d5203e293e8ccb2f88
- sha256sums = 7c76f76baccf3ca163f7889bb3d5b28a0551b94cd08312a63581b6df9f439693
- sha256sums = bda7360b44d033dc274649d4c99e252321145162cbe7463ac1f97d79eae7101e
- sha256sums = cf3554d737c52663dd3048906788c28ade3e53a660049ea0bdb792f096965c70
- sha256sums = 8de7224e9d84605b7498dd003018dc94cc421d9871500ae885176f051fe048f8
- sha256sums = f6e422d11a5389c5da330501a2a816f9fc088627124ab0910252dfa4d5eac367
- sha256sums = ea4174aa8fbeb309c17fb0aedb4eacbf269ba02123d28067ec46142823782ca7
- sha256sums = 1e486bf2a8d33762ed429569d4220a218e1d6db0e96d7cfb57e4ed8090a349bf
- sha256sums = 6d2c65532a81468d15f8fb326837eef12f07e10c24e7219fc49c941eb40450db
- sha256sums = c921936c051dd5efe66d7b53eb03a2f26b14b138047cd76702ba6cedf4474432
- sha256sums = 98d833fb1616e1ef7332e73f3d0ee8dcd58ceca5e5d30279944e9d4b9003d991
- sha256sums = 84249d7d74d8510c12a2a0511064eade53ee36f69180f9f0e738615611a0afb2
+ sha256sums = 29c5dd2ae6b452b75b25816a8f6610fa2ff54f21b22a0ccef5c2e98a7077eb36
+ sha256sums = e7a81fb26bb61875c07ba83075522d3d1c1ed463581c7067404a91bc724340b8
+ sha256sums = dea401c0efff7f7979b91b1a32524646d0bab38191d70daf18924f944a4f1fd5
+ sha256sums = 9962cab7ce58729912c70f2dce345d088c0c61f640e0bd9ee2975d571b08a0d2
+ sha256sums = 9710c78919d651e2266391c129bf89557ee09aabeaa7935ae798c037d3c7c0cc
+ sha256sums = 6f291e71de3df52728933d2e04da6a59eb08c3bdb3012ebeae40f05183744b93
+ sha256sums = 18cfe65a2da89006f8aeb701a846a2e6ed2cac2e84b86cd7f6f9a25e988c4057
+ sha256sums = 832781712c6c6a9523e1a9436f2131cc9f0b9d7131d44477c7e81739fc28e529
+ sha256sums = 334263fecd6a1fe325c026928ac971fbb8168e23665085f62e3924f4c81029e4
+ sha256sums = be3e41373ab7a6f112b5ebd96f4c2b0550333192b54b587be43727bf82003a2a
+ sha256sums = 9c701eda6fda419ceab4b9e7b21b9d6e2a1eb0844b65404fc04bc609778b7419
+ sha256sums = b03d9ea1b2a7e5687e6e954dd3f039c341fa4d69fb047ca688ffe5b953e977be
+ sha256sums = 6cb2a9282ebb4fd53058d22f8159e10d1d8c321b7d17d0f2d761bdab7f88eaf8
+ sha256sums = b64ccbec1080320fec7bfc3b55a6a2ebc33159d216039170ba58008ba7ec37b7
+ sha256sums = 354616dccd88c5227c276ddbf184c083c77d9cea9ac143993101d9e67b7f0cfc
+ sha256sums = 93eca845542db214f113c72df69c456f53ea0e77e1db865124384939ecd76e2d
+ sha256sums = 3a2f95a37b4614f05ac5a7c5d81a99555ba01b0b192667896006db8490cb89fa
sha256sums = 65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b
pkgname = linux-cachyos-bore
diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILD
index 430ec606..c0f6a49d 100644
--- a/linux-cachyos-bore/PKGBUILD
+++ b/linux-cachyos-bore/PKGBUILD
@@ -132,7 +132,7 @@ _srcname=linux-${_stable}
#_srcname=linux-${_major}
arch=(x86_64 x86_64_v3)
pkgdesc='Linux BORE scheduler Kernel by CachyOS with other patches and improvements'
-pkgrel=4
+pkgrel=5
arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos"
license=('GPL2')
@@ -152,20 +152,20 @@ source=(
"${_patchsource}/0001-arch.patch"
"${_patchsource}/0002-anbox.patch"
"${_patchsource}/0003-bbr2.patch"
- "${_patchsource}/0004-fs-patches.patch"
- "${_patchsource}/0005-cachy.patch"
- "${_patchsource}/0006-clearlinux.patch"
- "${_patchsource}/0007-cpu-patches.patch"
- "${_patchsource}/0008-fixes-miscellaneous.patch"
- "${_patchsource}/0009-fixes.patch"
- "${_patchsource}/0010-hwmon.patch"
- "${_patchsource}/0011-MG-LRU.patch"
- "${_patchsource}/0012-spf-lru.patch"
- "${_patchsource}/0014-v4l2loopback.patch"
- "${_patchsource}/0015-xanmod.patch"
- "${_patchsource}/0016-lrng.patch"
- "${_patchsource}/0017-le9.patch"
- "${_patchsource}/0018-ck-hrtimer.patch"
+ "${_patchsource}/0004-cachy.patch"
+ "${_patchsource}/0005-clearlinux.patch"
+ "${_patchsource}/0006-cpu.patch"
+ "${_patchsource}/0007-fixes-miscellaneous.patch"
+ "${_patchsource}/0008-fs-patches.patch"
+ "${_patchsource}/0009-hwmon.patch"
+ "${_patchsource}/0010-MG-LRU.patch"
+ "${_patchsource}/0011-spf-lru.patch"
+ "${_patchsource}/0012-v4l2loopback.patch"
+ "${_patchsource}/0013-xanmod.patch"
+ "${_patchsource}/0014-lrng.patch"
+ "${_patchsource}/0015-le9.patch"
+ "${_patchsource}/0016-ck-hrtimer.patch"
+ # "${_patchsource}/0017-FG-KASLR.patch"
"auto-cpu-optimization.sh"
)
@@ -225,11 +225,10 @@ prepare() {
scripts/config --enable CONFIG_SCHED_PDS
elif [ "$_cpusched" = "cacule" ]; then
echo "Selecting CacULE scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
scripts/config --enable CONFIG_CACULE_SCHED
+ scripts/config --disable CONFIG_CACULE_RDB
elif [ "$_cpusched" = "cacule-rdb" ]; then
echo "Selecting CacULE-RDB scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
scripts/config --enable CONFIG_CACULE_SCHED
scripts/config --enable CONFIG_CACULE_RDB
scripts/config --set-val CONFIG_RDB_INTERVAL 19
@@ -239,10 +238,9 @@ prepare() {
scripts/config --enable CONFIG_TT_ACCOUNTING_STATS
elif [ "$_cpusched" = "bore" ]; then
echo "Selecting BORE Scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
+ scripts/config --enable CONFIG_SCHED_BORE
elif [ "$_cpusched" = "cfs" ]; then
echo "Selecting Completely Fair Scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
else
if [ -n "$_cpusched" ]; then
error "The value $_cpusched is invalid. Choose the correct one again."
@@ -307,11 +305,17 @@ prepare() {
if [ -n "$_NUMAdisable" ]; then
echo "Disabling NUMA from kernel config..."
scripts/config --disable CONFIG_NUMA
- fi
-
- if [ -n "$_winesync" ]; then
- echo "Enable winesync support"
- scripts/config --module CONFIG_WINESYNC
+ scripts/config --disable CONFIG_AMD_NUMA
+ scripts/config --disable CONFIG_X86_64_ACPI_NUMA
+ scripts/config --disable CONFIG_NODES_SPAN_OTHER_NODES
+ scripts/config --disable CONFIG_NUMA_EMU
+ scripts/config --disable CONFIG_NEED_MULTIPLE_NODES
+ scripts/config --disable CONFIG_USE_PERCPU_NUMA_NODE_ID
+ scripts/config --disable CONFIG_ACPI_NUMA
+ scripts/config --disable CONFIG_ARCH_SUPPORTS_NUMA_BALANCING
+ scripts/config --disable CONFIG_NODES_SHIFT
+ scripts/config --undefine CONFIG_NODES_SHIFT
+ scripts/config --disable CONFIG_NEED_MULTIPLE_NODES
fi
### Disable MQ-Deadline I/O scheduler
@@ -336,6 +340,11 @@ prepare() {
scripts/config --disable CONFIG_CPU_FREQ_GOV_CONSERVATIVE
scripts/config --disable CONFIG_CPU_FREQ_GOV_USERSPACE
scripts/config --disable CONFIG_CPU_FREQ_GOV_SCHEDUTIL
+ echo "Set PCIEASPM DRIVER to performance..."
+ scripts/config --enable CONFIG_PCIEASPM
+ scripts/config --enable CONFIG_PCIEASPM_PERFORMANCE
+ echo "Set CONFIG_PCIE_BUS for performance..."
+ scripts/config --enable CONFIG_PCIE_BUS_PERFORMANCE
fi
### Enable KBUILD_CFLAGS -O3
@@ -356,7 +365,6 @@ prepare() {
scripts/config --set-str CONFIG_DEFAULT_TCP_CONG bbr2
fi
-
### Enable FULLCONENAT
if [ -n "$_nf_cone" ]; then
echo "Enabling FULLCONENAT..."
@@ -492,14 +500,25 @@ prepare() {
scripts/config --set-str CONFIG_ZSWAP_COMPRESSOR_DEFAULT zstd
fi
-
- echo "Enable Anbox"
+ echo "Enable Anbox..."
scripts/config --enable CONFIG_ASHMEM
scripts/config --enable CONFIG_ANDROID
scripts/config --enable CONFIG_ANDROID_BINDER_IPC
scripts/config --enable CONFIG_ANDROID_BINDERFS
scripts/config --enable CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
+ echo "disable debugging features to reduce the size..."
+ scripts/config --disable CONFIG_DEBUG_INFO
+ scripts/config --disable CONFIG_CGROUP_BPF
+ scripts/config --disable CONFIG_BPF_LSM
+ scripts/config --disable CONFIG_BPF_PRELOAD
+ scripts/config --disable CONFIG_BPF_LIRC_MODE2
+ scripts/config --disable CONFIG_BPF_KPROBE_OVERRIDE
+ scripts/config --enable CONFIG_PSI_DEFAULT_DISABLED
+ scripts/config --disable CONFIG_LATENCYTOP
+ scripts/config --disable CONFIG_SCHED_DEBUG
+ scripts/config --disable CONFIG_KVM_WERROR
+
### Optionally use running kernel's config
# code originally by nous; http://aur.archlinux.org/packages.php?ID=40191
if [ -n "$_use_current" ]; then
@@ -564,14 +583,15 @@ _package() {
echo "Installing boot image..."
# systemd expects to find the kernel here to allow hibernation
# https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344
- install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"
+ install -Dm644 "$(make ${BUILD_FLAGS[*]} -s image_name)" "$modulesdir/vmlinuz"
# Used by mkinitcpio to name the kernel
echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"
echo "Installing modules..."
- make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
+ make ${BUILD_FLAGS[*]} INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
DEPMOD=/doesnt/exist modules_install # Suppress depmod
+
# remove build and source links
rm "$modulesdir"/{source,build}
}
@@ -594,7 +614,7 @@ _package-headers() {
install -Dt "$builddir/tools/objtool" tools/objtool/objtool
# required when DEBUG_INFO_BTF_MODULES is enabled
- install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
+ # install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
echo "Installing headers..."
cp -t "$builddir" -a include
@@ -650,8 +670,9 @@ _package-headers() {
esac
done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)
- echo "Stripping vmlinux..."
- strip -v $STRIP_STATIC "$builddir/vmlinux"
+ # echo "Stripping vmlinux..."
+ # strip -v $STRIP_STATIC "$builddir/vmlinux"
+ # not needed since not building with CONFIG_DEBUG_INFO=y
echo "Adding symlink..."
mkdir -p "$pkgdir/usr/src"
@@ -668,22 +689,21 @@ for _p in "${pkgname[@]}"; do
done
sha256sums=('32d0a8e366b87e1cbde951b9f7a01287546670ba60fac35cccfc8a7c005a162c'
- '70118f513695925cc1f1928032ea79bacca3e3fc0e9e66020f7a6e613601e204'
- '86881dd86c0982d86b66aca11f440ce3a0c88a28fb7120fdf8f7d6ad7d328e05'
- '7616bde11139d419ef190f2870e3a848b7157b9a4dc769a6f1ff59cb99508126'
- '576d14d12b54a8756117d4839fa63241fcde0ff7799ddfd07f0b25e7e852407c'
- '3b9a5a31c77e1b708793fd735ad82bd5906f0d8c0b055eae03ea0242ef83509c'
- 'a801630a75a59363c99144836a13aef4f36f93b3b5b64299faa11e21e329cfe4'
- '440f463d88183ced1ca0e1e8dafa227e6c0212752de7a0d5203e293e8ccb2f88'
- '7c76f76baccf3ca163f7889bb3d5b28a0551b94cd08312a63581b6df9f439693'
- 'bda7360b44d033dc274649d4c99e252321145162cbe7463ac1f97d79eae7101e'
- 'cf3554d737c52663dd3048906788c28ade3e53a660049ea0bdb792f096965c70'
- '8de7224e9d84605b7498dd003018dc94cc421d9871500ae885176f051fe048f8'
- 'f6e422d11a5389c5da330501a2a816f9fc088627124ab0910252dfa4d5eac367'
- 'ea4174aa8fbeb309c17fb0aedb4eacbf269ba02123d28067ec46142823782ca7'
- '1e486bf2a8d33762ed429569d4220a218e1d6db0e96d7cfb57e4ed8090a349bf'
- '6d2c65532a81468d15f8fb326837eef12f07e10c24e7219fc49c941eb40450db'
- 'c921936c051dd5efe66d7b53eb03a2f26b14b138047cd76702ba6cedf4474432'
- '98d833fb1616e1ef7332e73f3d0ee8dcd58ceca5e5d30279944e9d4b9003d991'
- '84249d7d74d8510c12a2a0511064eade53ee36f69180f9f0e738615611a0afb2'
+ '29c5dd2ae6b452b75b25816a8f6610fa2ff54f21b22a0ccef5c2e98a7077eb36'
+ 'e7a81fb26bb61875c07ba83075522d3d1c1ed463581c7067404a91bc724340b8'
+ 'dea401c0efff7f7979b91b1a32524646d0bab38191d70daf18924f944a4f1fd5'
+ '9962cab7ce58729912c70f2dce345d088c0c61f640e0bd9ee2975d571b08a0d2'
+ '9710c78919d651e2266391c129bf89557ee09aabeaa7935ae798c037d3c7c0cc'
+ '6f291e71de3df52728933d2e04da6a59eb08c3bdb3012ebeae40f05183744b93'
+ '18cfe65a2da89006f8aeb701a846a2e6ed2cac2e84b86cd7f6f9a25e988c4057'
+ '832781712c6c6a9523e1a9436f2131cc9f0b9d7131d44477c7e81739fc28e529'
+ '334263fecd6a1fe325c026928ac971fbb8168e23665085f62e3924f4c81029e4'
+ 'be3e41373ab7a6f112b5ebd96f4c2b0550333192b54b587be43727bf82003a2a'
+ '9c701eda6fda419ceab4b9e7b21b9d6e2a1eb0844b65404fc04bc609778b7419'
+ 'b03d9ea1b2a7e5687e6e954dd3f039c341fa4d69fb047ca688ffe5b953e977be'
+ '6cb2a9282ebb4fd53058d22f8159e10d1d8c321b7d17d0f2d761bdab7f88eaf8'
+ 'b64ccbec1080320fec7bfc3b55a6a2ebc33159d216039170ba58008ba7ec37b7'
+ '354616dccd88c5227c276ddbf184c083c77d9cea9ac143993101d9e67b7f0cfc'
+ '93eca845542db214f113c72df69c456f53ea0e77e1db865124384939ecd76e2d'
+ '3a2f95a37b4614f05ac5a7c5d81a99555ba01b0b192667896006db8490cb89fa'
'65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b')
diff --git a/linux-cachyos-bore/config b/linux-cachyos-bore/config
index d445f5d6..3fe06e48 100644
--- a/linux-cachyos-bore/config
+++ b/linux-cachyos-bore/config
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Linux/x86 5.17.3 Kernel Configuration
+# Linux/x86 5.17.4 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.2.0"
CONFIG_CC_IS_GCC=y
@@ -100,8 +100,10 @@ CONFIG_POSIX_CPU_TIMERS_TASK_WORK=y
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
-CONFIG_NO_HZ_IDLE=y
-# CONFIG_NO_HZ_FULL is not set
+# CONFIG_NO_HZ_IDLE is not set
+CONFIG_NO_HZ_FULL=y
+CONFIG_CONTEXT_TRACKING=y
+# CONFIG_CONTEXT_TRACKING_FORCE is not set
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
# end of Timers subsystem
@@ -124,13 +126,11 @@ CONFIG_BPF_PRELOAD_UMD=m
CONFIG_BPF_LSM=y
# end of BPF subsystem
-CONFIG_PREEMPT_BUILD=y
+CONFIG_PREEMPT_VOLUNTARY_BUILD=y
# CONFIG_PREEMPT_NONE is not set
-# CONFIG_PREEMPT_VOLUNTARY is not set
-CONFIG_PREEMPT=y
-CONFIG_PREEMPT_COUNT=y
-CONFIG_PREEMPTION=y
-CONFIG_PREEMPT_DYNAMIC=y
+CONFIG_PREEMPT_VOLUNTARY=y
+# CONFIG_PREEMPT is not set
+# CONFIG_PREEMPT_DYNAMIC is not set
CONFIG_SCHED_CORE=y
#
@@ -170,7 +170,8 @@ CONFIG_RCU_FANOUT=64
CONFIG_RCU_FANOUT_LEAF=16
CONFIG_RCU_BOOST=y
CONFIG_RCU_BOOST_DELAY=500
-# CONFIG_RCU_NOCB_CPU is not set
+CONFIG_RCU_NOCB_CPU=y
+CONFIG_RCU_NOCB_CPU_DEFAULT_ALL=y
# CONFIG_TASKS_TRACE_RCU_READ_MB is not set
# end of RCU Subsystem
@@ -192,7 +193,6 @@ CONFIG_UCLAMP_BUCKETS_COUNT=5
# CONFIG_SCHED_ALT is not set
# CONFIG_SCHED_BMQ is not set
# CONFIG_SCHED_PDS is not set
-# CONFIG_SCHED_BORE is not set
# end of Scheduler features
# CONFIG_CACULE_SCHED is not set
@@ -237,6 +237,7 @@ CONFIG_USER_NS_UNPRIVILEGED=y
CONFIG_PID_NS=y
CONFIG_NET_NS=y
CONFIG_CHECKPOINT_RESTORE=y
+# CONFIG_SCHED_BORE is not set
CONFIG_SCHED_AUTOGROUP=y
CONFIG_SCHED_AUTOGROUP_DEFAULT_ENABLED=y
# CONFIG_SYSFS_DEPRECATED is not set
diff --git a/linux-cachyos-cacule/.SRCINFO b/linux-cachyos-cacule/.SRCINFO
index 819578d6..5e00a2de 100755
--- a/linux-cachyos-cacule/.SRCINFO
+++ b/linux-cachyos-cacule/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = linux-cachyos-cacule
pkgdesc = Linux cacULE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.17.3
- pkgrel = 4
+ pkgrel = 5
url = https://github.com/CachyOS/linux-cachyos
arch = x86_64
arch = x86_64_v3
@@ -30,41 +30,39 @@ pkgbase = linux-cachyos-cacule
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0001-arch.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0002-anbox.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0003-bbr2.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0004-fs-patches.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0005-cachy.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0006-clearlinux.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0007-cpu-patches.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0008-fixes-miscellaneous.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0009-fixes.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0010-hwmon.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0011-MG-LRU.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0012-spf-lru.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0014-v4l2loopback.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0015-xanmod.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0016-lrng.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0017-le9.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0018-ck-hrtimer.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0004-cachy.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0005-clearlinux.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0006-cpu.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0007-fixes-miscellaneous.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0008-fs-patches.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0009-hwmon.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0010-MG-LRU.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0011-spf-lru.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0012-v4l2loopback.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0013-xanmod.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0014-lrng.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0015-le9.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0016-ck-hrtimer.patch
source = auto-cpu-optimization.sh
sha256sums = 32d0a8e366b87e1cbde951b9f7a01287546670ba60fac35cccfc8a7c005a162c
- sha256sums = 70118f513695925cc1f1928032ea79bacca3e3fc0e9e66020f7a6e613601e204
- sha256sums = 33c0d70410ac7e0fccce5796aacea76838b048c79bbdc92eaf2fdbb5eabd4e0d
- sha256sums = 86881dd86c0982d86b66aca11f440ce3a0c88a28fb7120fdf8f7d6ad7d328e05
- sha256sums = 7616bde11139d419ef190f2870e3a848b7157b9a4dc769a6f1ff59cb99508126
- sha256sums = 576d14d12b54a8756117d4839fa63241fcde0ff7799ddfd07f0b25e7e852407c
- sha256sums = 3b9a5a31c77e1b708793fd735ad82bd5906f0d8c0b055eae03ea0242ef83509c
- sha256sums = a801630a75a59363c99144836a13aef4f36f93b3b5b64299faa11e21e329cfe4
- sha256sums = 440f463d88183ced1ca0e1e8dafa227e6c0212752de7a0d5203e293e8ccb2f88
- sha256sums = 7c76f76baccf3ca163f7889bb3d5b28a0551b94cd08312a63581b6df9f439693
- sha256sums = bda7360b44d033dc274649d4c99e252321145162cbe7463ac1f97d79eae7101e
- sha256sums = cf3554d737c52663dd3048906788c28ade3e53a660049ea0bdb792f096965c70
- sha256sums = 8de7224e9d84605b7498dd003018dc94cc421d9871500ae885176f051fe048f8
- sha256sums = f6e422d11a5389c5da330501a2a816f9fc088627124ab0910252dfa4d5eac367
- sha256sums = ea4174aa8fbeb309c17fb0aedb4eacbf269ba02123d28067ec46142823782ca7
- sha256sums = 1e486bf2a8d33762ed429569d4220a218e1d6db0e96d7cfb57e4ed8090a349bf
- sha256sums = 6d2c65532a81468d15f8fb326837eef12f07e10c24e7219fc49c941eb40450db
- sha256sums = c921936c051dd5efe66d7b53eb03a2f26b14b138047cd76702ba6cedf4474432
- sha256sums = 98d833fb1616e1ef7332e73f3d0ee8dcd58ceca5e5d30279944e9d4b9003d991
- sha256sums = 84249d7d74d8510c12a2a0511064eade53ee36f69180f9f0e738615611a0afb2
+ sha256sums = 29c5dd2ae6b452b75b25816a8f6610fa2ff54f21b22a0ccef5c2e98a7077eb36
+ sha256sums = 6ca8fa67a30513e47b2f4dc8566a7297741404195430b589624409d9608b3710
+ sha256sums = e7a81fb26bb61875c07ba83075522d3d1c1ed463581c7067404a91bc724340b8
+ sha256sums = dea401c0efff7f7979b91b1a32524646d0bab38191d70daf18924f944a4f1fd5
+ sha256sums = 9962cab7ce58729912c70f2dce345d088c0c61f640e0bd9ee2975d571b08a0d2
+ sha256sums = 9710c78919d651e2266391c129bf89557ee09aabeaa7935ae798c037d3c7c0cc
+ sha256sums = 6f291e71de3df52728933d2e04da6a59eb08c3bdb3012ebeae40f05183744b93
+ sha256sums = 18cfe65a2da89006f8aeb701a846a2e6ed2cac2e84b86cd7f6f9a25e988c4057
+ sha256sums = 832781712c6c6a9523e1a9436f2131cc9f0b9d7131d44477c7e81739fc28e529
+ sha256sums = 334263fecd6a1fe325c026928ac971fbb8168e23665085f62e3924f4c81029e4
+ sha256sums = be3e41373ab7a6f112b5ebd96f4c2b0550333192b54b587be43727bf82003a2a
+ sha256sums = 9c701eda6fda419ceab4b9e7b21b9d6e2a1eb0844b65404fc04bc609778b7419
+ sha256sums = b03d9ea1b2a7e5687e6e954dd3f039c341fa4d69fb047ca688ffe5b953e977be
+ sha256sums = 6cb2a9282ebb4fd53058d22f8159e10d1d8c321b7d17d0f2d761bdab7f88eaf8
+ sha256sums = b64ccbec1080320fec7bfc3b55a6a2ebc33159d216039170ba58008ba7ec37b7
+ sha256sums = 354616dccd88c5227c276ddbf184c083c77d9cea9ac143993101d9e67b7f0cfc
+ sha256sums = 93eca845542db214f113c72df69c456f53ea0e77e1db865124384939ecd76e2d
+ sha256sums = 3a2f95a37b4614f05ac5a7c5d81a99555ba01b0b192667896006db8490cb89fa
sha256sums = 65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b
pkgname = linux-cachyos-cacule
diff --git a/linux-cachyos-cacule/PKGBUILD b/linux-cachyos-cacule/PKGBUILD
index 29ea936a..c11f7774 100644
--- a/linux-cachyos-cacule/PKGBUILD
+++ b/linux-cachyos-cacule/PKGBUILD
@@ -130,7 +130,7 @@ _srcname=linux-${_stable}
#_srcname=linux-${_major}
arch=(x86_64 x86_64_v3)
pkgdesc='Linux cacULE scheduler Kernel by CachyOS with other patches and improvements'
-pkgrel=4
+pkgrel=5
arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos"
license=('GPL2')
@@ -150,20 +150,20 @@ source=(
"${_patchsource}/0001-arch.patch"
"${_patchsource}/0002-anbox.patch"
"${_patchsource}/0003-bbr2.patch"
- "${_patchsource}/0004-fs-patches.patch"
- "${_patchsource}/0005-cachy.patch"
- "${_patchsource}/0006-clearlinux.patch"
- "${_patchsource}/0007-cpu-patches.patch"
- "${_patchsource}/0008-fixes-miscellaneous.patch"
- "${_patchsource}/0009-fixes.patch"
- "${_patchsource}/0010-hwmon.patch"
- "${_patchsource}/0011-MG-LRU.patch"
- "${_patchsource}/0012-spf-lru.patch"
- "${_patchsource}/0014-v4l2loopback.patch"
- "${_patchsource}/0015-xanmod.patch"
- "${_patchsource}/0016-lrng.patch"
- "${_patchsource}/0017-le9.patch"
- "${_patchsource}/0018-ck-hrtimer.patch"
+ "${_patchsource}/0004-cachy.patch"
+ "${_patchsource}/0005-clearlinux.patch"
+ "${_patchsource}/0006-cpu.patch"
+ "${_patchsource}/0007-fixes-miscellaneous.patch"
+ "${_patchsource}/0008-fs-patches.patch"
+ "${_patchsource}/0009-hwmon.patch"
+ "${_patchsource}/0010-MG-LRU.patch"
+ "${_patchsource}/0011-spf-lru.patch"
+ "${_patchsource}/0012-v4l2loopback.patch"
+ "${_patchsource}/0013-xanmod.patch"
+ "${_patchsource}/0014-lrng.patch"
+ "${_patchsource}/0015-le9.patch"
+ "${_patchsource}/0016-ck-hrtimer.patch"
+ # "${_patchsource}/0017-FG-KASLR.patch"
"auto-cpu-optimization.sh"
)
@@ -223,12 +223,10 @@ prepare() {
scripts/config --enable CONFIG_SCHED_PDS
elif [ "$_cpusched" = "cacule" ]; then
echo "Selecting CacULE scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
scripts/config --enable CONFIG_CACULE_SCHED
scripts/config --disable CONFIG_CACULE_RDB
elif [ "$_cpusched" = "cacule-rdb" ]; then
echo "Selecting CacULE-RDB scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
scripts/config --enable CONFIG_CACULE_SCHED
scripts/config --enable CONFIG_CACULE_RDB
scripts/config --set-val CONFIG_RDB_INTERVAL 19
@@ -238,10 +236,9 @@ prepare() {
scripts/config --enable CONFIG_TT_ACCOUNTING_STATS
elif [ "$_cpusched" = "bore" ]; then
echo "Selecting BORE Scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
+ scripts/config --enable CONFIG_SCHED_BORE
elif [ "$_cpusched" = "cfs" ]; then
echo "Selecting Completely Fair Scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
else
if [ -n "$_cpusched" ]; then
error "The value $_cpusched is invalid. Choose the correct one again."
@@ -306,11 +303,17 @@ prepare() {
if [ -n "$_NUMAdisable" ]; then
echo "Disabling NUMA from kernel config..."
scripts/config --disable CONFIG_NUMA
- fi
-
- if [ -n "$_winesync" ]; then
- echo "Enable winesync support"
- scripts/config --module CONFIG_WINESYNC
+ scripts/config --disable CONFIG_AMD_NUMA
+ scripts/config --disable CONFIG_X86_64_ACPI_NUMA
+ scripts/config --disable CONFIG_NODES_SPAN_OTHER_NODES
+ scripts/config --disable CONFIG_NUMA_EMU
+ scripts/config --disable CONFIG_NEED_MULTIPLE_NODES
+ scripts/config --disable CONFIG_USE_PERCPU_NUMA_NODE_ID
+ scripts/config --disable CONFIG_ACPI_NUMA
+ scripts/config --disable CONFIG_ARCH_SUPPORTS_NUMA_BALANCING
+ scripts/config --disable CONFIG_NODES_SHIFT
+ scripts/config --undefine CONFIG_NODES_SHIFT
+ scripts/config --disable CONFIG_NEED_MULTIPLE_NODES
fi
### Disable MQ-Deadline I/O scheduler
@@ -335,6 +338,11 @@ prepare() {
scripts/config --disable CONFIG_CPU_FREQ_GOV_CONSERVATIVE
scripts/config --disable CONFIG_CPU_FREQ_GOV_USERSPACE
scripts/config --disable CONFIG_CPU_FREQ_GOV_SCHEDUTIL
+ echo "Set PCIEASPM DRIVER to performance..."
+ scripts/config --enable CONFIG_PCIEASPM
+ scripts/config --enable CONFIG_PCIEASPM_PERFORMANCE
+ echo "Set CONFIG_PCIE_BUS for performance..."
+ scripts/config --enable CONFIG_PCIE_BUS_PERFORMANCE
fi
### Enable KBUILD_CFLAGS -O3
@@ -355,7 +363,6 @@ prepare() {
scripts/config --set-str CONFIG_DEFAULT_TCP_CONG bbr2
fi
-
### Enable FULLCONENAT
if [ -n "$_nf_cone" ]; then
echo "Enabling FULLCONENAT..."
@@ -363,7 +370,6 @@ prepare() {
scripts/config --module CONFIG_NETFILTER_XT_TARGET_FULLCONENAT
fi
-
### Enable SPF
if [ -n "$_spf_enable" ]; then
echo "Enabling multigenerational LRU..."
@@ -437,7 +443,6 @@ prepare() {
scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC
fi
-
### Selecting the ZSTD compression level
if [ "$_zstd_level" = "ultra" ]; then
echo "Enabling highest ZSTD compression ratio..."
@@ -493,14 +498,25 @@ prepare() {
scripts/config --set-str CONFIG_ZSWAP_COMPRESSOR_DEFAULT zstd
fi
-
- echo "Enable Anbox"
+ echo "Enable Anbox..."
scripts/config --enable CONFIG_ASHMEM
scripts/config --enable CONFIG_ANDROID
scripts/config --enable CONFIG_ANDROID_BINDER_IPC
scripts/config --enable CONFIG_ANDROID_BINDERFS
scripts/config --enable CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
+ echo "disable debugging features to reduce the size..."
+ scripts/config --disable CONFIG_DEBUG_INFO
+ scripts/config --disable CONFIG_CGROUP_BPF
+ scripts/config --disable CONFIG_BPF_LSM
+ scripts/config --disable CONFIG_BPF_PRELOAD
+ scripts/config --disable CONFIG_BPF_LIRC_MODE2
+ scripts/config --disable CONFIG_BPF_KPROBE_OVERRIDE
+ scripts/config --enable CONFIG_PSI_DEFAULT_DISABLED
+ scripts/config --disable CONFIG_LATENCYTOP
+ scripts/config --disable CONFIG_SCHED_DEBUG
+ scripts/config --disable CONFIG_KVM_WERROR
+
### Optionally use running kernel's config
# code originally by nous; http://aur.archlinux.org/packages.php?ID=40191
if [ -n "$_use_current" ]; then
@@ -565,14 +581,15 @@ _package() {
echo "Installing boot image..."
# systemd expects to find the kernel here to allow hibernation
# https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344
- install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"
+ install -Dm644 "$(make ${BUILD_FLAGS[*]} -s image_name)" "$modulesdir/vmlinuz"
# Used by mkinitcpio to name the kernel
echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"
echo "Installing modules..."
- make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
+ make ${BUILD_FLAGS[*]} INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
DEPMOD=/doesnt/exist modules_install # Suppress depmod
+
# remove build and source links
rm "$modulesdir"/{source,build}
}
@@ -595,7 +612,7 @@ _package-headers() {
install -Dt "$builddir/tools/objtool" tools/objtool/objtool
# required when DEBUG_INFO_BTF_MODULES is enabled
- install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
+ # install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
echo "Installing headers..."
cp -t "$builddir" -a include
@@ -651,8 +668,9 @@ _package-headers() {
esac
done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)
- echo "Stripping vmlinux..."
- strip -v $STRIP_STATIC "$builddir/vmlinux"
+ # echo "Stripping vmlinux..."
+ # strip -v $STRIP_STATIC "$builddir/vmlinux"
+ # not needed since not building with CONFIG_DEBUG_INFO=y
echo "Adding symlink..."
mkdir -p "$pkgdir/usr/src"
@@ -669,23 +687,22 @@ for _p in "${pkgname[@]}"; do
done
sha256sums=('32d0a8e366b87e1cbde951b9f7a01287546670ba60fac35cccfc8a7c005a162c'
- '70118f513695925cc1f1928032ea79bacca3e3fc0e9e66020f7a6e613601e204'
- '33c0d70410ac7e0fccce5796aacea76838b048c79bbdc92eaf2fdbb5eabd4e0d'
- '86881dd86c0982d86b66aca11f440ce3a0c88a28fb7120fdf8f7d6ad7d328e05'
- '7616bde11139d419ef190f2870e3a848b7157b9a4dc769a6f1ff59cb99508126'
- '576d14d12b54a8756117d4839fa63241fcde0ff7799ddfd07f0b25e7e852407c'
- '3b9a5a31c77e1b708793fd735ad82bd5906f0d8c0b055eae03ea0242ef83509c'
- 'a801630a75a59363c99144836a13aef4f36f93b3b5b64299faa11e21e329cfe4'
- '440f463d88183ced1ca0e1e8dafa227e6c0212752de7a0d5203e293e8ccb2f88'
- '7c76f76baccf3ca163f7889bb3d5b28a0551b94cd08312a63581b6df9f439693'
- 'bda7360b44d033dc274649d4c99e252321145162cbe7463ac1f97d79eae7101e'
- 'cf3554d737c52663dd3048906788c28ade3e53a660049ea0bdb792f096965c70'
- '8de7224e9d84605b7498dd003018dc94cc421d9871500ae885176f051fe048f8'
- 'f6e422d11a5389c5da330501a2a816f9fc088627124ab0910252dfa4d5eac367'
- 'ea4174aa8fbeb309c17fb0aedb4eacbf269ba02123d28067ec46142823782ca7'
- '1e486bf2a8d33762ed429569d4220a218e1d6db0e96d7cfb57e4ed8090a349bf'
- '6d2c65532a81468d15f8fb326837eef12f07e10c24e7219fc49c941eb40450db'
- 'c921936c051dd5efe66d7b53eb03a2f26b14b138047cd76702ba6cedf4474432'
- '98d833fb1616e1ef7332e73f3d0ee8dcd58ceca5e5d30279944e9d4b9003d991'
- '84249d7d74d8510c12a2a0511064eade53ee36f69180f9f0e738615611a0afb2'
+ '29c5dd2ae6b452b75b25816a8f6610fa2ff54f21b22a0ccef5c2e98a7077eb36'
+ '6ca8fa67a30513e47b2f4dc8566a7297741404195430b589624409d9608b3710'
+ 'e7a81fb26bb61875c07ba83075522d3d1c1ed463581c7067404a91bc724340b8'
+ 'dea401c0efff7f7979b91b1a32524646d0bab38191d70daf18924f944a4f1fd5'
+ '9962cab7ce58729912c70f2dce345d088c0c61f640e0bd9ee2975d571b08a0d2'
+ '9710c78919d651e2266391c129bf89557ee09aabeaa7935ae798c037d3c7c0cc'
+ '6f291e71de3df52728933d2e04da6a59eb08c3bdb3012ebeae40f05183744b93'
+ '18cfe65a2da89006f8aeb701a846a2e6ed2cac2e84b86cd7f6f9a25e988c4057'
+ '832781712c6c6a9523e1a9436f2131cc9f0b9d7131d44477c7e81739fc28e529'
+ '334263fecd6a1fe325c026928ac971fbb8168e23665085f62e3924f4c81029e4'
+ 'be3e41373ab7a6f112b5ebd96f4c2b0550333192b54b587be43727bf82003a2a'
+ '9c701eda6fda419ceab4b9e7b21b9d6e2a1eb0844b65404fc04bc609778b7419'
+ 'b03d9ea1b2a7e5687e6e954dd3f039c341fa4d69fb047ca688ffe5b953e977be'
+ '6cb2a9282ebb4fd53058d22f8159e10d1d8c321b7d17d0f2d761bdab7f88eaf8'
+ 'b64ccbec1080320fec7bfc3b55a6a2ebc33159d216039170ba58008ba7ec37b7'
+ '354616dccd88c5227c276ddbf184c083c77d9cea9ac143993101d9e67b7f0cfc'
+ '93eca845542db214f113c72df69c456f53ea0e77e1db865124384939ecd76e2d'
+ '3a2f95a37b4614f05ac5a7c5d81a99555ba01b0b192667896006db8490cb89fa'
'65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b')
diff --git a/linux-cachyos-cacule/config b/linux-cachyos-cacule/config
index d445f5d6..3fe06e48 100644
--- a/linux-cachyos-cacule/config
+++ b/linux-cachyos-cacule/config
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Linux/x86 5.17.3 Kernel Configuration
+# Linux/x86 5.17.4 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.2.0"
CONFIG_CC_IS_GCC=y
@@ -100,8 +100,10 @@ CONFIG_POSIX_CPU_TIMERS_TASK_WORK=y
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
-CONFIG_NO_HZ_IDLE=y
-# CONFIG_NO_HZ_FULL is not set
+# CONFIG_NO_HZ_IDLE is not set
+CONFIG_NO_HZ_FULL=y
+CONFIG_CONTEXT_TRACKING=y
+# CONFIG_CONTEXT_TRACKING_FORCE is not set
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
# end of Timers subsystem
@@ -124,13 +126,11 @@ CONFIG_BPF_PRELOAD_UMD=m
CONFIG_BPF_LSM=y
# end of BPF subsystem
-CONFIG_PREEMPT_BUILD=y
+CONFIG_PREEMPT_VOLUNTARY_BUILD=y
# CONFIG_PREEMPT_NONE is not set
-# CONFIG_PREEMPT_VOLUNTARY is not set
-CONFIG_PREEMPT=y
-CONFIG_PREEMPT_COUNT=y
-CONFIG_PREEMPTION=y
-CONFIG_PREEMPT_DYNAMIC=y
+CONFIG_PREEMPT_VOLUNTARY=y
+# CONFIG_PREEMPT is not set
+# CONFIG_PREEMPT_DYNAMIC is not set
CONFIG_SCHED_CORE=y
#
@@ -170,7 +170,8 @@ CONFIG_RCU_FANOUT=64
CONFIG_RCU_FANOUT_LEAF=16
CONFIG_RCU_BOOST=y
CONFIG_RCU_BOOST_DELAY=500
-# CONFIG_RCU_NOCB_CPU is not set
+CONFIG_RCU_NOCB_CPU=y
+CONFIG_RCU_NOCB_CPU_DEFAULT_ALL=y
# CONFIG_TASKS_TRACE_RCU_READ_MB is not set
# end of RCU Subsystem
@@ -192,7 +193,6 @@ CONFIG_UCLAMP_BUCKETS_COUNT=5
# CONFIG_SCHED_ALT is not set
# CONFIG_SCHED_BMQ is not set
# CONFIG_SCHED_PDS is not set
-# CONFIG_SCHED_BORE is not set
# end of Scheduler features
# CONFIG_CACULE_SCHED is not set
@@ -237,6 +237,7 @@ CONFIG_USER_NS_UNPRIVILEGED=y
CONFIG_PID_NS=y
CONFIG_NET_NS=y
CONFIG_CHECKPOINT_RESTORE=y
+# CONFIG_SCHED_BORE is not set
CONFIG_SCHED_AUTOGROUP=y
CONFIG_SCHED_AUTOGROUP_DEFAULT_ENABLED=y
# CONFIG_SYSFS_DEPRECATED is not set
diff --git a/linux-cachyos-pds/.SRCINFO b/linux-cachyos-pds/.SRCINFO
index 033f6f1e..3f8d770a 100755
--- a/linux-cachyos-pds/.SRCINFO
+++ b/linux-cachyos-pds/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = linux-cachyos-pds
pkgdesc = Linux PDS scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.17.3
- pkgrel = 4
+ pkgrel = 5
url = https://github.com/CachyOS/linux-cachyos
arch = x86_64
arch = x86_64_v3
@@ -30,41 +30,39 @@ pkgbase = linux-cachyos-pds
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0001-arch.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0002-anbox.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0003-bbr2.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0004-fs-patches.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0005-cachy.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0006-clearlinux.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0007-cpu-patches.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0008-fixes-miscellaneous.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0009-fixes.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0010-hwmon.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0011-MG-LRU.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0012-spf-lru.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0014-v4l2loopback.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0015-xanmod.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0016-lrng.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0017-le9.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0018-ck-hrtimer.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0004-cachy.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0005-clearlinux.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0006-cpu.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0007-fixes-miscellaneous.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0008-fs-patches.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0009-hwmon.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0010-MG-LRU.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0011-spf-lru.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0012-v4l2loopback.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0013-xanmod.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0014-lrng.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0015-le9.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0016-ck-hrtimer.patch
source = auto-cpu-optimization.sh
sha256sums = 32d0a8e366b87e1cbde951b9f7a01287546670ba60fac35cccfc8a7c005a162c
- sha256sums = 70118f513695925cc1f1928032ea79bacca3e3fc0e9e66020f7a6e613601e204
- sha256sums = ba65acd3f1168a7479e3665b5b13f7d1066e713eadb5a0e5110423ba97d7ccd3
- sha256sums = 86881dd86c0982d86b66aca11f440ce3a0c88a28fb7120fdf8f7d6ad7d328e05
- sha256sums = 7616bde11139d419ef190f2870e3a848b7157b9a4dc769a6f1ff59cb99508126
- sha256sums = 576d14d12b54a8756117d4839fa63241fcde0ff7799ddfd07f0b25e7e852407c
- sha256sums = 3b9a5a31c77e1b708793fd735ad82bd5906f0d8c0b055eae03ea0242ef83509c
- sha256sums = a801630a75a59363c99144836a13aef4f36f93b3b5b64299faa11e21e329cfe4
- sha256sums = 440f463d88183ced1ca0e1e8dafa227e6c0212752de7a0d5203e293e8ccb2f88
- sha256sums = 7c76f76baccf3ca163f7889bb3d5b28a0551b94cd08312a63581b6df9f439693
- sha256sums = bda7360b44d033dc274649d4c99e252321145162cbe7463ac1f97d79eae7101e
- sha256sums = cf3554d737c52663dd3048906788c28ade3e53a660049ea0bdb792f096965c70
- sha256sums = 8de7224e9d84605b7498dd003018dc94cc421d9871500ae885176f051fe048f8
- sha256sums = f6e422d11a5389c5da330501a2a816f9fc088627124ab0910252dfa4d5eac367
- sha256sums = ea4174aa8fbeb309c17fb0aedb4eacbf269ba02123d28067ec46142823782ca7
- sha256sums = 1e486bf2a8d33762ed429569d4220a218e1d6db0e96d7cfb57e4ed8090a349bf
- sha256sums = 6d2c65532a81468d15f8fb326837eef12f07e10c24e7219fc49c941eb40450db
- sha256sums = c921936c051dd5efe66d7b53eb03a2f26b14b138047cd76702ba6cedf4474432
- sha256sums = 98d833fb1616e1ef7332e73f3d0ee8dcd58ceca5e5d30279944e9d4b9003d991
- sha256sums = 84249d7d74d8510c12a2a0511064eade53ee36f69180f9f0e738615611a0afb2
+ sha256sums = 29c5dd2ae6b452b75b25816a8f6610fa2ff54f21b22a0ccef5c2e98a7077eb36
+ sha256sums = a10e35eb0786a78d325fe95890b88a728f6e4a8317f244b82e433229f2e294eb
+ sha256sums = e7a81fb26bb61875c07ba83075522d3d1c1ed463581c7067404a91bc724340b8
+ sha256sums = dea401c0efff7f7979b91b1a32524646d0bab38191d70daf18924f944a4f1fd5
+ sha256sums = 9962cab7ce58729912c70f2dce345d088c0c61f640e0bd9ee2975d571b08a0d2
+ sha256sums = 9710c78919d651e2266391c129bf89557ee09aabeaa7935ae798c037d3c7c0cc
+ sha256sums = 6f291e71de3df52728933d2e04da6a59eb08c3bdb3012ebeae40f05183744b93
+ sha256sums = 18cfe65a2da89006f8aeb701a846a2e6ed2cac2e84b86cd7f6f9a25e988c4057
+ sha256sums = 832781712c6c6a9523e1a9436f2131cc9f0b9d7131d44477c7e81739fc28e529
+ sha256sums = 334263fecd6a1fe325c026928ac971fbb8168e23665085f62e3924f4c81029e4
+ sha256sums = be3e41373ab7a6f112b5ebd96f4c2b0550333192b54b587be43727bf82003a2a
+ sha256sums = 9c701eda6fda419ceab4b9e7b21b9d6e2a1eb0844b65404fc04bc609778b7419
+ sha256sums = b03d9ea1b2a7e5687e6e954dd3f039c341fa4d69fb047ca688ffe5b953e977be
+ sha256sums = 6cb2a9282ebb4fd53058d22f8159e10d1d8c321b7d17d0f2d761bdab7f88eaf8
+ sha256sums = b64ccbec1080320fec7bfc3b55a6a2ebc33159d216039170ba58008ba7ec37b7
+ sha256sums = 354616dccd88c5227c276ddbf184c083c77d9cea9ac143993101d9e67b7f0cfc
+ sha256sums = 93eca845542db214f113c72df69c456f53ea0e77e1db865124384939ecd76e2d
+ sha256sums = 3a2f95a37b4614f05ac5a7c5d81a99555ba01b0b192667896006db8490cb89fa
sha256sums = 65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b
pkgname = linux-cachyos-pds
diff --git a/linux-cachyos-pds/PKGBUILD b/linux-cachyos-pds/PKGBUILD
index 79497752..e326ef80 100644
--- a/linux-cachyos-pds/PKGBUILD
+++ b/linux-cachyos-pds/PKGBUILD
@@ -128,7 +128,7 @@ _srcname=linux-${_stable}
#_srcname=linux-${_major}
arch=(x86_64 x86_64_v3)
pkgdesc='Linux PDS scheduler Kernel by CachyOS with other patches and improvements'
-pkgrel=4
+pkgrel=5
arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos"
license=('GPL2')
@@ -148,20 +148,20 @@ source=(
"${_patchsource}/0001-arch.patch"
"${_patchsource}/0002-anbox.patch"
"${_patchsource}/0003-bbr2.patch"
- "${_patchsource}/0004-fs-patches.patch"
- "${_patchsource}/0005-cachy.patch"
- "${_patchsource}/0006-clearlinux.patch"
- "${_patchsource}/0007-cpu-patches.patch"
- "${_patchsource}/0008-fixes-miscellaneous.patch"
- "${_patchsource}/0009-fixes.patch"
- "${_patchsource}/0010-hwmon.patch"
- "${_patchsource}/0011-MG-LRU.patch"
- "${_patchsource}/0012-spf-lru.patch"
- "${_patchsource}/0014-v4l2loopback.patch"
- "${_patchsource}/0015-xanmod.patch"
- "${_patchsource}/0016-lrng.patch"
- "${_patchsource}/0017-le9.patch"
- "${_patchsource}/0018-ck-hrtimer.patch"
+ "${_patchsource}/0004-cachy.patch"
+ "${_patchsource}/0005-clearlinux.patch"
+ "${_patchsource}/0006-cpu.patch"
+ "${_patchsource}/0007-fixes-miscellaneous.patch"
+ "${_patchsource}/0008-fs-patches.patch"
+ "${_patchsource}/0009-hwmon.patch"
+ "${_patchsource}/0010-MG-LRU.patch"
+ "${_patchsource}/0011-spf-lru.patch"
+ "${_patchsource}/0012-v4l2loopback.patch"
+ "${_patchsource}/0013-xanmod.patch"
+ "${_patchsource}/0014-lrng.patch"
+ "${_patchsource}/0015-le9.patch"
+ "${_patchsource}/0016-ck-hrtimer.patch"
+ # "${_patchsource}/0017-FG-KASLR.patch"
"auto-cpu-optimization.sh"
)
@@ -221,11 +221,10 @@ prepare() {
scripts/config --enable CONFIG_SCHED_PDS
elif [ "$_cpusched" = "cacule" ]; then
echo "Selecting CacULE scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
scripts/config --enable CONFIG_CACULE_SCHED
+ scripts/config --disable CONFIG_CACULE_RDB
elif [ "$_cpusched" = "cacule-rdb" ]; then
echo "Selecting CacULE-RDB scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
scripts/config --enable CONFIG_CACULE_SCHED
scripts/config --enable CONFIG_CACULE_RDB
scripts/config --set-val CONFIG_RDB_INTERVAL 19
@@ -235,10 +234,9 @@ prepare() {
scripts/config --enable CONFIG_TT_ACCOUNTING_STATS
elif [ "$_cpusched" = "bore" ]; then
echo "Selecting BORE Scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
+ scripts/config --enable CONFIG_SCHED_BORE
elif [ "$_cpusched" = "cfs" ]; then
echo "Selecting Completely Fair Scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
else
if [ -n "$_cpusched" ]; then
error "The value $_cpusched is invalid. Choose the correct one again."
@@ -303,11 +301,17 @@ prepare() {
if [ -n "$_NUMAdisable" ]; then
echo "Disabling NUMA from kernel config..."
scripts/config --disable CONFIG_NUMA
- fi
-
- if [ -n "$_winesync" ]; then
- echo "Enable winesync support"
- scripts/config --module CONFIG_WINESYNC
+ scripts/config --disable CONFIG_AMD_NUMA
+ scripts/config --disable CONFIG_X86_64_ACPI_NUMA
+ scripts/config --disable CONFIG_NODES_SPAN_OTHER_NODES
+ scripts/config --disable CONFIG_NUMA_EMU
+ scripts/config --disable CONFIG_NEED_MULTIPLE_NODES
+ scripts/config --disable CONFIG_USE_PERCPU_NUMA_NODE_ID
+ scripts/config --disable CONFIG_ACPI_NUMA
+ scripts/config --disable CONFIG_ARCH_SUPPORTS_NUMA_BALANCING
+ scripts/config --disable CONFIG_NODES_SHIFT
+ scripts/config --undefine CONFIG_NODES_SHIFT
+ scripts/config --disable CONFIG_NEED_MULTIPLE_NODES
fi
### Disable MQ-Deadline I/O scheduler
@@ -332,6 +336,11 @@ prepare() {
scripts/config --disable CONFIG_CPU_FREQ_GOV_CONSERVATIVE
scripts/config --disable CONFIG_CPU_FREQ_GOV_USERSPACE
scripts/config --disable CONFIG_CPU_FREQ_GOV_SCHEDUTIL
+ echo "Set PCIEASPM DRIVER to performance..."
+ scripts/config --enable CONFIG_PCIEASPM
+ scripts/config --enable CONFIG_PCIEASPM_PERFORMANCE
+ echo "Set CONFIG_PCIE_BUS for performance..."
+ scripts/config --enable CONFIG_PCIE_BUS_PERFORMANCE
fi
### Enable KBUILD_CFLAGS -O3
@@ -352,7 +361,6 @@ prepare() {
scripts/config --set-str CONFIG_DEFAULT_TCP_CONG bbr2
fi
-
### Enable FULLCONENAT
if [ -n "$_nf_cone" ]; then
echo "Enabling FULLCONENAT..."
@@ -433,7 +441,6 @@ prepare() {
scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC
fi
-
### Selecting the ZSTD compression level
if [ "$_zstd_level" = "ultra" ]; then
echo "Enabling highest ZSTD compression ratio..."
@@ -489,13 +496,25 @@ prepare() {
scripts/config --set-str CONFIG_ZSWAP_COMPRESSOR_DEFAULT zstd
fi
- echo "Enable Anbox"
+ echo "Enable Anbox..."
scripts/config --enable CONFIG_ASHMEM
scripts/config --enable CONFIG_ANDROID
scripts/config --enable CONFIG_ANDROID_BINDER_IPC
scripts/config --enable CONFIG_ANDROID_BINDERFS
scripts/config --enable CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
+ echo "disable debugging features to reduce the size..."
+ scripts/config --disable CONFIG_DEBUG_INFO
+ scripts/config --disable CONFIG_CGROUP_BPF
+ scripts/config --disable CONFIG_BPF_LSM
+ scripts/config --disable CONFIG_BPF_PRELOAD
+ scripts/config --disable CONFIG_BPF_LIRC_MODE2
+ scripts/config --disable CONFIG_BPF_KPROBE_OVERRIDE
+ scripts/config --enable CONFIG_PSI_DEFAULT_DISABLED
+ scripts/config --disable CONFIG_LATENCYTOP
+ scripts/config --disable CONFIG_SCHED_DEBUG
+ scripts/config --disable CONFIG_KVM_WERROR
+
### Optionally use running kernel's config
# code originally by nous; http://aur.archlinux.org/packages.php?ID=40191
if [ -n "$_use_current" ]; then
@@ -560,14 +579,15 @@ _package() {
echo "Installing boot image..."
# systemd expects to find the kernel here to allow hibernation
# https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344
- install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"
+ install -Dm644 "$(make ${BUILD_FLAGS[*]} -s image_name)" "$modulesdir/vmlinuz"
# Used by mkinitcpio to name the kernel
echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"
echo "Installing modules..."
- make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
+ make ${BUILD_FLAGS[*]} INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
DEPMOD=/doesnt/exist modules_install # Suppress depmod
+
# remove build and source links
rm "$modulesdir"/{source,build}
}
@@ -590,7 +610,7 @@ _package-headers() {
install -Dt "$builddir/tools/objtool" tools/objtool/objtool
# required when DEBUG_INFO_BTF_MODULES is enabled
- install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
+ # install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
echo "Installing headers..."
cp -t "$builddir" -a include
@@ -646,8 +666,9 @@ _package-headers() {
esac
done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)
- echo "Stripping vmlinux..."
- strip -v $STRIP_STATIC "$builddir/vmlinux"
+ # echo "Stripping vmlinux..."
+ # strip -v $STRIP_STATIC "$builddir/vmlinux"
+ # not needed since not building with CONFIG_DEBUG_INFO=y
echo "Adding symlink..."
mkdir -p "$pkgdir/usr/src"
@@ -664,23 +685,22 @@ for _p in "${pkgname[@]}"; do
done
sha256sums=('32d0a8e366b87e1cbde951b9f7a01287546670ba60fac35cccfc8a7c005a162c'
- '70118f513695925cc1f1928032ea79bacca3e3fc0e9e66020f7a6e613601e204'
- 'ba65acd3f1168a7479e3665b5b13f7d1066e713eadb5a0e5110423ba97d7ccd3'
- '86881dd86c0982d86b66aca11f440ce3a0c88a28fb7120fdf8f7d6ad7d328e05'
- '7616bde11139d419ef190f2870e3a848b7157b9a4dc769a6f1ff59cb99508126'
- '576d14d12b54a8756117d4839fa63241fcde0ff7799ddfd07f0b25e7e852407c'
- '3b9a5a31c77e1b708793fd735ad82bd5906f0d8c0b055eae03ea0242ef83509c'
- 'a801630a75a59363c99144836a13aef4f36f93b3b5b64299faa11e21e329cfe4'
- '440f463d88183ced1ca0e1e8dafa227e6c0212752de7a0d5203e293e8ccb2f88'
- '7c76f76baccf3ca163f7889bb3d5b28a0551b94cd08312a63581b6df9f439693'
- 'bda7360b44d033dc274649d4c99e252321145162cbe7463ac1f97d79eae7101e'
- 'cf3554d737c52663dd3048906788c28ade3e53a660049ea0bdb792f096965c70'
- '8de7224e9d84605b7498dd003018dc94cc421d9871500ae885176f051fe048f8'
- 'f6e422d11a5389c5da330501a2a816f9fc088627124ab0910252dfa4d5eac367'
- 'ea4174aa8fbeb309c17fb0aedb4eacbf269ba02123d28067ec46142823782ca7'
- '1e486bf2a8d33762ed429569d4220a218e1d6db0e96d7cfb57e4ed8090a349bf'
- '6d2c65532a81468d15f8fb326837eef12f07e10c24e7219fc49c941eb40450db'
- 'c921936c051dd5efe66d7b53eb03a2f26b14b138047cd76702ba6cedf4474432'
- '98d833fb1616e1ef7332e73f3d0ee8dcd58ceca5e5d30279944e9d4b9003d991'
- '84249d7d74d8510c12a2a0511064eade53ee36f69180f9f0e738615611a0afb2'
+ '29c5dd2ae6b452b75b25816a8f6610fa2ff54f21b22a0ccef5c2e98a7077eb36'
+ 'a10e35eb0786a78d325fe95890b88a728f6e4a8317f244b82e433229f2e294eb'
+ 'e7a81fb26bb61875c07ba83075522d3d1c1ed463581c7067404a91bc724340b8'
+ 'dea401c0efff7f7979b91b1a32524646d0bab38191d70daf18924f944a4f1fd5'
+ '9962cab7ce58729912c70f2dce345d088c0c61f640e0bd9ee2975d571b08a0d2'
+ '9710c78919d651e2266391c129bf89557ee09aabeaa7935ae798c037d3c7c0cc'
+ '6f291e71de3df52728933d2e04da6a59eb08c3bdb3012ebeae40f05183744b93'
+ '18cfe65a2da89006f8aeb701a846a2e6ed2cac2e84b86cd7f6f9a25e988c4057'
+ '832781712c6c6a9523e1a9436f2131cc9f0b9d7131d44477c7e81739fc28e529'
+ '334263fecd6a1fe325c026928ac971fbb8168e23665085f62e3924f4c81029e4'
+ 'be3e41373ab7a6f112b5ebd96f4c2b0550333192b54b587be43727bf82003a2a'
+ '9c701eda6fda419ceab4b9e7b21b9d6e2a1eb0844b65404fc04bc609778b7419'
+ 'b03d9ea1b2a7e5687e6e954dd3f039c341fa4d69fb047ca688ffe5b953e977be'
+ '6cb2a9282ebb4fd53058d22f8159e10d1d8c321b7d17d0f2d761bdab7f88eaf8'
+ 'b64ccbec1080320fec7bfc3b55a6a2ebc33159d216039170ba58008ba7ec37b7'
+ '354616dccd88c5227c276ddbf184c083c77d9cea9ac143993101d9e67b7f0cfc'
+ '93eca845542db214f113c72df69c456f53ea0e77e1db865124384939ecd76e2d'
+ '3a2f95a37b4614f05ac5a7c5d81a99555ba01b0b192667896006db8490cb89fa'
'65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b')
diff --git a/linux-cachyos-pds/config b/linux-cachyos-pds/config
index d445f5d6..3fe06e48 100644
--- a/linux-cachyos-pds/config
+++ b/linux-cachyos-pds/config
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Linux/x86 5.17.3 Kernel Configuration
+# Linux/x86 5.17.4 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.2.0"
CONFIG_CC_IS_GCC=y
@@ -100,8 +100,10 @@ CONFIG_POSIX_CPU_TIMERS_TASK_WORK=y
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
-CONFIG_NO_HZ_IDLE=y
-# CONFIG_NO_HZ_FULL is not set
+# CONFIG_NO_HZ_IDLE is not set
+CONFIG_NO_HZ_FULL=y
+CONFIG_CONTEXT_TRACKING=y
+# CONFIG_CONTEXT_TRACKING_FORCE is not set
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
# end of Timers subsystem
@@ -124,13 +126,11 @@ CONFIG_BPF_PRELOAD_UMD=m
CONFIG_BPF_LSM=y
# end of BPF subsystem
-CONFIG_PREEMPT_BUILD=y
+CONFIG_PREEMPT_VOLUNTARY_BUILD=y
# CONFIG_PREEMPT_NONE is not set
-# CONFIG_PREEMPT_VOLUNTARY is not set
-CONFIG_PREEMPT=y
-CONFIG_PREEMPT_COUNT=y
-CONFIG_PREEMPTION=y
-CONFIG_PREEMPT_DYNAMIC=y
+CONFIG_PREEMPT_VOLUNTARY=y
+# CONFIG_PREEMPT is not set
+# CONFIG_PREEMPT_DYNAMIC is not set
CONFIG_SCHED_CORE=y
#
@@ -170,7 +170,8 @@ CONFIG_RCU_FANOUT=64
CONFIG_RCU_FANOUT_LEAF=16
CONFIG_RCU_BOOST=y
CONFIG_RCU_BOOST_DELAY=500
-# CONFIG_RCU_NOCB_CPU is not set
+CONFIG_RCU_NOCB_CPU=y
+CONFIG_RCU_NOCB_CPU_DEFAULT_ALL=y
# CONFIG_TASKS_TRACE_RCU_READ_MB is not set
# end of RCU Subsystem
@@ -192,7 +193,6 @@ CONFIG_UCLAMP_BUCKETS_COUNT=5
# CONFIG_SCHED_ALT is not set
# CONFIG_SCHED_BMQ is not set
# CONFIG_SCHED_PDS is not set
-# CONFIG_SCHED_BORE is not set
# end of Scheduler features
# CONFIG_CACULE_SCHED is not set
@@ -237,6 +237,7 @@ CONFIG_USER_NS_UNPRIVILEGED=y
CONFIG_PID_NS=y
CONFIG_NET_NS=y
CONFIG_CHECKPOINT_RESTORE=y
+# CONFIG_SCHED_BORE is not set
CONFIG_SCHED_AUTOGROUP=y
CONFIG_SCHED_AUTOGROUP_DEFAULT_ENABLED=y
# CONFIG_SYSFS_DEPRECATED is not set
diff --git a/linux-cachyos-rc/.SRCINFO b/linux-cachyos-rc/.SRCINFO
index 9f4cdf78..da80490a 100755
--- a/linux-cachyos-rc/.SRCINFO
+++ b/linux-cachyos-rc/.SRCINFO
@@ -29,7 +29,6 @@ pkgbase = linux-cachyos-rc
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-arch.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0002-bbr2.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0003-cachy.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0004-clearlinux.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0005-cpu.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0006-fixes-miscellaneous.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0007-xanmod.patch
@@ -44,7 +43,6 @@ pkgbase = linux-cachyos-rc
sha256sums = cd3444ee9fd36a70dc7d6c07ad76695d850c0252484b39a1223bc85285c24a3a
sha256sums = ef442804222f7f304b2a25adf7b31281efefbf311e639f8bc12f937009648616
sha256sums = 7a8c85cf0404ddfcb7d550fed06be67b198cfcb16e8b3528078558839d10a847
- sha256sums = ea17118705904459d35f092c0c67ccab461cb5d6d5849a0a8409da95987dc9c8
sha256sums = 23dc79105259559e5f9cfabc1e7253656676b63ab8aac3764270ebd2d2550a9b
sha256sums = 8d8f532f7d8d39846497f7482d936ea418d0f6ee6cb357df6b661d2af4fce125
sha256sums = d67a8f5e40cbbf68a40864cfebdf05d2797956368f59e795f891b834249ef05f
diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILD
index 8495f645..9e5bb229 100644
--- a/linux-cachyos-rc/PKGBUILD
+++ b/linux-cachyos-rc/PKGBUILD
@@ -224,11 +224,10 @@ prepare() {
scripts/config --enable CONFIG_SCHED_PDS
elif [ "$_cpusched" = "cacule" ]; then
echo "Selecting CacULE scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
scripts/config --enable CONFIG_CACULE_SCHED
+ scripts/config --disable CONFIG_CACULE_RDB
elif [ "$_cpusched" = "cacule-rdb" ]; then
echo "Selecting CacULE-RDB scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
scripts/config --enable CONFIG_CACULE_SCHED
scripts/config --enable CONFIG_CACULE_RDB
scripts/config --set-val CONFIG_RDB_INTERVAL 19
@@ -238,10 +237,9 @@ prepare() {
scripts/config --enable CONFIG_TT_ACCOUNTING_STATS
elif [ "$_cpusched" = "bore" ]; then
echo "Selecting BORE Scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
+ scripts/config --enable CONFIG_SCHED_BORE
elif [ "$_cpusched" = "cfs" ]; then
echo "Selecting Completely Fair Scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
else
if [ -n "$_cpusched" ]; then
error "The value $_cpusched is invalid. Choose the correct one again."
@@ -622,7 +620,6 @@ sha256sums=('b518d107c6727ebd74eb73b1fa36fbf5aee4e16ec39b1e3a0208ebb5fdd1127e'
'cd3444ee9fd36a70dc7d6c07ad76695d850c0252484b39a1223bc85285c24a3a'
'ef442804222f7f304b2a25adf7b31281efefbf311e639f8bc12f937009648616'
'7a8c85cf0404ddfcb7d550fed06be67b198cfcb16e8b3528078558839d10a847'
- 'ea17118705904459d35f092c0c67ccab461cb5d6d5849a0a8409da95987dc9c8'
'23dc79105259559e5f9cfabc1e7253656676b63ab8aac3764270ebd2d2550a9b'
'8d8f532f7d8d39846497f7482d936ea418d0f6ee6cb357df6b661d2af4fce125'
'd67a8f5e40cbbf68a40864cfebdf05d2797956368f59e795f891b834249ef05f'
diff --git a/linux-cachyos-tt/.SRCINFO b/linux-cachyos-tt/.SRCINFO
index 3f189293..d7c087e8 100755
--- a/linux-cachyos-tt/.SRCINFO
+++ b/linux-cachyos-tt/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = linux-cachyos-tt
pkgdesc = Linux TT scheduler Kernel by CachyOS and other patches and improvements
pkgver = 5.17.3
- pkgrel = 4
+ pkgrel = 5
url = https://github.com/CachyOS/linux-cachyos
arch = x86_64
arch = x86_64_v3
@@ -30,41 +30,39 @@ pkgbase = linux-cachyos-tt
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0001-arch.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0002-anbox.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0003-bbr2.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0004-fs-patches.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0005-cachy.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0006-clearlinux.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0007-cpu-patches.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0008-fixes-miscellaneous.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0009-fixes.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0010-hwmon.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0011-MG-LRU.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0012-spf-lru.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0014-v4l2loopback.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0015-xanmod.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0016-lrng.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0017-le9.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0018-ck-hrtimer.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0004-cachy.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0005-clearlinux.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0006-cpu.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0007-fixes-miscellaneous.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0008-fs-patches.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0009-hwmon.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0010-MG-LRU.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0011-spf-lru.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0012-v4l2loopback.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0013-xanmod.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0014-lrng.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0015-le9.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0016-ck-hrtimer.patch
source = auto-cpu-optimization.sh
sha256sums = 32d0a8e366b87e1cbde951b9f7a01287546670ba60fac35cccfc8a7c005a162c
- sha256sums = 70118f513695925cc1f1928032ea79bacca3e3fc0e9e66020f7a6e613601e204
- sha256sums = e493c542c964726c58aeee9949e84ad96b72f74bde629717dc274f03b3493789
- sha256sums = 86881dd86c0982d86b66aca11f440ce3a0c88a28fb7120fdf8f7d6ad7d328e05
- sha256sums = 7616bde11139d419ef190f2870e3a848b7157b9a4dc769a6f1ff59cb99508126
- sha256sums = 576d14d12b54a8756117d4839fa63241fcde0ff7799ddfd07f0b25e7e852407c
- sha256sums = 3b9a5a31c77e1b708793fd735ad82bd5906f0d8c0b055eae03ea0242ef83509c
- sha256sums = a801630a75a59363c99144836a13aef4f36f93b3b5b64299faa11e21e329cfe4
- sha256sums = 440f463d88183ced1ca0e1e8dafa227e6c0212752de7a0d5203e293e8ccb2f88
- sha256sums = 7c76f76baccf3ca163f7889bb3d5b28a0551b94cd08312a63581b6df9f439693
- sha256sums = bda7360b44d033dc274649d4c99e252321145162cbe7463ac1f97d79eae7101e
- sha256sums = cf3554d737c52663dd3048906788c28ade3e53a660049ea0bdb792f096965c70
- sha256sums = 8de7224e9d84605b7498dd003018dc94cc421d9871500ae885176f051fe048f8
- sha256sums = f6e422d11a5389c5da330501a2a816f9fc088627124ab0910252dfa4d5eac367
- sha256sums = ea4174aa8fbeb309c17fb0aedb4eacbf269ba02123d28067ec46142823782ca7
- sha256sums = 1e486bf2a8d33762ed429569d4220a218e1d6db0e96d7cfb57e4ed8090a349bf
- sha256sums = 6d2c65532a81468d15f8fb326837eef12f07e10c24e7219fc49c941eb40450db
- sha256sums = c921936c051dd5efe66d7b53eb03a2f26b14b138047cd76702ba6cedf4474432
- sha256sums = 98d833fb1616e1ef7332e73f3d0ee8dcd58ceca5e5d30279944e9d4b9003d991
- sha256sums = 84249d7d74d8510c12a2a0511064eade53ee36f69180f9f0e738615611a0afb2
+ sha256sums = 29c5dd2ae6b452b75b25816a8f6610fa2ff54f21b22a0ccef5c2e98a7077eb36
+ sha256sums = c048c4d43196d5d003897012b40da442d932f322b85e9805824450faa5df00ef
+ sha256sums = e7a81fb26bb61875c07ba83075522d3d1c1ed463581c7067404a91bc724340b8
+ sha256sums = dea401c0efff7f7979b91b1a32524646d0bab38191d70daf18924f944a4f1fd5
+ sha256sums = 9962cab7ce58729912c70f2dce345d088c0c61f640e0bd9ee2975d571b08a0d2
+ sha256sums = 9710c78919d651e2266391c129bf89557ee09aabeaa7935ae798c037d3c7c0cc
+ sha256sums = 6f291e71de3df52728933d2e04da6a59eb08c3bdb3012ebeae40f05183744b93
+ sha256sums = 18cfe65a2da89006f8aeb701a846a2e6ed2cac2e84b86cd7f6f9a25e988c4057
+ sha256sums = 832781712c6c6a9523e1a9436f2131cc9f0b9d7131d44477c7e81739fc28e529
+ sha256sums = 334263fecd6a1fe325c026928ac971fbb8168e23665085f62e3924f4c81029e4
+ sha256sums = be3e41373ab7a6f112b5ebd96f4c2b0550333192b54b587be43727bf82003a2a
+ sha256sums = 9c701eda6fda419ceab4b9e7b21b9d6e2a1eb0844b65404fc04bc609778b7419
+ sha256sums = b03d9ea1b2a7e5687e6e954dd3f039c341fa4d69fb047ca688ffe5b953e977be
+ sha256sums = 6cb2a9282ebb4fd53058d22f8159e10d1d8c321b7d17d0f2d761bdab7f88eaf8
+ sha256sums = b64ccbec1080320fec7bfc3b55a6a2ebc33159d216039170ba58008ba7ec37b7
+ sha256sums = 354616dccd88c5227c276ddbf184c083c77d9cea9ac143993101d9e67b7f0cfc
+ sha256sums = 93eca845542db214f113c72df69c456f53ea0e77e1db865124384939ecd76e2d
+ sha256sums = 3a2f95a37b4614f05ac5a7c5d81a99555ba01b0b192667896006db8490cb89fa
sha256sums = 65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b
pkgname = linux-cachyos-tt
diff --git a/linux-cachyos-tt/PKGBUILD b/linux-cachyos-tt/PKGBUILD
index d05ee75d..f20b4137 100644
--- a/linux-cachyos-tt/PKGBUILD
+++ b/linux-cachyos-tt/PKGBUILD
@@ -128,7 +128,7 @@ _srcname=linux-${_stable}
#_srcname=linux-${_major}
arch=(x86_64 x86_64_v3)
pkgdesc='Linux TT scheduler Kernel by CachyOS and other patches and improvements'
-pkgrel=4
+pkgrel=5
arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos"
license=('GPL2')
@@ -148,20 +148,20 @@ source=(
"${_patchsource}/0001-arch.patch"
"${_patchsource}/0002-anbox.patch"
"${_patchsource}/0003-bbr2.patch"
- "${_patchsource}/0004-fs-patches.patch"
- "${_patchsource}/0005-cachy.patch"
- "${_patchsource}/0006-clearlinux.patch"
- "${_patchsource}/0007-cpu-patches.patch"
- "${_patchsource}/0008-fixes-miscellaneous.patch"
- "${_patchsource}/0009-fixes.patch"
- "${_patchsource}/0010-hwmon.patch"
- "${_patchsource}/0011-MG-LRU.patch"
- "${_patchsource}/0012-spf-lru.patch"
- "${_patchsource}/0014-v4l2loopback.patch"
- "${_patchsource}/0015-xanmod.patch"
- "${_patchsource}/0016-lrng.patch"
- "${_patchsource}/0017-le9.patch"
- "${_patchsource}/0018-ck-hrtimer.patch"
+ "${_patchsource}/0004-cachy.patch"
+ "${_patchsource}/0005-clearlinux.patch"
+ "${_patchsource}/0006-cpu.patch"
+ "${_patchsource}/0007-fixes-miscellaneous.patch"
+ "${_patchsource}/0008-fs-patches.patch"
+ "${_patchsource}/0009-hwmon.patch"
+ "${_patchsource}/0010-MG-LRU.patch"
+ "${_patchsource}/0011-spf-lru.patch"
+ "${_patchsource}/0012-v4l2loopback.patch"
+ "${_patchsource}/0013-xanmod.patch"
+ "${_patchsource}/0014-lrng.patch"
+ "${_patchsource}/0015-le9.patch"
+ "${_patchsource}/0016-ck-hrtimer.patch"
+ # "${_patchsource}/0017-FG-KASLR.patch"
"auto-cpu-optimization.sh"
)
@@ -221,11 +221,10 @@ prepare() {
scripts/config --enable CONFIG_SCHED_PDS
elif [ "$_cpusched" = "cacule" ]; then
echo "Selecting CacULE scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
scripts/config --enable CONFIG_CACULE_SCHED
+ scripts/config --disable CONFIG_CACULE_RDB
elif [ "$_cpusched" = "cacule-rdb" ]; then
echo "Selecting CacULE-RDB scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
scripts/config --enable CONFIG_CACULE_SCHED
scripts/config --enable CONFIG_CACULE_RDB
scripts/config --set-val CONFIG_RDB_INTERVAL 19
@@ -235,10 +234,9 @@ prepare() {
scripts/config --enable CONFIG_TT_ACCOUNTING_STATS
elif [ "$_cpusched" = "bore" ]; then
echo "Selecting BORE Scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
+ scripts/config --enable CONFIG_SCHED_BORE
elif [ "$_cpusched" = "cfs" ]; then
echo "Selecting Completely Fair Scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
else
if [ -n "$_cpusched" ]; then
error "The value $_cpusched is invalid. Choose the correct one again."
@@ -303,11 +301,17 @@ prepare() {
if [ -n "$_NUMAdisable" ]; then
echo "Disabling NUMA from kernel config..."
scripts/config --disable CONFIG_NUMA
- fi
-
- if [ -n "$_winesync" ]; then
- echo "Enable winesync support"
- scripts/config --module CONFIG_WINESYNC
+ scripts/config --disable CONFIG_AMD_NUMA
+ scripts/config --disable CONFIG_X86_64_ACPI_NUMA
+ scripts/config --disable CONFIG_NODES_SPAN_OTHER_NODES
+ scripts/config --disable CONFIG_NUMA_EMU
+ scripts/config --disable CONFIG_NEED_MULTIPLE_NODES
+ scripts/config --disable CONFIG_USE_PERCPU_NUMA_NODE_ID
+ scripts/config --disable CONFIG_ACPI_NUMA
+ scripts/config --disable CONFIG_ARCH_SUPPORTS_NUMA_BALANCING
+ scripts/config --disable CONFIG_NODES_SHIFT
+ scripts/config --undefine CONFIG_NODES_SHIFT
+ scripts/config --disable CONFIG_NEED_MULTIPLE_NODES
fi
### Disable MQ-Deadline I/O scheduler
@@ -332,6 +336,11 @@ prepare() {
scripts/config --disable CONFIG_CPU_FREQ_GOV_CONSERVATIVE
scripts/config --disable CONFIG_CPU_FREQ_GOV_USERSPACE
scripts/config --disable CONFIG_CPU_FREQ_GOV_SCHEDUTIL
+ echo "Set PCIEASPM DRIVER to performance..."
+ scripts/config --enable CONFIG_PCIEASPM
+ scripts/config --enable CONFIG_PCIEASPM_PERFORMANCE
+ echo "Set CONFIG_PCIE_BUS for performance..."
+ scripts/config --enable CONFIG_PCIE_BUS_PERFORMANCE
fi
### Enable KBUILD_CFLAGS -O3
@@ -352,7 +361,6 @@ prepare() {
scripts/config --set-str CONFIG_DEFAULT_TCP_CONG bbr2
fi
-
### Enable FULLCONENAT
if [ -n "$_nf_cone" ]; then
echo "Enabling FULLCONENAT..."
@@ -388,52 +396,51 @@ prepare() {
### Enable Linux Random Number Generator
if [ -n "$_lrng_enable" ]; then
echo "Enabling Linux Random Number Generator ..."
- scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL
- scripts/config --enable CONFIG_LRNG
- scripts/config --enable CONFIG_LRNG_OVERSAMPLE_ENTROPY_SOURCES
- scripts/config --set-val CONFIG_CONFIG_LRNG_OVERSAMPLE_ES_BITS 64
- scripts/config --set-val CONFIG_LRNG_SEED_BUFFER_INIT_ADD_BITS 128
- scripts/config --enable CONFIG_LRNG_IRQ
- scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED
- scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED
- scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION
- scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION
- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512
- scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024
- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048
- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096
- scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192
- scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024
- scripts/config --enable CONFIG_LRNG_HEALTH_TESTS
- scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31
- scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325
- scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256
- scripts/config --enable CONFIG_LRNG_JENT
- scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16
- scripts/config --enable CONFIG_LRNG_CPU
- scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8
- scripts/config --enable CONFIG_LRNG_DRNG_SWITCH
- scripts/config --enable CONFIG_LRNG_KCAPI_HASH
- scripts/config --module CONFIG_LRNG_DRBG
- scripts/config --module CONFIG_LRNG_KCAPI
- scripts/config --enable CONFIG_LRNG_TESTING_MENU
- scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY
- scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY
- scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY
- scripts/config --disable CONFIG_LRNG_RAW_IRQFLAGS_ENTROPY
- scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY
- scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY
- scripts/config --disable CONFIG_LRNG_RAW_ARRAY
- scripts/config --disable CONFIG_LRNG_IRQ_PERF
- scripts/config --disable CONFIG_LRNG_ACVT_HASH
- scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG
- scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG
- scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION
- scripts/config --enable CONFIG_LRNG_SELFTEST
- scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC
+ scripts/config --disable CONFIG_RANDOM_DEFAULT_IMPL
+ scripts/config --enable CONFIG_LRNG
+ scripts/config --enable CONFIG_LRNG_OVERSAMPLE_ENTROPY_SOURCES
+ scripts/config --set-val CONFIG_CONFIG_LRNG_OVERSAMPLE_ES_BITS 64
+ scripts/config --set-val CONFIG_LRNG_SEED_BUFFER_INIT_ADD_BITS 128
+ scripts/config --enable CONFIG_LRNG_IRQ
+ scripts/config --enable CONFIG_LRNG_CONTINUOUS_COMPRESSION_ENABLED
+ scripts/config --disable CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED
+ scripts/config --enable CONFIG_LRNG_ENABLE_CONTINUOUS_COMPRESSION
+ scripts/config --enable CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION
+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_512
+ scripts/config --enable CONFIG_LRNG_COLLECTION_SIZE_1024
+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_2048
+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_4096
+ scripts/config --disable CONFIG_LRNG_COLLECTION_SIZE_8192
+ scripts/config --set-val CONFIG_LRNG_COLLECTION_SIZE 1024
+ scripts/config --enable CONFIG_LRNG_HEALTH_TESTS
+ scripts/config --set-val CONFIG_LRNG_RCT_CUTOFF 31
+ scripts/config --set-val CONFIG_LRNG_APT_CUTOFF 325
+ scripts/config --set-val CONFIG_LRNG_IRQ_ENTROPY_RATE 256
+ scripts/config --enable CONFIG_LRNG_JENT
+ scripts/config --set-val CONFIG_LRNG_JENT_ENTROPY_RATE 16
+ scripts/config --enable CONFIG_LRNG_CPU
+ scripts/config --set-val CONFIG_LRNG_CPU_ENTROPY_RATE 8
+ scripts/config --enable CONFIG_LRNG_DRNG_SWITCH
+ scripts/config --enable CONFIG_LRNG_KCAPI_HASH
+ scripts/config --module CONFIG_LRNG_DRBG
+ scripts/config --module CONFIG_LRNG_KCAPI
+ scripts/config --enable CONFIG_LRNG_TESTING_MENU
+ scripts/config --disable CONFIG_LRNG_RAW_HIRES_ENTROPY
+ scripts/config --disable CONFIG_LRNG_RAW_JIFFIES_ENTROPY
+ scripts/config --disable CONFIG_LRNG_RAW_IRQ_ENTROPY
+ scripts/config --disable CONFIG_LRNG_RAW_IRQFLAGS_ENTROPY
+ scripts/config --disable CONFIG_LRNG_RAW_RETIP_ENTROPY
+ scripts/config --disable CONFIG_LRNG_RAW_REGS_ENTROPY
+ scripts/config --disable CONFIG_LRNG_RAW_ARRAY
+ scripts/config --disable CONFIG_LRNG_IRQ_PERF
+ scripts/config --disable CONFIG_LRNG_ACVT_HASH
+ scripts/config --enable CONFIG_LRNG_RUNTIME_ES_CONFIG
+ scripts/config --disable CONFIG_LRNG_RUNTIME_MAX_WO_RESEED_CONFIG
+ scripts/config --disable CONFIG_LRNG_TEST_CPU_ES_COMPRESSION
+ scripts/config --enable CONFIG_LRNG_SELFTEST
+ scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC
fi
-
### Selecting the ZSTD compression level
if [ "$_zstd_level" = "ultra" ]; then
echo "Enabling highest ZSTD compression ratio..."
@@ -453,50 +460,61 @@ prepare() {
exit
fi
- ### Selecting the ZSTD modules and kernel compression level
- if [ "$_zstd_level_value" = "ultra" ]; then
- echo "Enabling highest ZSTD modules compression ratio..."
- scripts/config --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 19
- scripts/config --enable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA
- scripts/config --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22
- echo "Enabling highest ZSTD kernel compression ratio..."
- scripts/config --set-val CONFIG_ZSTD_COMP_VAL 22
- elif [ "$_zstd_level_value" = "normal" ]; then
- echo "Enabling standard ZSTD modules compression ratio..."
- scripts/config --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 19
- scripts/config --disable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA
- echo "Enabling standard ZSTD kernel compression ratio..."
- scripts/config --set-val CONFIG_ZSTD_COMP_VAL 19
- else
- if [ -n "$_zstd_level_value" ]; then
- error "The value $_zstd_level_value is invalid. Choose the correct one again."
- else
- error "The value is empty. Choose the correct one again."
- fi
- error "Selecting the ZSTD modules and kernel compression level failed!"
- exit
- fi
-
- ### Enable zram/zswap ZSTD compression
- if [ -n "$_zstd_swap_compression" ]; then
- echo "Enabling zram ZSTD compression..."
- scripts/config --disable CONFIG_ZRAM_DEF_COMP_LZORLE
- scripts/config --enable CONFIG_ZRAM_DEF_COMP_ZSTD
- scripts/config --set-str CONFIG_ZRAM_DEF_COMP zstd
- echo "Enabling zswap ZSTD compression..."
- scripts/config --disable CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4
- scripts/config --enable CONFIG_ZSWAP_COMPRESSOR_DEFAULT_ZSTD
- scripts/config --set-str CONFIG_ZSWAP_COMPRESSOR_DEFAULT zstd
+ ### Selecting the ZSTD modules and kernel compression level
+ if [ "$_zstd_level_value" = "ultra" ]; then
+ echo "Enabling highest ZSTD modules compression ratio..."
+ scripts/config --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 19
+ scripts/config --enable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA
+ scripts/config --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22
+ echo "Enabling highest ZSTD kernel compression ratio..."
+ scripts/config --set-val CONFIG_ZSTD_COMP_VAL 22
+ elif [ "$_zstd_level_value" = "normal" ]; then
+ echo "Enabling standard ZSTD modules compression ratio..."
+ scripts/config --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 19
+ scripts/config --disable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA
+ echo "Enabling standard ZSTD kernel compression ratio..."
+ scripts/config --set-val CONFIG_ZSTD_COMP_VAL 19
+ else
+ if [ -n "$_zstd_level_value" ]; then
+ error "The value $_zstd_level_value is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Selecting the ZSTD modules and kernel compression level failed!"
+ exit
fi
+ ### Enable zram/zswap ZSTD compression
+ if [ -n "$_zstd_swap_compression" ]; then
+ echo "Enabling zram ZSTD compression..."
+ scripts/config --disable CONFIG_ZRAM_DEF_COMP_LZORLE
+ scripts/config --enable CONFIG_ZRAM_DEF_COMP_ZSTD
+ scripts/config --set-str CONFIG_ZRAM_DEF_COMP zstd
+ echo "Enabling zswap ZSTD compression..."
+ scripts/config --disable CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4
+ scripts/config --enable CONFIG_ZSWAP_COMPRESSOR_DEFAULT_ZSTD
+ scripts/config --set-str CONFIG_ZSWAP_COMPRESSOR_DEFAULT zstd
+ fi
- echo "Enable Anbox"
+ echo "Enable Anbox..."
scripts/config --enable CONFIG_ASHMEM
scripts/config --enable CONFIG_ANDROID
scripts/config --enable CONFIG_ANDROID_BINDER_IPC
scripts/config --enable CONFIG_ANDROID_BINDERFS
scripts/config --enable CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
+ echo "disable debugging features to reduce the size..."
+ scripts/config --disable CONFIG_DEBUG_INFO
+ scripts/config --disable CONFIG_CGROUP_BPF
+ scripts/config --disable CONFIG_BPF_LSM
+ scripts/config --disable CONFIG_BPF_PRELOAD
+ scripts/config --disable CONFIG_BPF_LIRC_MODE2
+ scripts/config --disable CONFIG_BPF_KPROBE_OVERRIDE
+ scripts/config --enable CONFIG_PSI_DEFAULT_DISABLED
+ scripts/config --disable CONFIG_LATENCYTOP
+ scripts/config --disable CONFIG_SCHED_DEBUG
+ scripts/config --disable CONFIG_KVM_WERROR
+
### Optionally use running kernel's config
# code originally by nous; http://aur.archlinux.org/packages.php?ID=40191
if [ -n "$_use_current" ]; then
@@ -561,14 +579,15 @@ _package() {
echo "Installing boot image..."
# systemd expects to find the kernel here to allow hibernation
# https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344
- install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"
+ install -Dm644 "$(make ${BUILD_FLAGS[*]} -s image_name)" "$modulesdir/vmlinuz"
# Used by mkinitcpio to name the kernel
echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"
echo "Installing modules..."
- make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
+ make ${BUILD_FLAGS[*]} INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
DEPMOD=/doesnt/exist modules_install # Suppress depmod
+
# remove build and source links
rm "$modulesdir"/{source,build}
}
@@ -591,7 +610,7 @@ _package-headers() {
install -Dt "$builddir/tools/objtool" tools/objtool/objtool
# required when DEBUG_INFO_BTF_MODULES is enabled
- install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
+ # install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
echo "Installing headers..."
cp -t "$builddir" -a include
@@ -647,8 +666,9 @@ _package-headers() {
esac
done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)
- echo "Stripping vmlinux..."
- strip -v $STRIP_STATIC "$builddir/vmlinux"
+ # echo "Stripping vmlinux..."
+ # strip -v $STRIP_STATIC "$builddir/vmlinux"
+ # not needed since not building with CONFIG_DEBUG_INFO=y
echo "Adding symlink..."
mkdir -p "$pkgdir/usr/src"
@@ -665,23 +685,22 @@ for _p in "${pkgname[@]}"; do
done
sha256sums=('32d0a8e366b87e1cbde951b9f7a01287546670ba60fac35cccfc8a7c005a162c'
- '70118f513695925cc1f1928032ea79bacca3e3fc0e9e66020f7a6e613601e204'
- 'e493c542c964726c58aeee9949e84ad96b72f74bde629717dc274f03b3493789'
- '86881dd86c0982d86b66aca11f440ce3a0c88a28fb7120fdf8f7d6ad7d328e05'
- '7616bde11139d419ef190f2870e3a848b7157b9a4dc769a6f1ff59cb99508126'
- '576d14d12b54a8756117d4839fa63241fcde0ff7799ddfd07f0b25e7e852407c'
- '3b9a5a31c77e1b708793fd735ad82bd5906f0d8c0b055eae03ea0242ef83509c'
- 'a801630a75a59363c99144836a13aef4f36f93b3b5b64299faa11e21e329cfe4'
- '440f463d88183ced1ca0e1e8dafa227e6c0212752de7a0d5203e293e8ccb2f88'
- '7c76f76baccf3ca163f7889bb3d5b28a0551b94cd08312a63581b6df9f439693'
- 'bda7360b44d033dc274649d4c99e252321145162cbe7463ac1f97d79eae7101e'
- 'cf3554d737c52663dd3048906788c28ade3e53a660049ea0bdb792f096965c70'
- '8de7224e9d84605b7498dd003018dc94cc421d9871500ae885176f051fe048f8'
- 'f6e422d11a5389c5da330501a2a816f9fc088627124ab0910252dfa4d5eac367'
- 'ea4174aa8fbeb309c17fb0aedb4eacbf269ba02123d28067ec46142823782ca7'
- '1e486bf2a8d33762ed429569d4220a218e1d6db0e96d7cfb57e4ed8090a349bf'
- '6d2c65532a81468d15f8fb326837eef12f07e10c24e7219fc49c941eb40450db'
- 'c921936c051dd5efe66d7b53eb03a2f26b14b138047cd76702ba6cedf4474432'
- '98d833fb1616e1ef7332e73f3d0ee8dcd58ceca5e5d30279944e9d4b9003d991'
- '84249d7d74d8510c12a2a0511064eade53ee36f69180f9f0e738615611a0afb2'
+ '29c5dd2ae6b452b75b25816a8f6610fa2ff54f21b22a0ccef5c2e98a7077eb36'
+ 'c048c4d43196d5d003897012b40da442d932f322b85e9805824450faa5df00ef'
+ 'e7a81fb26bb61875c07ba83075522d3d1c1ed463581c7067404a91bc724340b8'
+ 'dea401c0efff7f7979b91b1a32524646d0bab38191d70daf18924f944a4f1fd5'
+ '9962cab7ce58729912c70f2dce345d088c0c61f640e0bd9ee2975d571b08a0d2'
+ '9710c78919d651e2266391c129bf89557ee09aabeaa7935ae798c037d3c7c0cc'
+ '6f291e71de3df52728933d2e04da6a59eb08c3bdb3012ebeae40f05183744b93'
+ '18cfe65a2da89006f8aeb701a846a2e6ed2cac2e84b86cd7f6f9a25e988c4057'
+ '832781712c6c6a9523e1a9436f2131cc9f0b9d7131d44477c7e81739fc28e529'
+ '334263fecd6a1fe325c026928ac971fbb8168e23665085f62e3924f4c81029e4'
+ 'be3e41373ab7a6f112b5ebd96f4c2b0550333192b54b587be43727bf82003a2a'
+ '9c701eda6fda419ceab4b9e7b21b9d6e2a1eb0844b65404fc04bc609778b7419'
+ 'b03d9ea1b2a7e5687e6e954dd3f039c341fa4d69fb047ca688ffe5b953e977be'
+ '6cb2a9282ebb4fd53058d22f8159e10d1d8c321b7d17d0f2d761bdab7f88eaf8'
+ 'b64ccbec1080320fec7bfc3b55a6a2ebc33159d216039170ba58008ba7ec37b7'
+ '354616dccd88c5227c276ddbf184c083c77d9cea9ac143993101d9e67b7f0cfc'
+ '93eca845542db214f113c72df69c456f53ea0e77e1db865124384939ecd76e2d'
+ '3a2f95a37b4614f05ac5a7c5d81a99555ba01b0b192667896006db8490cb89fa'
'65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b')
diff --git a/linux-cachyos-tt/config b/linux-cachyos-tt/config
index d445f5d6..3fe06e48 100644
--- a/linux-cachyos-tt/config
+++ b/linux-cachyos-tt/config
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Linux/x86 5.17.3 Kernel Configuration
+# Linux/x86 5.17.4 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.2.0"
CONFIG_CC_IS_GCC=y
@@ -100,8 +100,10 @@ CONFIG_POSIX_CPU_TIMERS_TASK_WORK=y
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
-CONFIG_NO_HZ_IDLE=y
-# CONFIG_NO_HZ_FULL is not set
+# CONFIG_NO_HZ_IDLE is not set
+CONFIG_NO_HZ_FULL=y
+CONFIG_CONTEXT_TRACKING=y
+# CONFIG_CONTEXT_TRACKING_FORCE is not set
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
# end of Timers subsystem
@@ -124,13 +126,11 @@ CONFIG_BPF_PRELOAD_UMD=m
CONFIG_BPF_LSM=y
# end of BPF subsystem
-CONFIG_PREEMPT_BUILD=y
+CONFIG_PREEMPT_VOLUNTARY_BUILD=y
# CONFIG_PREEMPT_NONE is not set
-# CONFIG_PREEMPT_VOLUNTARY is not set
-CONFIG_PREEMPT=y
-CONFIG_PREEMPT_COUNT=y
-CONFIG_PREEMPTION=y
-CONFIG_PREEMPT_DYNAMIC=y
+CONFIG_PREEMPT_VOLUNTARY=y
+# CONFIG_PREEMPT is not set
+# CONFIG_PREEMPT_DYNAMIC is not set
CONFIG_SCHED_CORE=y
#
@@ -170,7 +170,8 @@ CONFIG_RCU_FANOUT=64
CONFIG_RCU_FANOUT_LEAF=16
CONFIG_RCU_BOOST=y
CONFIG_RCU_BOOST_DELAY=500
-# CONFIG_RCU_NOCB_CPU is not set
+CONFIG_RCU_NOCB_CPU=y
+CONFIG_RCU_NOCB_CPU_DEFAULT_ALL=y
# CONFIG_TASKS_TRACE_RCU_READ_MB is not set
# end of RCU Subsystem
@@ -192,7 +193,6 @@ CONFIG_UCLAMP_BUCKETS_COUNT=5
# CONFIG_SCHED_ALT is not set
# CONFIG_SCHED_BMQ is not set
# CONFIG_SCHED_PDS is not set
-# CONFIG_SCHED_BORE is not set
# end of Scheduler features
# CONFIG_CACULE_SCHED is not set
@@ -237,6 +237,7 @@ CONFIG_USER_NS_UNPRIVILEGED=y
CONFIG_PID_NS=y
CONFIG_NET_NS=y
CONFIG_CHECKPOINT_RESTORE=y
+# CONFIG_SCHED_BORE is not set
CONFIG_SCHED_AUTOGROUP=y
CONFIG_SCHED_AUTOGROUP_DEFAULT_ENABLED=y
# CONFIG_SYSFS_DEPRECATED is not set
diff --git a/linux-cachyos/.SRCINFO b/linux-cachyos/.SRCINFO
index 4542a32c..0d2845c9 100755
--- a/linux-cachyos/.SRCINFO
+++ b/linux-cachyos/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = linux-cachyos
pkgdesc = Linux CFS scheduler Kernel by CachyOS and with other patches and improvements
pkgver = 5.17.3
- pkgrel = 4
+ pkgrel = 5
url = https://github.com/CachyOS/linux-cachyos
arch = x86_64
arch = x86_64_v3
@@ -29,40 +29,38 @@ pkgbase = linux-cachyos
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0001-arch.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0002-anbox.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0003-bbr2.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0004-fs-patches.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0005-cachy.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0006-clearlinux.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0007-cpu-patches.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0008-fixes-miscellaneous.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0009-fixes.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0010-hwmon.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0011-MG-LRU.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0012-spf-lru.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0014-v4l2loopback.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0015-xanmod.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0016-lrng.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0017-le9.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0018-ck-hrtimer.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0004-cachy.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0005-clearlinux.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0006-cpu.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0007-fixes-miscellaneous.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0008-fs-patches.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0009-hwmon.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0010-MG-LRU.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0011-spf-lru.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0012-v4l2loopback.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0013-xanmod.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0014-lrng.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0015-le9.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0016-ck-hrtimer.patch
source = auto-cpu-optimization.sh
sha256sums = 32d0a8e366b87e1cbde951b9f7a01287546670ba60fac35cccfc8a7c005a162c
- sha256sums = 70118f513695925cc1f1928032ea79bacca3e3fc0e9e66020f7a6e613601e204
- sha256sums = 86881dd86c0982d86b66aca11f440ce3a0c88a28fb7120fdf8f7d6ad7d328e05
- sha256sums = 7616bde11139d419ef190f2870e3a848b7157b9a4dc769a6f1ff59cb99508126
- sha256sums = 576d14d12b54a8756117d4839fa63241fcde0ff7799ddfd07f0b25e7e852407c
- sha256sums = 3b9a5a31c77e1b708793fd735ad82bd5906f0d8c0b055eae03ea0242ef83509c
- sha256sums = a801630a75a59363c99144836a13aef4f36f93b3b5b64299faa11e21e329cfe4
- sha256sums = 440f463d88183ced1ca0e1e8dafa227e6c0212752de7a0d5203e293e8ccb2f88
- sha256sums = 7c76f76baccf3ca163f7889bb3d5b28a0551b94cd08312a63581b6df9f439693
- sha256sums = bda7360b44d033dc274649d4c99e252321145162cbe7463ac1f97d79eae7101e
- sha256sums = cf3554d737c52663dd3048906788c28ade3e53a660049ea0bdb792f096965c70
- sha256sums = 8de7224e9d84605b7498dd003018dc94cc421d9871500ae885176f051fe048f8
- sha256sums = f6e422d11a5389c5da330501a2a816f9fc088627124ab0910252dfa4d5eac367
- sha256sums = ea4174aa8fbeb309c17fb0aedb4eacbf269ba02123d28067ec46142823782ca7
- sha256sums = 1e486bf2a8d33762ed429569d4220a218e1d6db0e96d7cfb57e4ed8090a349bf
- sha256sums = 6d2c65532a81468d15f8fb326837eef12f07e10c24e7219fc49c941eb40450db
- sha256sums = c921936c051dd5efe66d7b53eb03a2f26b14b138047cd76702ba6cedf4474432
- sha256sums = 98d833fb1616e1ef7332e73f3d0ee8dcd58ceca5e5d30279944e9d4b9003d991
- sha256sums = 84249d7d74d8510c12a2a0511064eade53ee36f69180f9f0e738615611a0afb2
+ sha256sums = 29c5dd2ae6b452b75b25816a8f6610fa2ff54f21b22a0ccef5c2e98a7077eb36
+ sha256sums = e7a81fb26bb61875c07ba83075522d3d1c1ed463581c7067404a91bc724340b8
+ sha256sums = dea401c0efff7f7979b91b1a32524646d0bab38191d70daf18924f944a4f1fd5
+ sha256sums = 9962cab7ce58729912c70f2dce345d088c0c61f640e0bd9ee2975d571b08a0d2
+ sha256sums = 9710c78919d651e2266391c129bf89557ee09aabeaa7935ae798c037d3c7c0cc
+ sha256sums = 6f291e71de3df52728933d2e04da6a59eb08c3bdb3012ebeae40f05183744b93
+ sha256sums = 18cfe65a2da89006f8aeb701a846a2e6ed2cac2e84b86cd7f6f9a25e988c4057
+ sha256sums = 832781712c6c6a9523e1a9436f2131cc9f0b9d7131d44477c7e81739fc28e529
+ sha256sums = 334263fecd6a1fe325c026928ac971fbb8168e23665085f62e3924f4c81029e4
+ sha256sums = be3e41373ab7a6f112b5ebd96f4c2b0550333192b54b587be43727bf82003a2a
+ sha256sums = 9c701eda6fda419ceab4b9e7b21b9d6e2a1eb0844b65404fc04bc609778b7419
+ sha256sums = b03d9ea1b2a7e5687e6e954dd3f039c341fa4d69fb047ca688ffe5b953e977be
+ sha256sums = 6cb2a9282ebb4fd53058d22f8159e10d1d8c321b7d17d0f2d761bdab7f88eaf8
+ sha256sums = b64ccbec1080320fec7bfc3b55a6a2ebc33159d216039170ba58008ba7ec37b7
+ sha256sums = 354616dccd88c5227c276ddbf184c083c77d9cea9ac143993101d9e67b7f0cfc
+ sha256sums = 93eca845542db214f113c72df69c456f53ea0e77e1db865124384939ecd76e2d
+ sha256sums = 3a2f95a37b4614f05ac5a7c5d81a99555ba01b0b192667896006db8490cb89fa
sha256sums = 65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b
pkgname = linux-cachyos
diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILD
index 863762fb..8ddf3e9c 100644
--- a/linux-cachyos/PKGBUILD
+++ b/linux-cachyos/PKGBUILD
@@ -128,7 +128,7 @@ _srcname=linux-${_stable}
#_srcname=linux-${_major}
arch=(x86_64 x86_64_v3)
pkgdesc='Linux CFS scheduler Kernel by CachyOS and with other patches and improvements'
-pkgrel=4
+pkgrel=5
arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos"
license=('GPL2')
@@ -148,20 +148,20 @@ source=(
"${_patchsource}/0001-arch.patch"
"${_patchsource}/0002-anbox.patch"
"${_patchsource}/0003-bbr2.patch"
- "${_patchsource}/0004-fs-patches.patch"
- "${_patchsource}/0005-cachy.patch"
- "${_patchsource}/0006-clearlinux.patch"
- "${_patchsource}/0007-cpu-patches.patch"
- "${_patchsource}/0008-fixes-miscellaneous.patch"
- "${_patchsource}/0009-fixes.patch"
- "${_patchsource}/0010-hwmon.patch"
- "${_patchsource}/0011-MG-LRU.patch"
- "${_patchsource}/0012-spf-lru.patch"
- "${_patchsource}/0014-v4l2loopback.patch"
- "${_patchsource}/0015-xanmod.patch"
- "${_patchsource}/0016-lrng.patch"
- "${_patchsource}/0017-le9.patch"
- "${_patchsource}/0018-ck-hrtimer.patch"
+ "${_patchsource}/0004-cachy.patch"
+ "${_patchsource}/0005-clearlinux.patch"
+ "${_patchsource}/0006-cpu.patch"
+ "${_patchsource}/0007-fixes-miscellaneous.patch"
+ "${_patchsource}/0008-fs-patches.patch"
+ "${_patchsource}/0009-hwmon.patch"
+ "${_patchsource}/0010-MG-LRU.patch"
+ "${_patchsource}/0011-spf-lru.patch"
+ "${_patchsource}/0012-v4l2loopback.patch"
+ "${_patchsource}/0013-xanmod.patch"
+ "${_patchsource}/0014-lrng.patch"
+ "${_patchsource}/0015-le9.patch"
+ "${_patchsource}/0016-ck-hrtimer.patch"
+ # "${_patchsource}/0017-FG-KASLR.patch"
"auto-cpu-optimization.sh"
)
@@ -221,11 +221,10 @@ prepare() {
scripts/config --enable CONFIG_SCHED_PDS
elif [ "$_cpusched" = "cacule" ]; then
echo "Selecting CacULE scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
scripts/config --enable CONFIG_CACULE_SCHED
+ scripts/config --disable CONFIG_CACULE_RDB
elif [ "$_cpusched" = "cacule-rdb" ]; then
echo "Selecting CacULE-RDB scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
scripts/config --enable CONFIG_CACULE_SCHED
scripts/config --enable CONFIG_CACULE_RDB
scripts/config --set-val CONFIG_RDB_INTERVAL 19
@@ -235,10 +234,9 @@ prepare() {
scripts/config --enable CONFIG_TT_ACCOUNTING_STATS
elif [ "$_cpusched" = "bore" ]; then
echo "Selecting BORE Scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
+ scripts/config --enable CONFIG_SCHED_BORE
elif [ "$_cpusched" = "cfs" ]; then
echo "Selecting Completely Fair Scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
else
if [ -n "$_cpusched" ]; then
error "The value $_cpusched is invalid. Choose the correct one again."
@@ -303,11 +301,17 @@ prepare() {
if [ -n "$_NUMAdisable" ]; then
echo "Disabling NUMA from kernel config..."
scripts/config --disable CONFIG_NUMA
- fi
-
- if [ -n "$_winesync" ]; then
- echo "Enable winesync support"
- scripts/config --module CONFIG_WINESYNC
+ scripts/config --disable CONFIG_AMD_NUMA
+ scripts/config --disable CONFIG_X86_64_ACPI_NUMA
+ scripts/config --disable CONFIG_NODES_SPAN_OTHER_NODES
+ scripts/config --disable CONFIG_NUMA_EMU
+ scripts/config --disable CONFIG_NEED_MULTIPLE_NODES
+ scripts/config --disable CONFIG_USE_PERCPU_NUMA_NODE_ID
+ scripts/config --disable CONFIG_ACPI_NUMA
+ scripts/config --disable CONFIG_ARCH_SUPPORTS_NUMA_BALANCING
+ scripts/config --disable CONFIG_NODES_SHIFT
+ scripts/config --undefine CONFIG_NODES_SHIFT
+ scripts/config --disable CONFIG_NEED_MULTIPLE_NODES
fi
### Disable MQ-Deadline I/O scheduler
@@ -332,6 +336,11 @@ prepare() {
scripts/config --disable CONFIG_CPU_FREQ_GOV_CONSERVATIVE
scripts/config --disable CONFIG_CPU_FREQ_GOV_USERSPACE
scripts/config --disable CONFIG_CPU_FREQ_GOV_SCHEDUTIL
+ echo "Set PCIEASPM DRIVER to performance..."
+ scripts/config --enable CONFIG_PCIEASPM
+ scripts/config --enable CONFIG_PCIEASPM_PERFORMANCE
+ echo "Set CONFIG_PCIE_BUS for performance..."
+ scripts/config --enable CONFIG_PCIE_BUS_PERFORMANCE
fi
### Enable KBUILD_CFLAGS -O3
@@ -352,7 +361,6 @@ prepare() {
scripts/config --set-str CONFIG_DEFAULT_TCP_CONG bbr2
fi
-
### Enable FULLCONENAT
if [ -n "$_nf_cone" ]; then
echo "Enabling FULLCONENAT..."
@@ -433,7 +441,6 @@ prepare() {
scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC
fi
-
### Selecting the ZSTD compression level
if [ "$_zstd_level" = "ultra" ]; then
echo "Enabling highest ZSTD compression ratio..."
@@ -489,14 +496,25 @@ prepare() {
scripts/config --set-str CONFIG_ZSWAP_COMPRESSOR_DEFAULT zstd
fi
-
- echo "Enable Anbox"
+ echo "Enable Anbox..."
scripts/config --enable CONFIG_ASHMEM
scripts/config --enable CONFIG_ANDROID
scripts/config --enable CONFIG_ANDROID_BINDER_IPC
scripts/config --enable CONFIG_ANDROID_BINDERFS
scripts/config --enable CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
+ echo "disable debugging features to reduce the size..."
+ scripts/config --disable CONFIG_DEBUG_INFO
+ scripts/config --disable CONFIG_CGROUP_BPF
+ scripts/config --disable CONFIG_BPF_LSM
+ scripts/config --disable CONFIG_BPF_PRELOAD
+ scripts/config --disable CONFIG_BPF_LIRC_MODE2
+ scripts/config --disable CONFIG_BPF_KPROBE_OVERRIDE
+ scripts/config --enable CONFIG_PSI_DEFAULT_DISABLED
+ scripts/config --disable CONFIG_LATENCYTOP
+ scripts/config --disable CONFIG_SCHED_DEBUG
+ scripts/config --disable CONFIG_KVM_WERROR
+
### Optionally use running kernel's config
# code originally by nous; http://aur.archlinux.org/packages.php?ID=40191
if [ -n "$_use_current" ]; then
@@ -561,14 +579,15 @@ _package() {
echo "Installing boot image..."
# systemd expects to find the kernel here to allow hibernation
# https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344
- install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"
+ install -Dm644 "$(make ${BUILD_FLAGS[*]} -s image_name)" "$modulesdir/vmlinuz"
# Used by mkinitcpio to name the kernel
echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"
echo "Installing modules..."
- make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
+ make ${BUILD_FLAGS[*]} INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
DEPMOD=/doesnt/exist modules_install # Suppress depmod
+
# remove build and source links
rm "$modulesdir"/{source,build}
}
@@ -591,7 +610,7 @@ _package-headers() {
install -Dt "$builddir/tools/objtool" tools/objtool/objtool
# required when DEBUG_INFO_BTF_MODULES is enabled
- install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
+ # install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
echo "Installing headers..."
cp -t "$builddir" -a include
@@ -647,8 +666,9 @@ _package-headers() {
esac
done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)
- echo "Stripping vmlinux..."
- strip -v $STRIP_STATIC "$builddir/vmlinux"
+ # echo "Stripping vmlinux..."
+ # strip -v $STRIP_STATIC "$builddir/vmlinux"
+ # not needed since not building with CONFIG_DEBUG_INFO=y
echo "Adding symlink..."
mkdir -p "$pkgdir/usr/src"
@@ -665,22 +685,21 @@ for _p in "${pkgname[@]}"; do
done
sha256sums=('32d0a8e366b87e1cbde951b9f7a01287546670ba60fac35cccfc8a7c005a162c'
- '70118f513695925cc1f1928032ea79bacca3e3fc0e9e66020f7a6e613601e204'
- '86881dd86c0982d86b66aca11f440ce3a0c88a28fb7120fdf8f7d6ad7d328e05'
- '7616bde11139d419ef190f2870e3a848b7157b9a4dc769a6f1ff59cb99508126'
- '576d14d12b54a8756117d4839fa63241fcde0ff7799ddfd07f0b25e7e852407c'
- '3b9a5a31c77e1b708793fd735ad82bd5906f0d8c0b055eae03ea0242ef83509c'
- 'a801630a75a59363c99144836a13aef4f36f93b3b5b64299faa11e21e329cfe4'
- '440f463d88183ced1ca0e1e8dafa227e6c0212752de7a0d5203e293e8ccb2f88'
- '7c76f76baccf3ca163f7889bb3d5b28a0551b94cd08312a63581b6df9f439693'
- 'bda7360b44d033dc274649d4c99e252321145162cbe7463ac1f97d79eae7101e'
- 'cf3554d737c52663dd3048906788c28ade3e53a660049ea0bdb792f096965c70'
- '8de7224e9d84605b7498dd003018dc94cc421d9871500ae885176f051fe048f8'
- 'f6e422d11a5389c5da330501a2a816f9fc088627124ab0910252dfa4d5eac367'
- 'ea4174aa8fbeb309c17fb0aedb4eacbf269ba02123d28067ec46142823782ca7'
- '1e486bf2a8d33762ed429569d4220a218e1d6db0e96d7cfb57e4ed8090a349bf'
- '6d2c65532a81468d15f8fb326837eef12f07e10c24e7219fc49c941eb40450db'
- 'c921936c051dd5efe66d7b53eb03a2f26b14b138047cd76702ba6cedf4474432'
- '98d833fb1616e1ef7332e73f3d0ee8dcd58ceca5e5d30279944e9d4b9003d991'
- '84249d7d74d8510c12a2a0511064eade53ee36f69180f9f0e738615611a0afb2'
+ '29c5dd2ae6b452b75b25816a8f6610fa2ff54f21b22a0ccef5c2e98a7077eb36'
+ 'e7a81fb26bb61875c07ba83075522d3d1c1ed463581c7067404a91bc724340b8'
+ 'dea401c0efff7f7979b91b1a32524646d0bab38191d70daf18924f944a4f1fd5'
+ '9962cab7ce58729912c70f2dce345d088c0c61f640e0bd9ee2975d571b08a0d2'
+ '9710c78919d651e2266391c129bf89557ee09aabeaa7935ae798c037d3c7c0cc'
+ '6f291e71de3df52728933d2e04da6a59eb08c3bdb3012ebeae40f05183744b93'
+ '18cfe65a2da89006f8aeb701a846a2e6ed2cac2e84b86cd7f6f9a25e988c4057'
+ '832781712c6c6a9523e1a9436f2131cc9f0b9d7131d44477c7e81739fc28e529'
+ '334263fecd6a1fe325c026928ac971fbb8168e23665085f62e3924f4c81029e4'
+ 'be3e41373ab7a6f112b5ebd96f4c2b0550333192b54b587be43727bf82003a2a'
+ '9c701eda6fda419ceab4b9e7b21b9d6e2a1eb0844b65404fc04bc609778b7419'
+ 'b03d9ea1b2a7e5687e6e954dd3f039c341fa4d69fb047ca688ffe5b953e977be'
+ '6cb2a9282ebb4fd53058d22f8159e10d1d8c321b7d17d0f2d761bdab7f88eaf8'
+ 'b64ccbec1080320fec7bfc3b55a6a2ebc33159d216039170ba58008ba7ec37b7'
+ '354616dccd88c5227c276ddbf184c083c77d9cea9ac143993101d9e67b7f0cfc'
+ '93eca845542db214f113c72df69c456f53ea0e77e1db865124384939ecd76e2d'
+ '3a2f95a37b4614f05ac5a7c5d81a99555ba01b0b192667896006db8490cb89fa'
'65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b')
diff --git a/linux-cachyos/config b/linux-cachyos/config
index d445f5d6..3fe06e48 100644
--- a/linux-cachyos/config
+++ b/linux-cachyos/config
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Linux/x86 5.17.3 Kernel Configuration
+# Linux/x86 5.17.4 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.2.0"
CONFIG_CC_IS_GCC=y
@@ -100,8 +100,10 @@ CONFIG_POSIX_CPU_TIMERS_TASK_WORK=y
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
-CONFIG_NO_HZ_IDLE=y
-# CONFIG_NO_HZ_FULL is not set
+# CONFIG_NO_HZ_IDLE is not set
+CONFIG_NO_HZ_FULL=y
+CONFIG_CONTEXT_TRACKING=y
+# CONFIG_CONTEXT_TRACKING_FORCE is not set
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
# end of Timers subsystem
@@ -124,13 +126,11 @@ CONFIG_BPF_PRELOAD_UMD=m
CONFIG_BPF_LSM=y
# end of BPF subsystem
-CONFIG_PREEMPT_BUILD=y
+CONFIG_PREEMPT_VOLUNTARY_BUILD=y
# CONFIG_PREEMPT_NONE is not set
-# CONFIG_PREEMPT_VOLUNTARY is not set
-CONFIG_PREEMPT=y
-CONFIG_PREEMPT_COUNT=y
-CONFIG_PREEMPTION=y
-CONFIG_PREEMPT_DYNAMIC=y
+CONFIG_PREEMPT_VOLUNTARY=y
+# CONFIG_PREEMPT is not set
+# CONFIG_PREEMPT_DYNAMIC is not set
CONFIG_SCHED_CORE=y
#
@@ -170,7 +170,8 @@ CONFIG_RCU_FANOUT=64
CONFIG_RCU_FANOUT_LEAF=16
CONFIG_RCU_BOOST=y
CONFIG_RCU_BOOST_DELAY=500
-# CONFIG_RCU_NOCB_CPU is not set
+CONFIG_RCU_NOCB_CPU=y
+CONFIG_RCU_NOCB_CPU_DEFAULT_ALL=y
# CONFIG_TASKS_TRACE_RCU_READ_MB is not set
# end of RCU Subsystem
@@ -192,7 +193,6 @@ CONFIG_UCLAMP_BUCKETS_COUNT=5
# CONFIG_SCHED_ALT is not set
# CONFIG_SCHED_BMQ is not set
# CONFIG_SCHED_PDS is not set
-# CONFIG_SCHED_BORE is not set
# end of Scheduler features
# CONFIG_CACULE_SCHED is not set
@@ -237,6 +237,7 @@ CONFIG_USER_NS_UNPRIVILEGED=y
CONFIG_PID_NS=y
CONFIG_NET_NS=y
CONFIG_CHECKPOINT_RESTORE=y
+# CONFIG_SCHED_BORE is not set
CONFIG_SCHED_AUTOGROUP=y
CONFIG_SCHED_AUTOGROUP_DEFAULT_ENABLED=y
# CONFIG_SYSFS_DEPRECATED is not set
diff --git a/linux-cacule-rdb/.SRCINFO b/linux-cacule-rdb/.SRCINFO
index 9fe04d2d..ee242790 100755
--- a/linux-cacule-rdb/.SRCINFO
+++ b/linux-cacule-rdb/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = linux-cacule-rdb
pkgdesc = Linux cacULE-RDB scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.17.3
- pkgrel = 4
+ pkgrel = 5
url = https://github.com/CachyOS/linux-cachyos
arch = x86_64
arch = x86_64_v3
@@ -30,41 +30,39 @@ pkgbase = linux-cacule-rdb
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0001-arch.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0002-anbox.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0003-bbr2.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0004-fs-patches.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0005-cachy.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0006-clearlinux.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0007-cpu-patches.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0008-fixes-miscellaneous.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0009-fixes.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0010-hwmon.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0011-MG-LRU.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0012-spf-lru.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0014-v4l2loopback.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0015-xanmod.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0016-lrng.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0017-le9.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0018-ck-hrtimer.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0004-cachy.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0005-clearlinux.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0006-cpu.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0007-fixes-miscellaneous.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0008-fs-patches.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0009-hwmon.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0010-MG-LRU.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0011-spf-lru.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0012-v4l2loopback.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0013-xanmod.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0014-lrng.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0015-le9.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0016-ck-hrtimer.patch
source = auto-cpu-optimization.sh
sha256sums = 32d0a8e366b87e1cbde951b9f7a01287546670ba60fac35cccfc8a7c005a162c
- sha256sums = db9bea739fad4ced06fad88b8f86824436899ac06e04d6a0cc4b037856e4aeba
- sha256sums = 33c0d70410ac7e0fccce5796aacea76838b048c79bbdc92eaf2fdbb5eabd4e0d
- sha256sums = 86881dd86c0982d86b66aca11f440ce3a0c88a28fb7120fdf8f7d6ad7d328e05
- sha256sums = 7616bde11139d419ef190f2870e3a848b7157b9a4dc769a6f1ff59cb99508126
- sha256sums = 576d14d12b54a8756117d4839fa63241fcde0ff7799ddfd07f0b25e7e852407c
- sha256sums = 3b9a5a31c77e1b708793fd735ad82bd5906f0d8c0b055eae03ea0242ef83509c
- sha256sums = a801630a75a59363c99144836a13aef4f36f93b3b5b64299faa11e21e329cfe4
- sha256sums = 440f463d88183ced1ca0e1e8dafa227e6c0212752de7a0d5203e293e8ccb2f88
- sha256sums = 7c76f76baccf3ca163f7889bb3d5b28a0551b94cd08312a63581b6df9f439693
- sha256sums = bda7360b44d033dc274649d4c99e252321145162cbe7463ac1f97d79eae7101e
- sha256sums = cf3554d737c52663dd3048906788c28ade3e53a660049ea0bdb792f096965c70
- sha256sums = 8de7224e9d84605b7498dd003018dc94cc421d9871500ae885176f051fe048f8
- sha256sums = f6e422d11a5389c5da330501a2a816f9fc088627124ab0910252dfa4d5eac367
- sha256sums = ea4174aa8fbeb309c17fb0aedb4eacbf269ba02123d28067ec46142823782ca7
- sha256sums = 1e486bf2a8d33762ed429569d4220a218e1d6db0e96d7cfb57e4ed8090a349bf
- sha256sums = 6d2c65532a81468d15f8fb326837eef12f07e10c24e7219fc49c941eb40450db
- sha256sums = c921936c051dd5efe66d7b53eb03a2f26b14b138047cd76702ba6cedf4474432
- sha256sums = 98d833fb1616e1ef7332e73f3d0ee8dcd58ceca5e5d30279944e9d4b9003d991
- sha256sums = 84249d7d74d8510c12a2a0511064eade53ee36f69180f9f0e738615611a0afb2
+ sha256sums = 341d996a829058d17393f4d0cbfdb23c7a7a68ee682fd70cb8e37d27af63efa5
+ sha256sums = 6ca8fa67a30513e47b2f4dc8566a7297741404195430b589624409d9608b3710
+ sha256sums = e7a81fb26bb61875c07ba83075522d3d1c1ed463581c7067404a91bc724340b8
+ sha256sums = dea401c0efff7f7979b91b1a32524646d0bab38191d70daf18924f944a4f1fd5
+ sha256sums = 9962cab7ce58729912c70f2dce345d088c0c61f640e0bd9ee2975d571b08a0d2
+ sha256sums = 9710c78919d651e2266391c129bf89557ee09aabeaa7935ae798c037d3c7c0cc
+ sha256sums = 6f291e71de3df52728933d2e04da6a59eb08c3bdb3012ebeae40f05183744b93
+ sha256sums = 18cfe65a2da89006f8aeb701a846a2e6ed2cac2e84b86cd7f6f9a25e988c4057
+ sha256sums = 832781712c6c6a9523e1a9436f2131cc9f0b9d7131d44477c7e81739fc28e529
+ sha256sums = 334263fecd6a1fe325c026928ac971fbb8168e23665085f62e3924f4c81029e4
+ sha256sums = be3e41373ab7a6f112b5ebd96f4c2b0550333192b54b587be43727bf82003a2a
+ sha256sums = 9c701eda6fda419ceab4b9e7b21b9d6e2a1eb0844b65404fc04bc609778b7419
+ sha256sums = b03d9ea1b2a7e5687e6e954dd3f039c341fa4d69fb047ca688ffe5b953e977be
+ sha256sums = 6cb2a9282ebb4fd53058d22f8159e10d1d8c321b7d17d0f2d761bdab7f88eaf8
+ sha256sums = b64ccbec1080320fec7bfc3b55a6a2ebc33159d216039170ba58008ba7ec37b7
+ sha256sums = 354616dccd88c5227c276ddbf184c083c77d9cea9ac143993101d9e67b7f0cfc
+ sha256sums = 93eca845542db214f113c72df69c456f53ea0e77e1db865124384939ecd76e2d
+ sha256sums = 3a2f95a37b4614f05ac5a7c5d81a99555ba01b0b192667896006db8490cb89fa
sha256sums = 65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b
pkgname = linux-cacule-rdb
diff --git a/linux-cacule-rdb/PKGBUILD b/linux-cacule-rdb/PKGBUILD
index 83c6e28c..aab7aad6 100644
--- a/linux-cacule-rdb/PKGBUILD
+++ b/linux-cacule-rdb/PKGBUILD
@@ -128,7 +128,7 @@ _srcname=linux-${_stable}
#_srcname=linux-${_major}
arch=(x86_64 x86_64_v3)
pkgdesc='Linux cacULE-RDB scheduler Kernel by CachyOS with other patches and improvements'
-pkgrel=4
+pkgrel=5
arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos"
license=('GPL2')
@@ -148,20 +148,20 @@ source=(
"${_patchsource}/0001-arch.patch"
"${_patchsource}/0002-anbox.patch"
"${_patchsource}/0003-bbr2.patch"
- "${_patchsource}/0004-fs-patches.patch"
- "${_patchsource}/0005-cachy.patch"
- "${_patchsource}/0006-clearlinux.patch"
- "${_patchsource}/0007-cpu-patches.patch"
- "${_patchsource}/0008-fixes-miscellaneous.patch"
- "${_patchsource}/0009-fixes.patch"
- "${_patchsource}/0010-hwmon.patch"
- "${_patchsource}/0011-MG-LRU.patch"
- "${_patchsource}/0012-spf-lru.patch"
- "${_patchsource}/0014-v4l2loopback.patch"
- "${_patchsource}/0015-xanmod.patch"
- "${_patchsource}/0016-lrng.patch"
- "${_patchsource}/0017-le9.patch"
- "${_patchsource}/0018-ck-hrtimer.patch"
+ "${_patchsource}/0004-cachy.patch"
+ "${_patchsource}/0005-clearlinux.patch"
+ "${_patchsource}/0006-cpu.patch"
+ "${_patchsource}/0007-fixes-miscellaneous.patch"
+ "${_patchsource}/0008-fs-patches.patch"
+ "${_patchsource}/0009-hwmon.patch"
+ "${_patchsource}/0010-MG-LRU.patch"
+ "${_patchsource}/0011-spf-lru.patch"
+ "${_patchsource}/0012-v4l2loopback.patch"
+ "${_patchsource}/0013-xanmod.patch"
+ "${_patchsource}/0014-lrng.patch"
+ "${_patchsource}/0015-le9.patch"
+ "${_patchsource}/0016-ck-hrtimer.patch"
+ # "${_patchsource}/0017-FG-KASLR.patch"
"auto-cpu-optimization.sh"
)
@@ -221,11 +221,10 @@ prepare() {
scripts/config --enable CONFIG_SCHED_PDS
elif [ "$_cpusched" = "cacule" ]; then
echo "Selecting CacULE scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
scripts/config --enable CONFIG_CACULE_SCHED
+ scripts/config --disable CONFIG_CACULE_RDB
elif [ "$_cpusched" = "cacule-rdb" ]; then
echo "Selecting CacULE-RDB scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
scripts/config --enable CONFIG_CACULE_SCHED
scripts/config --enable CONFIG_CACULE_RDB
scripts/config --set-val CONFIG_RDB_INTERVAL 19
@@ -235,10 +234,9 @@ prepare() {
scripts/config --enable CONFIG_TT_ACCOUNTING_STATS
elif [ "$_cpusched" = "bore" ]; then
echo "Selecting BORE Scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
+ scripts/config --enable CONFIG_SCHED_BORE
elif [ "$_cpusched" = "cfs" ]; then
echo "Selecting Completely Fair Scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
else
if [ -n "$_cpusched" ]; then
error "The value $_cpusched is invalid. Choose the correct one again."
@@ -303,11 +301,17 @@ prepare() {
if [ -n "$_NUMAdisable" ]; then
echo "Disabling NUMA from kernel config..."
scripts/config --disable CONFIG_NUMA
- fi
-
- if [ -n "$_winesync" ]; then
- echo "Enable winesync support"
- scripts/config --module CONFIG_WINESYNC
+ scripts/config --disable CONFIG_AMD_NUMA
+ scripts/config --disable CONFIG_X86_64_ACPI_NUMA
+ scripts/config --disable CONFIG_NODES_SPAN_OTHER_NODES
+ scripts/config --disable CONFIG_NUMA_EMU
+ scripts/config --disable CONFIG_NEED_MULTIPLE_NODES
+ scripts/config --disable CONFIG_USE_PERCPU_NUMA_NODE_ID
+ scripts/config --disable CONFIG_ACPI_NUMA
+ scripts/config --disable CONFIG_ARCH_SUPPORTS_NUMA_BALANCING
+ scripts/config --disable CONFIG_NODES_SHIFT
+ scripts/config --undefine CONFIG_NODES_SHIFT
+ scripts/config --disable CONFIG_NEED_MULTIPLE_NODES
fi
### Disable MQ-Deadline I/O scheduler
@@ -332,6 +336,11 @@ prepare() {
scripts/config --disable CONFIG_CPU_FREQ_GOV_CONSERVATIVE
scripts/config --disable CONFIG_CPU_FREQ_GOV_USERSPACE
scripts/config --disable CONFIG_CPU_FREQ_GOV_SCHEDUTIL
+ echo "Set PCIEASPM DRIVER to performance..."
+ scripts/config --enable CONFIG_PCIEASPM
+ scripts/config --enable CONFIG_PCIEASPM_PERFORMANCE
+ echo "Set CONFIG_PCIE_BUS for performance..."
+ scripts/config --enable CONFIG_PCIE_BUS_PERFORMANCE
fi
### Enable KBUILD_CFLAGS -O3
@@ -352,7 +361,6 @@ prepare() {
scripts/config --set-str CONFIG_DEFAULT_TCP_CONG bbr2
fi
-
### Enable FULLCONENAT
if [ -n "$_nf_cone" ]; then
echo "Enabling FULLCONENAT..."
@@ -433,7 +441,6 @@ prepare() {
scripts/config --disable CONFIG_LRNG_SELFTEST_PANIC
fi
-
### Selecting the ZSTD compression level
if [ "$_zstd_level" = "ultra" ]; then
echo "Enabling highest ZSTD compression ratio..."
@@ -489,13 +496,25 @@ prepare() {
scripts/config --set-str CONFIG_ZSWAP_COMPRESSOR_DEFAULT zstd
fi
- echo "Enable Anbox"
+ echo "Enable Anbox..."
scripts/config --enable CONFIG_ASHMEM
scripts/config --enable CONFIG_ANDROID
scripts/config --enable CONFIG_ANDROID_BINDER_IPC
scripts/config --enable CONFIG_ANDROID_BINDERFS
scripts/config --enable CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
+ echo "disable debugging features to reduce the size..."
+ scripts/config --disable CONFIG_DEBUG_INFO
+ scripts/config --disable CONFIG_CGROUP_BPF
+ scripts/config --disable CONFIG_BPF_LSM
+ scripts/config --disable CONFIG_BPF_PRELOAD
+ scripts/config --disable CONFIG_BPF_LIRC_MODE2
+ scripts/config --disable CONFIG_BPF_KPROBE_OVERRIDE
+ scripts/config --enable CONFIG_PSI_DEFAULT_DISABLED
+ scripts/config --disable CONFIG_LATENCYTOP
+ scripts/config --disable CONFIG_SCHED_DEBUG
+ scripts/config --disable CONFIG_KVM_WERROR
+
### Optionally use running kernel's config
# code originally by nous; http://aur.archlinux.org/packages.php?ID=40191
if [ -n "$_use_current" ]; then
@@ -560,14 +579,15 @@ _package() {
echo "Installing boot image..."
# systemd expects to find the kernel here to allow hibernation
# https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344
- install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"
+ install -Dm644 "$(make ${BUILD_FLAGS[*]} -s image_name)" "$modulesdir/vmlinuz"
# Used by mkinitcpio to name the kernel
echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"
echo "Installing modules..."
- make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
+ make ${BUILD_FLAGS[*]} INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
DEPMOD=/doesnt/exist modules_install # Suppress depmod
+
# remove build and source links
rm "$modulesdir"/{source,build}
}
@@ -590,7 +610,7 @@ _package-headers() {
install -Dt "$builddir/tools/objtool" tools/objtool/objtool
# required when DEBUG_INFO_BTF_MODULES is enabled
- install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
+ # install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
echo "Installing headers..."
cp -t "$builddir" -a include
@@ -646,8 +666,9 @@ _package-headers() {
esac
done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)
- echo "Stripping vmlinux..."
- strip -v $STRIP_STATIC "$builddir/vmlinux"
+ # echo "Stripping vmlinux..."
+ # strip -v $STRIP_STATIC "$builddir/vmlinux"
+ # not needed since not building with CONFIG_DEBUG_INFO=y
echo "Adding symlink..."
mkdir -p "$pkgdir/usr/src"
@@ -664,23 +685,22 @@ for _p in "${pkgname[@]}"; do
done
sha256sums=('32d0a8e366b87e1cbde951b9f7a01287546670ba60fac35cccfc8a7c005a162c'
- 'db9bea739fad4ced06fad88b8f86824436899ac06e04d6a0cc4b037856e4aeba'
- '33c0d70410ac7e0fccce5796aacea76838b048c79bbdc92eaf2fdbb5eabd4e0d'
- '86881dd86c0982d86b66aca11f440ce3a0c88a28fb7120fdf8f7d6ad7d328e05'
- '7616bde11139d419ef190f2870e3a848b7157b9a4dc769a6f1ff59cb99508126'
- '576d14d12b54a8756117d4839fa63241fcde0ff7799ddfd07f0b25e7e852407c'
- '3b9a5a31c77e1b708793fd735ad82bd5906f0d8c0b055eae03ea0242ef83509c'
- 'a801630a75a59363c99144836a13aef4f36f93b3b5b64299faa11e21e329cfe4'
- '440f463d88183ced1ca0e1e8dafa227e6c0212752de7a0d5203e293e8ccb2f88'
- '7c76f76baccf3ca163f7889bb3d5b28a0551b94cd08312a63581b6df9f439693'
- 'bda7360b44d033dc274649d4c99e252321145162cbe7463ac1f97d79eae7101e'
- 'cf3554d737c52663dd3048906788c28ade3e53a660049ea0bdb792f096965c70'
- '8de7224e9d84605b7498dd003018dc94cc421d9871500ae885176f051fe048f8'
- 'f6e422d11a5389c5da330501a2a816f9fc088627124ab0910252dfa4d5eac367'
- 'ea4174aa8fbeb309c17fb0aedb4eacbf269ba02123d28067ec46142823782ca7'
- '1e486bf2a8d33762ed429569d4220a218e1d6db0e96d7cfb57e4ed8090a349bf'
- '6d2c65532a81468d15f8fb326837eef12f07e10c24e7219fc49c941eb40450db'
- 'c921936c051dd5efe66d7b53eb03a2f26b14b138047cd76702ba6cedf4474432'
- '98d833fb1616e1ef7332e73f3d0ee8dcd58ceca5e5d30279944e9d4b9003d991'
- '84249d7d74d8510c12a2a0511064eade53ee36f69180f9f0e738615611a0afb2'
+ '341d996a829058d17393f4d0cbfdb23c7a7a68ee682fd70cb8e37d27af63efa5'
+ '6ca8fa67a30513e47b2f4dc8566a7297741404195430b589624409d9608b3710'
+ 'e7a81fb26bb61875c07ba83075522d3d1c1ed463581c7067404a91bc724340b8'
+ 'dea401c0efff7f7979b91b1a32524646d0bab38191d70daf18924f944a4f1fd5'
+ '9962cab7ce58729912c70f2dce345d088c0c61f640e0bd9ee2975d571b08a0d2'
+ '9710c78919d651e2266391c129bf89557ee09aabeaa7935ae798c037d3c7c0cc'
+ '6f291e71de3df52728933d2e04da6a59eb08c3bdb3012ebeae40f05183744b93'
+ '18cfe65a2da89006f8aeb701a846a2e6ed2cac2e84b86cd7f6f9a25e988c4057'
+ '832781712c6c6a9523e1a9436f2131cc9f0b9d7131d44477c7e81739fc28e529'
+ '334263fecd6a1fe325c026928ac971fbb8168e23665085f62e3924f4c81029e4'
+ 'be3e41373ab7a6f112b5ebd96f4c2b0550333192b54b587be43727bf82003a2a'
+ '9c701eda6fda419ceab4b9e7b21b9d6e2a1eb0844b65404fc04bc609778b7419'
+ 'b03d9ea1b2a7e5687e6e954dd3f039c341fa4d69fb047ca688ffe5b953e977be'
+ '6cb2a9282ebb4fd53058d22f8159e10d1d8c321b7d17d0f2d761bdab7f88eaf8'
+ 'b64ccbec1080320fec7bfc3b55a6a2ebc33159d216039170ba58008ba7ec37b7'
+ '354616dccd88c5227c276ddbf184c083c77d9cea9ac143993101d9e67b7f0cfc'
+ '93eca845542db214f113c72df69c456f53ea0e77e1db865124384939ecd76e2d'
+ '3a2f95a37b4614f05ac5a7c5d81a99555ba01b0b192667896006db8490cb89fa'
'65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b')
diff --git a/linux-cacule-rdb/config b/linux-cacule-rdb/config
index 765d0856..e0ac63a9 100644
--- a/linux-cacule-rdb/config
+++ b/linux-cacule-rdb/config
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Linux/x86 5.17.3 Kernel Configuration
+# Linux/x86 5.17.4 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.2.0"
CONFIG_CC_IS_GCC=y
@@ -100,8 +100,10 @@ CONFIG_POSIX_CPU_TIMERS_TASK_WORK=y
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
-CONFIG_NO_HZ_IDLE=y
-# CONFIG_NO_HZ_FULL is not set
+# CONFIG_NO_HZ_IDLE is not set
+CONFIG_NO_HZ_FULL=y
+CONFIG_CONTEXT_TRACKING=y
+# CONFIG_CONTEXT_TRACKING_FORCE is not set
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
# end of Timers subsystem
@@ -124,13 +126,11 @@ CONFIG_BPF_PRELOAD_UMD=m
CONFIG_BPF_LSM=y
# end of BPF subsystem
-CONFIG_PREEMPT_BUILD=y
+CONFIG_PREEMPT_VOLUNTARY_BUILD=y
# CONFIG_PREEMPT_NONE is not set
-# CONFIG_PREEMPT_VOLUNTARY is not set
-CONFIG_PREEMPT=y
-CONFIG_PREEMPT_COUNT=y
-CONFIG_PREEMPTION=y
-CONFIG_PREEMPT_DYNAMIC=y
+CONFIG_PREEMPT_VOLUNTARY=y
+# CONFIG_PREEMPT is not set
+# CONFIG_PREEMPT_DYNAMIC is not set
CONFIG_SCHED_CORE=y
#
@@ -170,7 +170,8 @@ CONFIG_RCU_FANOUT=64
CONFIG_RCU_FANOUT_LEAF=16
CONFIG_RCU_BOOST=y
CONFIG_RCU_BOOST_DELAY=500
-# CONFIG_RCU_NOCB_CPU is not set
+CONFIG_RCU_NOCB_CPU=y
+CONFIG_RCU_NOCB_CPU_DEFAULT_ALL=y
# CONFIG_TASKS_TRACE_RCU_READ_MB is not set
# end of RCU Subsystem
@@ -192,7 +193,6 @@ CONFIG_UCLAMP_BUCKETS_COUNT=5
# CONFIG_SCHED_ALT is not set
# CONFIG_SCHED_BMQ is not set
# CONFIG_SCHED_PDS is not set
-# CONFIG_SCHED_BORE is not set
# end of Scheduler features
# CONFIG_CACULE_SCHED is not set
@@ -237,6 +237,7 @@ CONFIG_USER_NS_UNPRIVILEGED=y
CONFIG_PID_NS=y
CONFIG_NET_NS=y
CONFIG_CHECKPOINT_RESTORE=y
+# CONFIG_SCHED_BORE is not set
CONFIG_SCHED_AUTOGROUP=y
CONFIG_SCHED_AUTOGROUP_DEFAULT_ENABLED=y
# CONFIG_SYSFS_DEPRECATED is not set
diff --git a/linux-cacule/.SRCINFO b/linux-cacule/.SRCINFO
index 48920143..ee5c7e7a 100755
--- a/linux-cacule/.SRCINFO
+++ b/linux-cacule/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = linux-cacule
pkgdesc = Linux cacULE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.17.3
- pkgrel = 4
+ pkgrel = 5
url = https://github.com/CachyOS/linux-cachyos
arch = x86_64
arch = x86_64_v3
@@ -30,41 +30,39 @@ pkgbase = linux-cacule
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0001-arch.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0002-anbox.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0003-bbr2.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0004-fs-patches.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0005-cachy.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0006-clearlinux.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0007-cpu-patches.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0008-fixes-miscellaneous.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0009-fixes.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0010-hwmon.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0011-MG-LRU.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0012-spf-lru.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0014-v4l2loopback.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0015-xanmod.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0016-lrng.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0017-le9.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0018-ck-hrtimer.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0004-cachy.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0005-clearlinux.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0006-cpu.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0007-fixes-miscellaneous.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0008-fs-patches.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0009-hwmon.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0010-MG-LRU.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0011-spf-lru.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0012-v4l2loopback.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0013-xanmod.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0014-lrng.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0015-le9.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0016-ck-hrtimer.patch
source = auto-cpu-optimization.sh
sha256sums = 32d0a8e366b87e1cbde951b9f7a01287546670ba60fac35cccfc8a7c005a162c
- sha256sums = db9bea739fad4ced06fad88b8f86824436899ac06e04d6a0cc4b037856e4aeba
- sha256sums = 33c0d70410ac7e0fccce5796aacea76838b048c79bbdc92eaf2fdbb5eabd4e0d
- sha256sums = 86881dd86c0982d86b66aca11f440ce3a0c88a28fb7120fdf8f7d6ad7d328e05
- sha256sums = 7616bde11139d419ef190f2870e3a848b7157b9a4dc769a6f1ff59cb99508126
- sha256sums = 576d14d12b54a8756117d4839fa63241fcde0ff7799ddfd07f0b25e7e852407c
- sha256sums = 3b9a5a31c77e1b708793fd735ad82bd5906f0d8c0b055eae03ea0242ef83509c
- sha256sums = a801630a75a59363c99144836a13aef4f36f93b3b5b64299faa11e21e329cfe4
- sha256sums = 440f463d88183ced1ca0e1e8dafa227e6c0212752de7a0d5203e293e8ccb2f88
- sha256sums = 7c76f76baccf3ca163f7889bb3d5b28a0551b94cd08312a63581b6df9f439693
- sha256sums = bda7360b44d033dc274649d4c99e252321145162cbe7463ac1f97d79eae7101e
- sha256sums = cf3554d737c52663dd3048906788c28ade3e53a660049ea0bdb792f096965c70
- sha256sums = 8de7224e9d84605b7498dd003018dc94cc421d9871500ae885176f051fe048f8
- sha256sums = f6e422d11a5389c5da330501a2a816f9fc088627124ab0910252dfa4d5eac367
- sha256sums = ea4174aa8fbeb309c17fb0aedb4eacbf269ba02123d28067ec46142823782ca7
- sha256sums = 1e486bf2a8d33762ed429569d4220a218e1d6db0e96d7cfb57e4ed8090a349bf
- sha256sums = 6d2c65532a81468d15f8fb326837eef12f07e10c24e7219fc49c941eb40450db
- sha256sums = c921936c051dd5efe66d7b53eb03a2f26b14b138047cd76702ba6cedf4474432
- sha256sums = 98d833fb1616e1ef7332e73f3d0ee8dcd58ceca5e5d30279944e9d4b9003d991
- sha256sums = 84249d7d74d8510c12a2a0511064eade53ee36f69180f9f0e738615611a0afb2
+ sha256sums = 341d996a829058d17393f4d0cbfdb23c7a7a68ee682fd70cb8e37d27af63efa5
+ sha256sums = 6ca8fa67a30513e47b2f4dc8566a7297741404195430b589624409d9608b3710
+ sha256sums = e7a81fb26bb61875c07ba83075522d3d1c1ed463581c7067404a91bc724340b8
+ sha256sums = dea401c0efff7f7979b91b1a32524646d0bab38191d70daf18924f944a4f1fd5
+ sha256sums = 9962cab7ce58729912c70f2dce345d088c0c61f640e0bd9ee2975d571b08a0d2
+ sha256sums = 9710c78919d651e2266391c129bf89557ee09aabeaa7935ae798c037d3c7c0cc
+ sha256sums = 6f291e71de3df52728933d2e04da6a59eb08c3bdb3012ebeae40f05183744b93
+ sha256sums = 18cfe65a2da89006f8aeb701a846a2e6ed2cac2e84b86cd7f6f9a25e988c4057
+ sha256sums = 832781712c6c6a9523e1a9436f2131cc9f0b9d7131d44477c7e81739fc28e529
+ sha256sums = 334263fecd6a1fe325c026928ac971fbb8168e23665085f62e3924f4c81029e4
+ sha256sums = be3e41373ab7a6f112b5ebd96f4c2b0550333192b54b587be43727bf82003a2a
+ sha256sums = 9c701eda6fda419ceab4b9e7b21b9d6e2a1eb0844b65404fc04bc609778b7419
+ sha256sums = b03d9ea1b2a7e5687e6e954dd3f039c341fa4d69fb047ca688ffe5b953e977be
+ sha256sums = 6cb2a9282ebb4fd53058d22f8159e10d1d8c321b7d17d0f2d761bdab7f88eaf8
+ sha256sums = b64ccbec1080320fec7bfc3b55a6a2ebc33159d216039170ba58008ba7ec37b7
+ sha256sums = 354616dccd88c5227c276ddbf184c083c77d9cea9ac143993101d9e67b7f0cfc
+ sha256sums = 93eca845542db214f113c72df69c456f53ea0e77e1db865124384939ecd76e2d
+ sha256sums = 3a2f95a37b4614f05ac5a7c5d81a99555ba01b0b192667896006db8490cb89fa
sha256sums = 65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b
pkgname = linux-cacule
diff --git a/linux-cacule/PKGBUILD b/linux-cacule/PKGBUILD
index 88b48a71..d7a7e6f1 100644
--- a/linux-cacule/PKGBUILD
+++ b/linux-cacule/PKGBUILD
@@ -129,7 +129,7 @@ _srcname=linux-${_stable}
#_srcname=linux-${_major}
arch=(x86_64 x86_64_v3)
pkgdesc='Linux cacULE scheduler Kernel by CachyOS with other patches and improvements'
-pkgrel=4
+pkgrel=5
arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos"
license=('GPL2')
@@ -149,20 +149,20 @@ source=(
"${_patchsource}/0001-arch.patch"
"${_patchsource}/0002-anbox.patch"
"${_patchsource}/0003-bbr2.patch"
- "${_patchsource}/0004-fs-patches.patch"
- "${_patchsource}/0005-cachy.patch"
- "${_patchsource}/0006-clearlinux.patch"
- "${_patchsource}/0007-cpu-patches.patch"
- "${_patchsource}/0008-fixes-miscellaneous.patch"
- "${_patchsource}/0009-fixes.patch"
- "${_patchsource}/0010-hwmon.patch"
- "${_patchsource}/0011-MG-LRU.patch"
- "${_patchsource}/0012-spf-lru.patch"
- "${_patchsource}/0014-v4l2loopback.patch"
- "${_patchsource}/0015-xanmod.patch"
- "${_patchsource}/0016-lrng.patch"
- "${_patchsource}/0017-le9.patch"
- "${_patchsource}/0018-ck-hrtimer.patch"
+ "${_patchsource}/0004-cachy.patch"
+ "${_patchsource}/0005-clearlinux.patch"
+ "${_patchsource}/0006-cpu.patch"
+ "${_patchsource}/0007-fixes-miscellaneous.patch"
+ "${_patchsource}/0008-fs-patches.patch"
+ "${_patchsource}/0009-hwmon.patch"
+ "${_patchsource}/0010-MG-LRU.patch"
+ "${_patchsource}/0011-spf-lru.patch"
+ "${_patchsource}/0012-v4l2loopback.patch"
+ "${_patchsource}/0013-xanmod.patch"
+ "${_patchsource}/0014-lrng.patch"
+ "${_patchsource}/0015-le9.patch"
+ "${_patchsource}/0016-ck-hrtimer.patch"
+ # "${_patchsource}/0017-FG-KASLR.patch"
"auto-cpu-optimization.sh"
)
@@ -222,12 +222,10 @@ prepare() {
scripts/config --enable CONFIG_SCHED_PDS
elif [ "$_cpusched" = "cacule" ]; then
echo "Selecting CacULE scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
scripts/config --enable CONFIG_CACULE_SCHED
scripts/config --disable CONFIG_CACULE_RDB
elif [ "$_cpusched" = "cacule-rdb" ]; then
echo "Selecting CacULE-RDB scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
scripts/config --enable CONFIG_CACULE_SCHED
scripts/config --enable CONFIG_CACULE_RDB
scripts/config --set-val CONFIG_RDB_INTERVAL 19
@@ -237,10 +235,9 @@ prepare() {
scripts/config --enable CONFIG_TT_ACCOUNTING_STATS
elif [ "$_cpusched" = "bore" ]; then
echo "Selecting BORE Scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
+ scripts/config --enable CONFIG_SCHED_BORE
elif [ "$_cpusched" = "cfs" ]; then
echo "Selecting Completely Fair Scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
else
if [ -n "$_cpusched" ]; then
error "The value $_cpusched is invalid. Choose the correct one again."
@@ -305,11 +302,17 @@ prepare() {
if [ -n "$_NUMAdisable" ]; then
echo "Disabling NUMA from kernel config..."
scripts/config --disable CONFIG_NUMA
- fi
-
- if [ -n "$_winesync" ]; then
- echo "Enable winesync support"
- scripts/config --module CONFIG_WINESYNC
+ scripts/config --disable CONFIG_AMD_NUMA
+ scripts/config --disable CONFIG_X86_64_ACPI_NUMA
+ scripts/config --disable CONFIG_NODES_SPAN_OTHER_NODES
+ scripts/config --disable CONFIG_NUMA_EMU
+ scripts/config --disable CONFIG_NEED_MULTIPLE_NODES
+ scripts/config --disable CONFIG_USE_PERCPU_NUMA_NODE_ID
+ scripts/config --disable CONFIG_ACPI_NUMA
+ scripts/config --disable CONFIG_ARCH_SUPPORTS_NUMA_BALANCING
+ scripts/config --disable CONFIG_NODES_SHIFT
+ scripts/config --undefine CONFIG_NODES_SHIFT
+ scripts/config --disable CONFIG_NEED_MULTIPLE_NODES
fi
### Disable MQ-Deadline I/O scheduler
@@ -334,6 +337,11 @@ prepare() {
scripts/config --disable CONFIG_CPU_FREQ_GOV_CONSERVATIVE
scripts/config --disable CONFIG_CPU_FREQ_GOV_USERSPACE
scripts/config --disable CONFIG_CPU_FREQ_GOV_SCHEDUTIL
+ echo "Set PCIEASPM DRIVER to performance..."
+ scripts/config --enable CONFIG_PCIEASPM
+ scripts/config --enable CONFIG_PCIEASPM_PERFORMANCE
+ echo "Set CONFIG_PCIE_BUS for performance..."
+ scripts/config --enable CONFIG_PCIE_BUS_PERFORMANCE
fi
### Enable KBUILD_CFLAGS -O3
@@ -354,7 +362,6 @@ prepare() {
scripts/config --set-str CONFIG_DEFAULT_TCP_CONG bbr2
fi
-
### Enable FULLCONENAT
if [ -n "$_nf_cone" ]; then
echo "Enabling FULLCONENAT..."
@@ -490,14 +497,25 @@ prepare() {
scripts/config --set-str CONFIG_ZSWAP_COMPRESSOR_DEFAULT zstd
fi
-
- echo "Enable Anbox"
+ echo "Enable Anbox..."
scripts/config --enable CONFIG_ASHMEM
scripts/config --enable CONFIG_ANDROID
scripts/config --enable CONFIG_ANDROID_BINDER_IPC
scripts/config --enable CONFIG_ANDROID_BINDERFS
scripts/config --enable CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
+ echo "disable debugging features to reduce the size..."
+ scripts/config --disable CONFIG_DEBUG_INFO
+ scripts/config --disable CONFIG_CGROUP_BPF
+ scripts/config --disable CONFIG_BPF_LSM
+ scripts/config --disable CONFIG_BPF_PRELOAD
+ scripts/config --disable CONFIG_BPF_LIRC_MODE2
+ scripts/config --disable CONFIG_BPF_KPROBE_OVERRIDE
+ scripts/config --enable CONFIG_PSI_DEFAULT_DISABLED
+ scripts/config --disable CONFIG_LATENCYTOP
+ scripts/config --disable CONFIG_SCHED_DEBUG
+ scripts/config --disable CONFIG_KVM_WERROR
+
### Optionally use running kernel's config
# code originally by nous; http://aur.archlinux.org/packages.php?ID=40191
if [ -n "$_use_current" ]; then
@@ -562,14 +580,15 @@ _package() {
echo "Installing boot image..."
# systemd expects to find the kernel here to allow hibernation
# https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344
- install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"
+ install -Dm644 "$(make ${BUILD_FLAGS[*]} -s image_name)" "$modulesdir/vmlinuz"
# Used by mkinitcpio to name the kernel
echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"
echo "Installing modules..."
- make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
+ make ${BUILD_FLAGS[*]} INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
DEPMOD=/doesnt/exist modules_install # Suppress depmod
+
# remove build and source links
rm "$modulesdir"/{source,build}
}
@@ -592,7 +611,7 @@ _package-headers() {
install -Dt "$builddir/tools/objtool" tools/objtool/objtool
# required when DEBUG_INFO_BTF_MODULES is enabled
- install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
+ # install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
echo "Installing headers..."
cp -t "$builddir" -a include
@@ -648,8 +667,9 @@ _package-headers() {
esac
done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)
- echo "Stripping vmlinux..."
- strip -v $STRIP_STATIC "$builddir/vmlinux"
+ # echo "Stripping vmlinux..."
+ # strip -v $STRIP_STATIC "$builddir/vmlinux"
+ # not needed since not building with CONFIG_DEBUG_INFO=y
echo "Adding symlink..."
mkdir -p "$pkgdir/usr/src"
@@ -666,23 +686,22 @@ for _p in "${pkgname[@]}"; do
done
sha256sums=('32d0a8e366b87e1cbde951b9f7a01287546670ba60fac35cccfc8a7c005a162c'
- 'db9bea739fad4ced06fad88b8f86824436899ac06e04d6a0cc4b037856e4aeba'
- '33c0d70410ac7e0fccce5796aacea76838b048c79bbdc92eaf2fdbb5eabd4e0d'
- '86881dd86c0982d86b66aca11f440ce3a0c88a28fb7120fdf8f7d6ad7d328e05'
- '7616bde11139d419ef190f2870e3a848b7157b9a4dc769a6f1ff59cb99508126'
- '576d14d12b54a8756117d4839fa63241fcde0ff7799ddfd07f0b25e7e852407c'
- '3b9a5a31c77e1b708793fd735ad82bd5906f0d8c0b055eae03ea0242ef83509c'
- 'a801630a75a59363c99144836a13aef4f36f93b3b5b64299faa11e21e329cfe4'
- '440f463d88183ced1ca0e1e8dafa227e6c0212752de7a0d5203e293e8ccb2f88'
- '7c76f76baccf3ca163f7889bb3d5b28a0551b94cd08312a63581b6df9f439693'
- 'bda7360b44d033dc274649d4c99e252321145162cbe7463ac1f97d79eae7101e'
- 'cf3554d737c52663dd3048906788c28ade3e53a660049ea0bdb792f096965c70'
- '8de7224e9d84605b7498dd003018dc94cc421d9871500ae885176f051fe048f8'
- 'f6e422d11a5389c5da330501a2a816f9fc088627124ab0910252dfa4d5eac367'
- 'ea4174aa8fbeb309c17fb0aedb4eacbf269ba02123d28067ec46142823782ca7'
- '1e486bf2a8d33762ed429569d4220a218e1d6db0e96d7cfb57e4ed8090a349bf'
- '6d2c65532a81468d15f8fb326837eef12f07e10c24e7219fc49c941eb40450db'
- 'c921936c051dd5efe66d7b53eb03a2f26b14b138047cd76702ba6cedf4474432'
- '98d833fb1616e1ef7332e73f3d0ee8dcd58ceca5e5d30279944e9d4b9003d991'
- '84249d7d74d8510c12a2a0511064eade53ee36f69180f9f0e738615611a0afb2'
+ '341d996a829058d17393f4d0cbfdb23c7a7a68ee682fd70cb8e37d27af63efa5'
+ '6ca8fa67a30513e47b2f4dc8566a7297741404195430b589624409d9608b3710'
+ 'e7a81fb26bb61875c07ba83075522d3d1c1ed463581c7067404a91bc724340b8'
+ 'dea401c0efff7f7979b91b1a32524646d0bab38191d70daf18924f944a4f1fd5'
+ '9962cab7ce58729912c70f2dce345d088c0c61f640e0bd9ee2975d571b08a0d2'
+ '9710c78919d651e2266391c129bf89557ee09aabeaa7935ae798c037d3c7c0cc'
+ '6f291e71de3df52728933d2e04da6a59eb08c3bdb3012ebeae40f05183744b93'
+ '18cfe65a2da89006f8aeb701a846a2e6ed2cac2e84b86cd7f6f9a25e988c4057'
+ '832781712c6c6a9523e1a9436f2131cc9f0b9d7131d44477c7e81739fc28e529'
+ '334263fecd6a1fe325c026928ac971fbb8168e23665085f62e3924f4c81029e4'
+ 'be3e41373ab7a6f112b5ebd96f4c2b0550333192b54b587be43727bf82003a2a'
+ '9c701eda6fda419ceab4b9e7b21b9d6e2a1eb0844b65404fc04bc609778b7419'
+ 'b03d9ea1b2a7e5687e6e954dd3f039c341fa4d69fb047ca688ffe5b953e977be'
+ '6cb2a9282ebb4fd53058d22f8159e10d1d8c321b7d17d0f2d761bdab7f88eaf8'
+ 'b64ccbec1080320fec7bfc3b55a6a2ebc33159d216039170ba58008ba7ec37b7'
+ '354616dccd88c5227c276ddbf184c083c77d9cea9ac143993101d9e67b7f0cfc'
+ '93eca845542db214f113c72df69c456f53ea0e77e1db865124384939ecd76e2d'
+ '3a2f95a37b4614f05ac5a7c5d81a99555ba01b0b192667896006db8490cb89fa'
'65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b')
diff --git a/linux-cacule/config b/linux-cacule/config
index 765d0856..e0ac63a9 100644
--- a/linux-cacule/config
+++ b/linux-cacule/config
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Linux/x86 5.17.3 Kernel Configuration
+# Linux/x86 5.17.4 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.2.0"
CONFIG_CC_IS_GCC=y
@@ -100,8 +100,10 @@ CONFIG_POSIX_CPU_TIMERS_TASK_WORK=y
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
-CONFIG_NO_HZ_IDLE=y
-# CONFIG_NO_HZ_FULL is not set
+# CONFIG_NO_HZ_IDLE is not set
+CONFIG_NO_HZ_FULL=y
+CONFIG_CONTEXT_TRACKING=y
+# CONFIG_CONTEXT_TRACKING_FORCE is not set
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
# end of Timers subsystem
@@ -124,13 +126,11 @@ CONFIG_BPF_PRELOAD_UMD=m
CONFIG_BPF_LSM=y
# end of BPF subsystem
-CONFIG_PREEMPT_BUILD=y
+CONFIG_PREEMPT_VOLUNTARY_BUILD=y
# CONFIG_PREEMPT_NONE is not set
-# CONFIG_PREEMPT_VOLUNTARY is not set
-CONFIG_PREEMPT=y
-CONFIG_PREEMPT_COUNT=y
-CONFIG_PREEMPTION=y
-CONFIG_PREEMPT_DYNAMIC=y
+CONFIG_PREEMPT_VOLUNTARY=y
+# CONFIG_PREEMPT is not set
+# CONFIG_PREEMPT_DYNAMIC is not set
CONFIG_SCHED_CORE=y
#
@@ -170,7 +170,8 @@ CONFIG_RCU_FANOUT=64
CONFIG_RCU_FANOUT_LEAF=16
CONFIG_RCU_BOOST=y
CONFIG_RCU_BOOST_DELAY=500
-# CONFIG_RCU_NOCB_CPU is not set
+CONFIG_RCU_NOCB_CPU=y
+CONFIG_RCU_NOCB_CPU_DEFAULT_ALL=y
# CONFIG_TASKS_TRACE_RCU_READ_MB is not set
# end of RCU Subsystem
@@ -192,7 +193,6 @@ CONFIG_UCLAMP_BUCKETS_COUNT=5
# CONFIG_SCHED_ALT is not set
# CONFIG_SCHED_BMQ is not set
# CONFIG_SCHED_PDS is not set
-# CONFIG_SCHED_BORE is not set
# end of Scheduler features
# CONFIG_CACULE_SCHED is not set
@@ -237,6 +237,7 @@ CONFIG_USER_NS_UNPRIVILEGED=y
CONFIG_PID_NS=y
CONFIG_NET_NS=y
CONFIG_CHECKPOINT_RESTORE=y
+# CONFIG_SCHED_BORE is not set
CONFIG_SCHED_AUTOGROUP=y
CONFIG_SCHED_AUTOGROUP_DEFAULT_ENABLED=y
# CONFIG_SYSFS_DEPRECATED is not set
diff --git a/linux-tt/.SRCINFO b/linux-tt/.SRCINFO
index beeac0c3..7e21a570 100755
--- a/linux-tt/.SRCINFO
+++ b/linux-tt/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = linux-tt
pkgdesc = Linux TT scheduler Kernel by CachyOS and other patches and improvements
pkgver = 5.17.3
- pkgrel = 4
+ pkgrel = 5
url = https://github.com/CachyOS/linux-cachyos
arch = x86_64
arch = x86_64_v3
@@ -30,43 +30,39 @@ pkgbase = linux-tt
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0001-arch.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0002-anbox.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0003-bbr2.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0004-fs-patches.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0005-cachy.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0006-clearlinux.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0007-cpu-patches.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0008-fixes-miscellaneous.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0009-fixes.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0010-hwmon.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0011-MG-LRU.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0012-spf-lru.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0013-uksm.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0014-v4l2loopback.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0015-xanmod.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0016-lrng.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0017-le9.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0018-ck-hrtimer.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0004-cachy.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0005-clearlinux.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0006-cpu.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0007-fixes-miscellaneous.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0008-fs-patches.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0009-hwmon.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0010-MG-LRU.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0011-spf-lru.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0012-v4l2loopback.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0013-xanmod.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0014-lrng.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0015-le9.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0016-ck-hrtimer.patch
source = auto-cpu-optimization.sh
sha256sums = 32d0a8e366b87e1cbde951b9f7a01287546670ba60fac35cccfc8a7c005a162c
- sha256sums = db9bea739fad4ced06fad88b8f86824436899ac06e04d6a0cc4b037856e4aeba
- sha256sums = e493c542c964726c58aeee9949e84ad96b72f74bde629717dc274f03b3493789
- sha256sums = 86881dd86c0982d86b66aca11f440ce3a0c88a28fb7120fdf8f7d6ad7d328e05
- sha256sums = 7616bde11139d419ef190f2870e3a848b7157b9a4dc769a6f1ff59cb99508126
- sha256sums = 576d14d12b54a8756117d4839fa63241fcde0ff7799ddfd07f0b25e7e852407c
- sha256sums = 3b9a5a31c77e1b708793fd735ad82bd5906f0d8c0b055eae03ea0242ef83509c
- sha256sums = a801630a75a59363c99144836a13aef4f36f93b3b5b64299faa11e21e329cfe4
- sha256sums = 440f463d88183ced1ca0e1e8dafa227e6c0212752de7a0d5203e293e8ccb2f88
- sha256sums = 7c76f76baccf3ca163f7889bb3d5b28a0551b94cd08312a63581b6df9f439693
- sha256sums = bda7360b44d033dc274649d4c99e252321145162cbe7463ac1f97d79eae7101e
- sha256sums = cf3554d737c52663dd3048906788c28ade3e53a660049ea0bdb792f096965c70
- sha256sums = 8de7224e9d84605b7498dd003018dc94cc421d9871500ae885176f051fe048f8
- sha256sums = f6e422d11a5389c5da330501a2a816f9fc088627124ab0910252dfa4d5eac367
- sha256sums = ea4174aa8fbeb309c17fb0aedb4eacbf269ba02123d28067ec46142823782ca7
- sha256sums = 69d4eb1a09e0c3d942c54b13e5576c372c81deadadaf06f94076c157f8599045
- sha256sums = 1e486bf2a8d33762ed429569d4220a218e1d6db0e96d7cfb57e4ed8090a349bf
- sha256sums = 6d2c65532a81468d15f8fb326837eef12f07e10c24e7219fc49c941eb40450db
- sha256sums = c921936c051dd5efe66d7b53eb03a2f26b14b138047cd76702ba6cedf4474432
- sha256sums = 98d833fb1616e1ef7332e73f3d0ee8dcd58ceca5e5d30279944e9d4b9003d991
- sha256sums = 84249d7d74d8510c12a2a0511064eade53ee36f69180f9f0e738615611a0afb2
+ sha256sums = 341d996a829058d17393f4d0cbfdb23c7a7a68ee682fd70cb8e37d27af63efa5
+ sha256sums = c048c4d43196d5d003897012b40da442d932f322b85e9805824450faa5df00ef
+ sha256sums = e7a81fb26bb61875c07ba83075522d3d1c1ed463581c7067404a91bc724340b8
+ sha256sums = dea401c0efff7f7979b91b1a32524646d0bab38191d70daf18924f944a4f1fd5
+ sha256sums = 9962cab7ce58729912c70f2dce345d088c0c61f640e0bd9ee2975d571b08a0d2
+ sha256sums = 9710c78919d651e2266391c129bf89557ee09aabeaa7935ae798c037d3c7c0cc
+ sha256sums = 6f291e71de3df52728933d2e04da6a59eb08c3bdb3012ebeae40f05183744b93
+ sha256sums = 18cfe65a2da89006f8aeb701a846a2e6ed2cac2e84b86cd7f6f9a25e988c4057
+ sha256sums = 832781712c6c6a9523e1a9436f2131cc9f0b9d7131d44477c7e81739fc28e529
+ sha256sums = 334263fecd6a1fe325c026928ac971fbb8168e23665085f62e3924f4c81029e4
+ sha256sums = be3e41373ab7a6f112b5ebd96f4c2b0550333192b54b587be43727bf82003a2a
+ sha256sums = 9c701eda6fda419ceab4b9e7b21b9d6e2a1eb0844b65404fc04bc609778b7419
+ sha256sums = b03d9ea1b2a7e5687e6e954dd3f039c341fa4d69fb047ca688ffe5b953e977be
+ sha256sums = 6cb2a9282ebb4fd53058d22f8159e10d1d8c321b7d17d0f2d761bdab7f88eaf8
+ sha256sums = b64ccbec1080320fec7bfc3b55a6a2ebc33159d216039170ba58008ba7ec37b7
+ sha256sums = 354616dccd88c5227c276ddbf184c083c77d9cea9ac143993101d9e67b7f0cfc
+ sha256sums = 93eca845542db214f113c72df69c456f53ea0e77e1db865124384939ecd76e2d
+ sha256sums = 3a2f95a37b4614f05ac5a7c5d81a99555ba01b0b192667896006db8490cb89fa
sha256sums = 65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b
pkgname = linux-tt
diff --git a/linux-tt/PKGBUILD b/linux-tt/PKGBUILD
index d0945d93..1851cdbd 100644
--- a/linux-tt/PKGBUILD
+++ b/linux-tt/PKGBUILD
@@ -128,7 +128,7 @@ _srcname=linux-${_stable}
#_srcname=linux-${_major}
arch=(x86_64 x86_64_v3)
pkgdesc='Linux TT scheduler Kernel by CachyOS and other patches and improvements'
-pkgrel=4
+pkgrel=5
arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos"
license=('GPL2')
@@ -148,20 +148,20 @@ source=(
"${_patchsource}/0001-arch.patch"
"${_patchsource}/0002-anbox.patch"
"${_patchsource}/0003-bbr2.patch"
- "${_patchsource}/0004-fs-patches.patch"
- "${_patchsource}/0005-cachy.patch"
- "${_patchsource}/0006-clearlinux.patch"
- "${_patchsource}/0007-cpu-patches.patch"
- "${_patchsource}/0008-fixes-miscellaneous.patch"
- "${_patchsource}/0009-fixes.patch"
- "${_patchsource}/0010-hwmon.patch"
- "${_patchsource}/0011-MG-LRU.patch"
- "${_patchsource}/0012-spf-lru.patch"
- "${_patchsource}/0014-v4l2loopback.patch"
- "${_patchsource}/0015-xanmod.patch"
- "${_patchsource}/0016-lrng.patch"
- "${_patchsource}/0017-le9.patch"
- "${_patchsource}/0018-ck-hrtimer.patch"
+ "${_patchsource}/0004-cachy.patch"
+ "${_patchsource}/0005-clearlinux.patch"
+ "${_patchsource}/0006-cpu.patch"
+ "${_patchsource}/0007-fixes-miscellaneous.patch"
+ "${_patchsource}/0008-fs-patches.patch"
+ "${_patchsource}/0009-hwmon.patch"
+ "${_patchsource}/0010-MG-LRU.patch"
+ "${_patchsource}/0011-spf-lru.patch"
+ "${_patchsource}/0012-v4l2loopback.patch"
+ "${_patchsource}/0013-xanmod.patch"
+ "${_patchsource}/0014-lrng.patch"
+ "${_patchsource}/0015-le9.patch"
+ "${_patchsource}/0016-ck-hrtimer.patch"
+ # "${_patchsource}/0017-FG-KASLR.patch"
"auto-cpu-optimization.sh"
)
@@ -221,11 +221,10 @@ prepare() {
scripts/config --enable CONFIG_SCHED_PDS
elif [ "$_cpusched" = "cacule" ]; then
echo "Selecting CacULE scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
scripts/config --enable CONFIG_CACULE_SCHED
+ scripts/config --disable CONFIG_CACULE_RDB
elif [ "$_cpusched" = "cacule-rdb" ]; then
echo "Selecting CacULE-RDB scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
scripts/config --enable CONFIG_CACULE_SCHED
scripts/config --enable CONFIG_CACULE_RDB
scripts/config --set-val CONFIG_RDB_INTERVAL 19
@@ -235,10 +234,9 @@ prepare() {
scripts/config --enable CONFIG_TT_ACCOUNTING_STATS
elif [ "$_cpusched" = "bore" ]; then
echo "Selecting BORE Scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
+ scripts/config --enable CONFIG_SCHED_BORE
elif [ "$_cpusched" = "cfs" ]; then
echo "Selecting Completely Fair Scheduler..."
- scripts/config --disable CONFIG_SCHED_ALT
else
if [ -n "$_cpusched" ]; then
error "The value $_cpusched is invalid. Choose the correct one again."
@@ -303,11 +301,17 @@ prepare() {
if [ -n "$_NUMAdisable" ]; then
echo "Disabling NUMA from kernel config..."
scripts/config --disable CONFIG_NUMA
- fi
-
- if [ -n "$_winesync" ]; then
- echo "Enable winesync support"
- scripts/config --module CONFIG_WINESYNC
+ scripts/config --disable CONFIG_AMD_NUMA
+ scripts/config --disable CONFIG_X86_64_ACPI_NUMA
+ scripts/config --disable CONFIG_NODES_SPAN_OTHER_NODES
+ scripts/config --disable CONFIG_NUMA_EMU
+ scripts/config --disable CONFIG_NEED_MULTIPLE_NODES
+ scripts/config --disable CONFIG_USE_PERCPU_NUMA_NODE_ID
+ scripts/config --disable CONFIG_ACPI_NUMA
+ scripts/config --disable CONFIG_ARCH_SUPPORTS_NUMA_BALANCING
+ scripts/config --disable CONFIG_NODES_SHIFT
+ scripts/config --undefine CONFIG_NODES_SHIFT
+ scripts/config --disable CONFIG_NEED_MULTIPLE_NODES
fi
### Disable MQ-Deadline I/O scheduler
@@ -332,6 +336,11 @@ prepare() {
scripts/config --disable CONFIG_CPU_FREQ_GOV_CONSERVATIVE
scripts/config --disable CONFIG_CPU_FREQ_GOV_USERSPACE
scripts/config --disable CONFIG_CPU_FREQ_GOV_SCHEDUTIL
+ echo "Set PCIEASPM DRIVER to performance..."
+ scripts/config --enable CONFIG_PCIEASPM
+ scripts/config --enable CONFIG_PCIEASPM_PERFORMANCE
+ echo "Set CONFIG_PCIE_BUS for performance..."
+ scripts/config --enable CONFIG_PCIE_BUS_PERFORMANCE
fi
### Enable KBUILD_CFLAGS -O3
@@ -352,7 +361,6 @@ prepare() {
scripts/config --set-str CONFIG_DEFAULT_TCP_CONG bbr2
fi
-
### Enable FULLCONENAT
if [ -n "$_nf_cone" ]; then
echo "Enabling FULLCONENAT..."
@@ -488,14 +496,25 @@ prepare() {
scripts/config --set-str CONFIG_ZSWAP_COMPRESSOR_DEFAULT zstd
fi
-
- echo "Enable Anbox"
+ echo "Enable Anbox..."
scripts/config --enable CONFIG_ASHMEM
scripts/config --enable CONFIG_ANDROID
scripts/config --enable CONFIG_ANDROID_BINDER_IPC
scripts/config --enable CONFIG_ANDROID_BINDERFS
scripts/config --enable CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
+ echo "disable debugging features to reduce the size..."
+ scripts/config --disable CONFIG_DEBUG_INFO
+ scripts/config --disable CONFIG_CGROUP_BPF
+ scripts/config --disable CONFIG_BPF_LSM
+ scripts/config --disable CONFIG_BPF_PRELOAD
+ scripts/config --disable CONFIG_BPF_LIRC_MODE2
+ scripts/config --disable CONFIG_BPF_KPROBE_OVERRIDE
+ scripts/config --enable CONFIG_PSI_DEFAULT_DISABLED
+ scripts/config --disable CONFIG_LATENCYTOP
+ scripts/config --disable CONFIG_SCHED_DEBUG
+ scripts/config --disable CONFIG_KVM_WERROR
+
### Optionally use running kernel's config
# code originally by nous; http://aur.archlinux.org/packages.php?ID=40191
if [ -n "$_use_current" ]; then
@@ -560,14 +579,15 @@ _package() {
echo "Installing boot image..."
# systemd expects to find the kernel here to allow hibernation
# https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344
- install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz"
+ install -Dm644 "$(make ${BUILD_FLAGS[*]} -s image_name)" "$modulesdir/vmlinuz"
# Used by mkinitcpio to name the kernel
echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"
echo "Installing modules..."
- make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
+ make ${BUILD_FLAGS[*]} INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
DEPMOD=/doesnt/exist modules_install # Suppress depmod
+
# remove build and source links
rm "$modulesdir"/{source,build}
}
@@ -590,7 +610,7 @@ _package-headers() {
install -Dt "$builddir/tools/objtool" tools/objtool/objtool
# required when DEBUG_INFO_BTF_MODULES is enabled
- install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
+ # install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
echo "Installing headers..."
cp -t "$builddir" -a include
@@ -646,8 +666,9 @@ _package-headers() {
esac
done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0)
- echo "Stripping vmlinux..."
- strip -v $STRIP_STATIC "$builddir/vmlinux"
+ # echo "Stripping vmlinux..."
+ # strip -v $STRIP_STATIC "$builddir/vmlinux"
+ # not needed since not building with CONFIG_DEBUG_INFO=y
echo "Adding symlink..."
mkdir -p "$pkgdir/usr/src"
@@ -664,22 +685,22 @@ for _p in "${pkgname[@]}"; do
done
sha256sums=('32d0a8e366b87e1cbde951b9f7a01287546670ba60fac35cccfc8a7c005a162c'
- 'd336c4c1123208ba055055db08f24bfe1c9ae9785f3dbe58b7bb6b60fa6786c9'
- 'e493c542c964726c58aeee9949e84ad96b72f74bde629717dc274f03b3493789'
- '86881dd86c0982d86b66aca11f440ce3a0c88a28fb7120fdf8f7d6ad7d328e05'
- '7616bde11139d419ef190f2870e3a848b7157b9a4dc769a6f1ff59cb99508126'
- '576d14d12b54a8756117d4839fa63241fcde0ff7799ddfd07f0b25e7e852407c'
- '3b9a5a31c77e1b708793fd735ad82bd5906f0d8c0b055eae03ea0242ef83509c'
- 'a801630a75a59363c99144836a13aef4f36f93b3b5b64299faa11e21e329cfe4'
- '440f463d88183ced1ca0e1e8dafa227e6c0212752de7a0d5203e293e8ccb2f88'
- '7c76f76baccf3ca163f7889bb3d5b28a0551b94cd08312a63581b6df9f439693'
- 'bda7360b44d033dc274649d4c99e252321145162cbe7463ac1f97d79eae7101e'
- 'cf3554d737c52663dd3048906788c28ade3e53a660049ea0bdb792f096965c70'
- '8de7224e9d84605b7498dd003018dc94cc421d9871500ae885176f051fe048f8'
- 'f6e422d11a5389c5da330501a2a816f9fc088627124ab0910252dfa4d5eac367'
- 'ea4174aa8fbeb309c17fb0aedb4eacbf269ba02123d28067ec46142823782ca7'
- '69d4eb1a09e0c3d942c54b13e5576c372c81deadadaf06f94076c157f8599045'
- '1e486bf2a8d33762ed429569d4220a218e1d6db0e96d7cfb57e4ed8090a349bf'
- '6d2c65532a81468d15f8fb326837eef12f07e10c24e7219fc49c941eb40450db'
- 'c921936c051dd5efe66d7b53eb03a2f26b14b138047cd76702ba6cedf4474432'
-'65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b')
+ '341d996a829058d17393f4d0cbfdb23c7a7a68ee682fd70cb8e37d27af63efa5'
+ 'c048c4d43196d5d003897012b40da442d932f322b85e9805824450faa5df00ef'
+ 'e7a81fb26bb61875c07ba83075522d3d1c1ed463581c7067404a91bc724340b8'
+ 'dea401c0efff7f7979b91b1a32524646d0bab38191d70daf18924f944a4f1fd5'
+ '9962cab7ce58729912c70f2dce345d088c0c61f640e0bd9ee2975d571b08a0d2'
+ '9710c78919d651e2266391c129bf89557ee09aabeaa7935ae798c037d3c7c0cc'
+ '6f291e71de3df52728933d2e04da6a59eb08c3bdb3012ebeae40f05183744b93'
+ '18cfe65a2da89006f8aeb701a846a2e6ed2cac2e84b86cd7f6f9a25e988c4057'
+ '832781712c6c6a9523e1a9436f2131cc9f0b9d7131d44477c7e81739fc28e529'
+ '334263fecd6a1fe325c026928ac971fbb8168e23665085f62e3924f4c81029e4'
+ 'be3e41373ab7a6f112b5ebd96f4c2b0550333192b54b587be43727bf82003a2a'
+ '9c701eda6fda419ceab4b9e7b21b9d6e2a1eb0844b65404fc04bc609778b7419'
+ 'b03d9ea1b2a7e5687e6e954dd3f039c341fa4d69fb047ca688ffe5b953e977be'
+ '6cb2a9282ebb4fd53058d22f8159e10d1d8c321b7d17d0f2d761bdab7f88eaf8'
+ 'b64ccbec1080320fec7bfc3b55a6a2ebc33159d216039170ba58008ba7ec37b7'
+ '354616dccd88c5227c276ddbf184c083c77d9cea9ac143993101d9e67b7f0cfc'
+ '93eca845542db214f113c72df69c456f53ea0e77e1db865124384939ecd76e2d'
+ '3a2f95a37b4614f05ac5a7c5d81a99555ba01b0b192667896006db8490cb89fa'
+ '65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b')
diff --git a/linux-tt/config b/linux-tt/config
index 765d0856..e0ac63a9 100644
--- a/linux-tt/config
+++ b/linux-tt/config
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Linux/x86 5.17.3 Kernel Configuration
+# Linux/x86 5.17.4 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.2.0"
CONFIG_CC_IS_GCC=y
@@ -100,8 +100,10 @@ CONFIG_POSIX_CPU_TIMERS_TASK_WORK=y
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
-CONFIG_NO_HZ_IDLE=y
-# CONFIG_NO_HZ_FULL is not set
+# CONFIG_NO_HZ_IDLE is not set
+CONFIG_NO_HZ_FULL=y
+CONFIG_CONTEXT_TRACKING=y
+# CONFIG_CONTEXT_TRACKING_FORCE is not set
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
# end of Timers subsystem
@@ -124,13 +126,11 @@ CONFIG_BPF_PRELOAD_UMD=m
CONFIG_BPF_LSM=y
# end of BPF subsystem
-CONFIG_PREEMPT_BUILD=y
+CONFIG_PREEMPT_VOLUNTARY_BUILD=y
# CONFIG_PREEMPT_NONE is not set
-# CONFIG_PREEMPT_VOLUNTARY is not set
-CONFIG_PREEMPT=y
-CONFIG_PREEMPT_COUNT=y
-CONFIG_PREEMPTION=y
-CONFIG_PREEMPT_DYNAMIC=y
+CONFIG_PREEMPT_VOLUNTARY=y
+# CONFIG_PREEMPT is not set
+# CONFIG_PREEMPT_DYNAMIC is not set
CONFIG_SCHED_CORE=y
#
@@ -170,7 +170,8 @@ CONFIG_RCU_FANOUT=64
CONFIG_RCU_FANOUT_LEAF=16
CONFIG_RCU_BOOST=y
CONFIG_RCU_BOOST_DELAY=500
-# CONFIG_RCU_NOCB_CPU is not set
+CONFIG_RCU_NOCB_CPU=y
+CONFIG_RCU_NOCB_CPU_DEFAULT_ALL=y
# CONFIG_TASKS_TRACE_RCU_READ_MB is not set
# end of RCU Subsystem
@@ -192,7 +193,6 @@ CONFIG_UCLAMP_BUCKETS_COUNT=5
# CONFIG_SCHED_ALT is not set
# CONFIG_SCHED_BMQ is not set
# CONFIG_SCHED_PDS is not set
-# CONFIG_SCHED_BORE is not set
# end of Scheduler features
# CONFIG_CACULE_SCHED is not set
@@ -237,6 +237,7 @@ CONFIG_USER_NS_UNPRIVILEGED=y
CONFIG_PID_NS=y
CONFIG_NET_NS=y
CONFIG_CHECKPOINT_RESTORE=y
+# CONFIG_SCHED_BORE is not set
CONFIG_SCHED_AUTOGROUP=y
CONFIG_SCHED_AUTOGROUP_DEFAULT_ENABLED=y
# CONFIG_SYSFS_DEPRECATED is not set