diff --git a/.SRCINFO b/.SRCINFO index 36074f6..18ccd96 100755 --- a/.SRCINFO +++ b/.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 = 1 + pkgrel = 2 url = https://github.com/CachyOS/linux-cachyos arch = x86_64 arch = x86_64_v3 @@ -42,12 +42,13 @@ pkgbase = linux-cachyos source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0001-hwmon.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0001-MG-LRU.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0001-spf-lru-patches.patch + source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0001-uksm.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0001-rcu.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0001-v4l2loopback.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0001-xanmod.patch source = auto-cpu-optimization.sh sha256sums = 32d0a8e366b87e1cbde951b9f7a01287546670ba60fac35cccfc8a7c005a162c - sha256sums = e7dc7b8f42990b667d7226cd9d07b1189e1355cbfdbe860016688763e6e28b8b + sha256sums = 2326154da7383bd6a3b84e27a2dbc36d7bf8c533cda438fac7e08abefb71e9b0 sha256sums = df466f91e9560e258da5816f037760e511172e789dee01c267ac7213706919b9 sha256sums = b81d81435984662cc5948e5e26389402d6803ceb4cd3fe346f632fdf4c81f9ed sha256sums = ec150c2d74c58de56ab230679fe4c27b63a8bb4180f57e1985ff7fe7dced0401 @@ -62,8 +63,9 @@ pkgbase = linux-cachyos sha256sums = ccdc989e3600ec098060696fc87168b655ebbaaaac00d2b424f56c1697c50abb sha256sums = 27b29c0de9ac4e327f76d060c747196c59536754cb2288c7d121e700d9a976c8 sha256sums = c6e3fe5b1736c343f25632a23318c91ccc8b84e896ce7a0a1f7eb2a05e7a596f - sha256sums = 0d91172d863ffd56a676619632075b03a18416e55ed3c66f79dfcbac19eefedb + sha256sums = 0682d64dd5be9699ccfbd8a2c4f39ab899f6d13e18e5e0f1ca30b282606ac958 sha256sums = 0c71a8f1cf99f01d2f6fdafde8b5b96e1f56b686b505aa2e18396855966c11f9 + sha256sums = eccb27352c4e87998900a9b8b0e0ec6322c33f542643085a20db45a09c78fdba sha256sums = 91b8eebde0f0704808b16e0c7a64be791d9c93319ecb05cb4cdb35dcce7387f3 sha256sums = 65d7b7fe507302e77affbfdd2e92991ae37c413c17d6b96559b5794487421d58 sha256sums = aa87843e5e44e0f5ad20e3acacccc54e9931ae5dce6bb9a357731deb19d182b0 diff --git a/PKGBUILD b/PKGBUILD index d794dab..c9502dd 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -64,9 +64,6 @@ _mq_deadline_disable=y ### Disable Kyber I/O scheduler _kyber_disable=y -### Enable protect file mappings under memory pressure -_mm_protect= - ### Enable multigenerational LRU _lru_enable=y @@ -131,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=1 +pkgrel=2 arch=('x86_64' 'x86_64_v3') url="https://github.com/CachyOS/linux-cachyos" license=('GPL2') @@ -164,6 +161,7 @@ source=( "${_patchsource}/0001-hwmon.patch" "${_patchsource}/0001-MG-LRU.patch" "${_patchsource}/0001-spf-lru-patches.patch" + "${_patchsource}/0001-uksm.patch" "${_patchsource}/0001-rcu.patch" "${_patchsource}/0001-v4l2loopback.patch" "${_patchsource}/0001-xanmod.patch" @@ -367,18 +365,6 @@ prepare() { scripts/config --module CONFIG_NETFILTER_XT_TARGET_FULLCONENAT fi - ### Enable protect mappings under memory pressure - if [ -n "$_mm_protect" ]; then - echo "Enabling protect file mappings under memory pressure..." - scripts/config --enable CONFIG_UNEVICTABLE_FILE - scripts/config --set-val CONFIG_UNEVICTABLE_FILE_KBYTES_LOW 0 - scripts/config --set-val CONFIG_UNEVICTABLE_FILE_KBYTES_MIN 0 - echo "Enabling protect anonymous mappings under memory pressure..." - scripts/config --enable CONFIG_UNEVICTABLE_ANON - scripts/config --set-val CONFIG_UNEVICTABLE_ANON_KBYTES_LOW 0 - scripts/config --set-val CONFIG_UNEVICTABLE_ANON_KBYTES_MIN 0 - fi - ### Enable SPF if [ -n "$_spf_enable" ]; then echo "Enabling multigenerational LRU..." @@ -684,7 +670,7 @@ for _p in "${pkgname[@]}"; do done sha256sums=('32d0a8e366b87e1cbde951b9f7a01287546670ba60fac35cccfc8a7c005a162c' - 'e7dc7b8f42990b667d7226cd9d07b1189e1355cbfdbe860016688763e6e28b8b' + '2326154da7383bd6a3b84e27a2dbc36d7bf8c533cda438fac7e08abefb71e9b0' 'df466f91e9560e258da5816f037760e511172e789dee01c267ac7213706919b9' 'b81d81435984662cc5948e5e26389402d6803ceb4cd3fe346f632fdf4c81f9ed' 'ec150c2d74c58de56ab230679fe4c27b63a8bb4180f57e1985ff7fe7dced0401' @@ -699,8 +685,9 @@ sha256sums=('32d0a8e366b87e1cbde951b9f7a01287546670ba60fac35cccfc8a7c005a162c' 'ccdc989e3600ec098060696fc87168b655ebbaaaac00d2b424f56c1697c50abb' '27b29c0de9ac4e327f76d060c747196c59536754cb2288c7d121e700d9a976c8' 'c6e3fe5b1736c343f25632a23318c91ccc8b84e896ce7a0a1f7eb2a05e7a596f' - '0d91172d863ffd56a676619632075b03a18416e55ed3c66f79dfcbac19eefedb' + '0682d64dd5be9699ccfbd8a2c4f39ab899f6d13e18e5e0f1ca30b282606ac958' '0c71a8f1cf99f01d2f6fdafde8b5b96e1f56b686b505aa2e18396855966c11f9' + 'eccb27352c4e87998900a9b8b0e0ec6322c33f542643085a20db45a09c78fdba' '91b8eebde0f0704808b16e0c7a64be791d9c93319ecb05cb4cdb35dcce7387f3' '65d7b7fe507302e77affbfdd2e92991ae37c413c17d6b96559b5794487421d58' 'aa87843e5e44e0f5ad20e3acacccc54e9931ae5dce6bb9a357731deb19d182b0' diff --git a/config b/config index 37c4c09..9f9c2b1 100644 --- a/config +++ b/config @@ -1,6 +1,6 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/x86 5.17.0 Kernel Configuration +# Linux/x86 5.17.2 Kernel Configuration # CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.2.0" CONFIG_CC_IS_GCC=y @@ -1061,6 +1061,8 @@ CONFIG_PHYS_ADDR_T_64BIT=y CONFIG_VIRT_TO_BUS=y CONFIG_MMU_NOTIFIER=y CONFIG_KSM=y +CONFIG_UKSM=y +# CONFIG_KSM_LEGACY is not set CONFIG_DEFAULT_MMAP_MIN_ADDR=65536 CONFIG_ARCH_SUPPORTS_MEMORY_FAILURE=y CONFIG_MEMORY_FAILURE=y