summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorP.Jung2021-10-04 06:58:21 +0000
committerP.Jung2021-10-04 06:58:21 +0000
commit4c713f1540f87dba2d91e6404ee4c832ba3e0af3 (patch)
tree93c5f30439945a5dd2c4fddf49c089969b00778d
parent35c2133b640e45441d598a1352a910e13ea6bf07 (diff)
downloadaur-4c713f1540f87dba2d91e6404ee4c832ba3e0af3.tar.gz
RC4
-rw-r--r--.SRCINFO28
-rw-r--r--PKGBUILD47
-rw-r--r--config2
3 files changed, 48 insertions, 29 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 751e43c27edd..f60c97e2c74b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = linux-cacule-rc
pkgdesc = Linux-CacULE Kernel-RC by Hamad Marri and with some other patchsets
- pkgver = 5.15.rc3
+ pkgver = 5.15.rc4
pkgrel = 1
url = https://github.com/hamadmarri/cacule-cpu-scheduler
arch = x86_64
@@ -19,32 +19,34 @@ pkgbase = linux-cacule-rc
makedepends = tar
makedepends = xz
options = !strip
- source = https://git.kernel.org/torvalds/t/linux-5.15-rc3.tar.gz
+ source = https://git.kernel.org/torvalds/t/linux-5.15-rc4.tar.gz
source = config
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/arch-patches/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/CacULE/v5.15/cacule-5.15.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/CacULE/v5.15/cacule-5.15-full.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/misc/0007-v5.15-fsync.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/misc/0003-glitched-cfs.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/misc/more-uarches-for-kernel-5.15+.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/misc/le9ec-5.15-rc2.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/misc/0002-clear-patches.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/misc/amd/0006-amd-cppc.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/misc/0001-zstd-upstream-patches.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/misc/0002-init-Kconfig-enable-O3-for-all-arches.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/0001-mm.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/0001-misc.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/0001-lrng.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/0001-zstd.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15/0001-bbr2.patch
source = auto-cpu-optimization.sh
- md5sums = f996cb6694304111742d60480aafd522
- md5sums = aed2897ca8daff3174f1e34f739d21c2
- md5sums = cf26387aadf2a90428350ac246b070c9
- md5sums = 0783aae3228c2a709cbd7afc86717ebe
+ md5sums = 00dd752ba53fed55793f07864cbedac8
+ md5sums = 02eb64232420f2d2159380eb7c5c39de
+ md5sums = 0d27a2f6ac0b39eb8a441d9b879bcf55
md5sums = 6236a665dd6c93c5de76c1c658c99910
md5sums = d3ffe87474459e33c901f6141a047c95
md5sums = ff4b20b981d9ae0bdda68f012b03e756
- md5sums = b5aca6a351809cd67c039ae547fc6ec4
md5sums = 31a83ad2d5c11e560c7bfdfd59659c84
md5sums = 430972ae1e936f99d8dc2a1f4fdaf774
- md5sums = 74db4069a1c3985e5de43cf28f44e693
md5sums = ceb9020f754c9a0c3f526b38abc714dd
+ md5sums = e422617aff583cec11129e0f185e9549
+ md5sums = db32c669e1d4dec440341815fc81a108
+ md5sums = 80fe84d2b357c2a66b467d2c66bd09fb
+ md5sums = 52d324bcca2b2c41c739e257d5c6fd6e
md5sums = 422fe01f2e2b1ba1c2b9174fa1a75e40
md5sums = 21c98f19e883879dd3336c1fa143fd31
@@ -59,5 +61,5 @@ pkgname = linux-cacule-rc
pkgname = linux-cacule-rc-headers
pkgdesc = Headers and scripts for building modules for the Linux-CacULE Kernel-RC by Hamad Marri and with some other patchsets kernel
- depends = linux-cacule-rt-rc
+ depends = linux-cacule-rc
depends = pahole
diff --git a/PKGBUILD b/PKGBUILD
index 89ff5856c06a..dc0664fed6bf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -28,7 +28,7 @@ _2k_HZ_ticks=
_1k_HZ_ticks=
_750_HZ_ticks=y
_mm_protect=y
-_lrng_enable=
+_lrng_enable=y
## Apply Kernel automatic Optimization
_use_optimization=y
## Apply Kernel Optimization selecting
@@ -37,7 +37,7 @@ _use_optimization_select=
## compiling with LLVM/LTO
_use_llvm_lto=
-# Compile ONLY used modules to VASTLYreduce the number of modules built
+# Comfpile ONLY used modules to VASTLYreduce the number of modules built
# and the build time.
#
# To keep track of which modules are needed for your specific system/hardware,
@@ -61,7 +61,7 @@ pkgbase=linux-cacule-rc
_major=5.15
#_minor=1
#_minorc=$((_minor+1))
-_rcver=rc3
+_rcver=rc4
pkgver=${_major}.${_rcver}
#_stable=${_major}.${_minor}
_stablerc=${_major}-${_rcver}
@@ -78,19 +78,22 @@ _caculepatches="https://raw.githubusercontent.com/ptr1337/kernel-patches/master/
_patchsource="https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15"
source=("https://git.kernel.org/torvalds/t/linux-${_stablerc}.tar.gz"
"config"
- "${_patchsource}/arch-patches/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch"
- "${_caculepatches}/v5.15/cacule-5.15.patch"
+# "${_patchsource}/arch-patches/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch"
+ "${_caculepatches}/v5.15/cacule-5.15-full.patch"
"${_patchsource}/misc/0007-v5.15-fsync.patch"
"${_patchsource}/misc/0003-glitched-cfs.patch"
"${_patchsource}/misc/more-uarches-for-kernel-5.15+.patch"
- "${_patchsource}/misc/le9ec-5.15-rc2.patch"
+# "${_patchsource}/misc/le9ec-5.15-rc2.patch"
"${_patchsource}/misc/0002-clear-patches.patch"
"${_patchsource}/misc/amd/0006-amd-cppc.patch"
- "${_patchsource}/misc/0001-zstd-upstream-patches.patch"
"${_patchsource}/misc/0002-init-Kconfig-enable-O3-for-all-arches.patch"
+ "${_patchsource}/0001-mm.patch"
+ "${_patchsource}/0001-misc.patch"
+ "${_patchsource}/0001-lrng.patch"
+ "${_patchsource}/0001-zstd.patch"
"${_patchsource}/0001-bbr2.patch"
"auto-cpu-optimization.sh"
- )
+ )
if [ -n "$_use_llvm_lto" ]; then
BUILD_FLAGS=(
LLVM=1
@@ -128,7 +131,7 @@ prepare() {
### Microarchitecture Optimization (GCC/CLANG)
if [ -n "$_use_optimization" ]; then
- sh "${srcdir}"/auto-cpu-optimization.sh
+ "${srcdir}"/auto-cpu-optimization.sh
fi
if [ -n "$_use_optimization_select" ]; then
@@ -167,6 +170,17 @@ prepare() {
scripts/config --disable CONFIG_LRNG_TESTING_MENU
scripts/config --disable CONFIG_LRNG_SELFTEST
fi
+
+ ### Enable protect file 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 262144
+ scripts/config --set-val CONFIG_UNEVICTABLE_FILE_KBYTES_MIN 131072
+ scripts/config --enable CONFIG_UNEVICTABLE_ANON
+ scripts/config --set-val CONFIG_UNEVICTABLE_ANON_KBYTES_LOW 65536
+ scripts/config --set-val CONFIG_UNEVICTABLE_ANON_KBYTES_MIN 32768
+ fi
echo "Disabling TCP_CONG_CUBIC..."
scripts/config --module CONFIG_TCP_CONG_CUBIC
scripts/config --disable CONFIG_DEFAULT_CUBIC
@@ -261,7 +275,7 @@ _package() {
_package-headers() {
pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel"
- depends=('linux-cacule-rt-rc' 'pahole')
+ depends=('linux-cacule-rc' 'pahole')
cd $_srcname
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
@@ -347,17 +361,18 @@ for _p in "${pkgname[@]}"; do
done
-md5sums=('f996cb6694304111742d60480aafd522'
- 'aed2897ca8daff3174f1e34f739d21c2'
- 'cf26387aadf2a90428350ac246b070c9'
- '0783aae3228c2a709cbd7afc86717ebe'
+md5sums=('00dd752ba53fed55793f07864cbedac8'
+ '02eb64232420f2d2159380eb7c5c39de'
+ '0d27a2f6ac0b39eb8a441d9b879bcf55'
'6236a665dd6c93c5de76c1c658c99910'
'd3ffe87474459e33c901f6141a047c95'
'ff4b20b981d9ae0bdda68f012b03e756'
- 'b5aca6a351809cd67c039ae547fc6ec4'
'31a83ad2d5c11e560c7bfdfd59659c84'
'430972ae1e936f99d8dc2a1f4fdaf774'
- '74db4069a1c3985e5de43cf28f44e693'
'ceb9020f754c9a0c3f526b38abc714dd'
+ 'e422617aff583cec11129e0f185e9549'
+ 'db32c669e1d4dec440341815fc81a108'
+ '80fe84d2b357c2a66b467d2c66bd09fb'
+ '52d324bcca2b2c41c739e257d5c6fd6e'
'422fe01f2e2b1ba1c2b9174fa1a75e40'
'21c98f19e883879dd3336c1fa143fd31')
diff --git a/config b/config
index 4cc345fc3605..1c959449f5f5 100644
--- a/config
+++ b/config
@@ -207,6 +207,8 @@ CONFIG_CGROUP_WRITEBACK=y
CONFIG_CGROUP_SCHED=y
CONFIG_FAIR_GROUP_SCHED=y
CONFIG_CACULE_SCHED=y
+# CONFIG_CACULE_RDB is not set
+# CONFIG_RDB_INTERVAL is not set
CONFIG_CFS_BANDWIDTH=y
# CONFIG_RT_GROUP_SCHED is not set
CONFIG_UCLAMP_TASK_GROUP=y