diff options
author | P. Jung | 2021-09-23 16:16:09 +0000 |
---|---|---|
committer | P. Jung | 2021-09-23 16:16:09 +0000 |
commit | be0b062129d85d37ce352e61ad0648f7aa2f62e8 (patch) | |
tree | 796775f8154438a2fedac63f0a96e6e6023dfc51 | |
parent | a67b374a32ee725966c2400588a8cb6d6f107df0 (diff) | |
download | aur-be0b062129d85d37ce352e61ad0648f7aa2f62e8.tar.gz |
fixes
-rw-r--r-- | .SRCINFO | 28 | ||||
-rw-r--r-- | PKGBUILD | 57 | ||||
-rw-r--r-- | config | 30 |
3 files changed, 73 insertions, 42 deletions
@@ -1,7 +1,7 @@ pkgbase = linux-cacule-rdb-llvm pkgdesc = Linux-CacULE Kernel-RDB by Hamad Marri and with some other patchsets compiled with FULL-LTO pkgver = 5.14.7 - pkgrel = 1 + pkgrel = 2 url = https://github.com/ptr1337/linux-cacule arch = x86_64 arch = x86_64_v3 @@ -26,11 +26,15 @@ pkgbase = linux-cacule-rdb-llvm options = !strip source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.14.7.tar.xz source = config - source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/arch-patches-v6/0001-arch-patches.patch + source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/arch-patches-v7/0001-arch-patches.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/CacULE/v5.14/cacule-5.14-full.patch + source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/misc/0007-string.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/misc/allpollingrate.patch - source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/misc/0001-LL-kconfig-add-750Hz-timer-interrupt-kernel-config-o.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/misc/zen-tweaks-cacule.patch + source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/ll-patches/0001-LL-kconfig-add-750Hz-timer-interrupt-kernel-config-o.patch + source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/ll-patches/0003-sched-core-nr_migrate-256-increases-number-of-tasks-.patch + source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/ll-patches/0004-mm-set-8-megabytes-for-address_space-level-file-read.patch + source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/writeback-patches/0001-writeback-patches.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/android-patches/0001-android-export-symbold-and-enable-building-ashmem-an.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/bbr2-patches/0001-bbr2-5.14-introduce-BBRv2.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/block-patches/0001-block-patches.patch @@ -40,10 +44,10 @@ pkgbase = linux-cacule-rdb-llvm source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/futex2-zen-patches/0001-futex2-resync-from-gitlab.collabora.com.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/lqx-patches/0001-lqx-patches.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/lrng-patches-v2/0001-lrng-patches.patch - source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/lru-patches-v3/0001-lru-patches.patch + source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/lru-xanmod-patches/0001-lru-xanmod-patches.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/pf-patches-v5/0001-pf-patches.patch - source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/xanmod-patches/0001-xanmod-patches.patch - source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/zen-patches/0001-zen-patches.patch + source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/xanmod-patches-v2/0001-xanmod-patches.patch + source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/zen-patches-v2/0001-zen-patches.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/zstd-patches-v2/0001-zstd-patches.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/zstd-upstream-patches-v3/0001-zstd-upstream-patches.patch source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/ntfs3-patches-v9/0001-ntfs3-patches.patch @@ -53,12 +57,16 @@ pkgbase = linux-cacule-rdb-llvm source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/0001-ksm.patch source = auto-cpu-optimization.sh md5sums = 4119cf1e59ef6f109b9be9451a0899ae - md5sums = c6763e6be7e207d959589abbc128968f - md5sums = 7524899b1b1c14e6d993be59dc68faf3 + md5sums = b232ca9b091712a60c3449d39921b783 + md5sums = 01b196f5df07ddfb1dd97026472da196 md5sums = 024a0126cfcd18e000a2241f35c4d69e + md5sums = d6e5581b4fade267a28deb8e73d236f5 md5sums = f154315498da9bf593c11d88041bde48 - md5sums = f8e172e9ea554bbb1053eb122c3ace35 md5sums = 9d7612159f8745044254077ce8a76df6 + md5sums = f8e172e9ea554bbb1053eb122c3ace35 + md5sums = af7328eb8c72c754e5bc8c7be1ca2f1c + md5sums = f0d84fc024b9933bc19db696e0393a4e + md5sums = bf1ac40e460c8794d955d136f073b124 md5sums = e45c7962a78d6e82a0d3808868cd6ac0 md5sums = 196d6ac961497aa880264b83160eb140 md5sums = a3f2cbf318dd2a63af9673f9e34e7125 @@ -68,7 +76,7 @@ pkgbase = linux-cacule-rdb-llvm md5sums = 2891eb036469d04995d9b21a5e389d8a md5sums = 6787c78ba3e7b0a34fbba9c50da7e3b4 md5sums = 366c90b64f9582c0733b8fb607a07594 - md5sums = 8e2219f09adfe049b3e8b59fb8c4348a + md5sums = b5d149398c727b1eebcc188c882bc443 md5sums = d4c3a3ca73c2e722ebc790357ba87680 md5sums = 28864f14bf33bad92e57bc48bc5c2c78 md5sums = 381bc4f0ff885e9b67e5899476a30416 @@ -27,7 +27,7 @@ _750_HZ_ticks=y _500_HZ_ticks= ### Enable protect file mappings under memory pressure -_mm_protect=y +#_mm_protect=y _lru_enable=y ### Enable Linux Random Number Generator @@ -82,7 +82,7 @@ pkgbase=linux-cacule-rdb-llvm pkgname=('linux-cacule-rdb-llvm' 'linux-cacule-rdb-llvm-headers') pkgname=("${pkgbase}" "${pkgbase}-headers") pkgver=5.14.7 -pkgrel=1 +pkgrel=2 arch=(x86_64 x86_64_v3) pkgdesc='Linux-CacULE Kernel-RDB by Hamad Marri and with some other patchsets compiled with FULL-LTO' _gittag=v${pkgver%.*}-${pkgver##*.} @@ -97,14 +97,17 @@ _patchsource="https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5. source=("https://cdn.kernel.org/pub/linux/kernel/v${pkgver:0:1}.x/linux-${pkgver}.tar.xz" "config" # "${_patchsource}/arch-patches-v5/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch" - "${_patchsource}/arch-patches-v6/0001-arch-patches.patch" + "${_patchsource}/arch-patches-v7/0001-arch-patches.patch" "${_caculepatches}/v5.14/cacule-5.14-full.patch" # "${_patchsource}/misc/0004-folio-mm.patch" -# "${_patchsource}/misc/0007-string.patch" + "${_patchsource}/misc/0007-string.patch" "${_patchsource}/misc/allpollingrate.patch" - "${_patchsource}/misc/0001-LL-kconfig-add-750Hz-timer-interrupt-kernel-config-o.patch" # "${_patchsource}/misc/0001-AMD-CPPC.patch" "${_patchsource}/misc/zen-tweaks-cacule.patch" + "${_patchsource}/ll-patches/0001-LL-kconfig-add-750Hz-timer-interrupt-kernel-config-o.patch" + "${_patchsource}/ll-patches/0003-sched-core-nr_migrate-256-increases-number-of-tasks-.patch" + "${_patchsource}/ll-patches/0004-mm-set-8-megabytes-for-address_space-level-file-read.patch" + "${_patchsource}/writeback-patches/0001-writeback-patches.patch" # "${_patchsource}/bfq-patches-v2/0001-bfq-patches.patch" "${_patchsource}/android-patches/0001-android-export-symbold-and-enable-building-ashmem-an.patch" "${_patchsource}/bbr2-patches/0001-bbr2-5.14-introduce-BBRv2.patch" @@ -115,12 +118,12 @@ source=("https://cdn.kernel.org/pub/linux/kernel/v${pkgver:0:1}.x/linux-${pkgver "${_patchsource}/futex2-zen-patches/0001-futex2-resync-from-gitlab.collabora.com.patch" "${_patchsource}/lqx-patches/0001-lqx-patches.patch" "${_patchsource}/lrng-patches-v2/0001-lrng-patches.patch" - "${_patchsource}/lru-patches-v3/0001-lru-patches.patch" + "${_patchsource}/lru-xanmod-patches/0001-lru-xanmod-patches.patch" # "${_patchsource}/le9-patches-v4/0001-mm-vmscan-add-sysctl-knobs-for-protecting-the-workin.patch" # "${_patchsource}/misc/le9fa-5.14.patch" "${_patchsource}/pf-patches-v5/0001-pf-patches.patch" - "${_patchsource}/xanmod-patches/0001-xanmod-patches.patch" - "${_patchsource}/zen-patches/0001-zen-patches.patch" + "${_patchsource}/xanmod-patches-v2/0001-xanmod-patches.patch" + "${_patchsource}/zen-patches-v2/0001-zen-patches.patch" "${_patchsource}/zstd-patches-v2/0001-zstd-patches.patch" "${_patchsource}/zstd-upstream-patches-v3/0001-zstd-upstream-patches.patch" "${_patchsource}/ntfs3-patches-v9/0001-ntfs3-patches.patch" @@ -137,10 +140,24 @@ source=("https://cdn.kernel.org/pub/linux/kernel/v${pkgver:0:1}.x/linux-${pkgver source+=("${_patchsource}/0001-PGO.patch") fi -BUILD_FLAGS=( - LLVM=1 - LLVM_IAS=1 - ) +export BUILD_FLAGS=( + LLVM=1 + LLVM_IAS=1 + CC=clang + CXX=clang++ + LD=ld.lld + AR=llvm-ar + NM=llvm-nm + STRIP=llvm-strip + READELF=llvm-readelf + HOSTCC=clang + HOSTCXX=clang++ + HOSTAR=llvm-ar + HOSTLD=ld.lld + OBJCOPY=llvm-objcopy + OBJDUMP=objdump + ) + export KBUILD_BUILD_HOST=archlinux export KBUILD_BUILD_USER=$pkgbase @@ -273,8 +290,8 @@ prepare() { echo "Enabling multigenerational LRU..." scripts/config --enable CONFIG_HAVE_ARCH_PARENT_PMD_YOUNG scripts/config --enable CONFIG_LRU_GEN - scripts/config --set-val CONFIG_NR_LRU_GENS 7 - scripts/config --set-val CONFIG_TIERS_PER_GEN 4 + scripts/config --set-val CONFIG_NR_LRU_GENS 4 + scripts/config --set-val CONFIG_TIERS_PER_GEN 2 scripts/config --enable CONFIG_LRU_GEN_ENABLED scripts/config --disable CONFIG_LRU_GEN_STATS fi @@ -547,12 +564,16 @@ package_linux-cacule-rdb-llvm-headers() { } md5sums=('4119cf1e59ef6f109b9be9451a0899ae' - 'c6763e6be7e207d959589abbc128968f' - '7524899b1b1c14e6d993be59dc68faf3' + 'b232ca9b091712a60c3449d39921b783' + '01b196f5df07ddfb1dd97026472da196' '024a0126cfcd18e000a2241f35c4d69e' + 'd6e5581b4fade267a28deb8e73d236f5' 'f154315498da9bf593c11d88041bde48' - 'f8e172e9ea554bbb1053eb122c3ace35' '9d7612159f8745044254077ce8a76df6' + 'f8e172e9ea554bbb1053eb122c3ace35' + 'af7328eb8c72c754e5bc8c7be1ca2f1c' + 'f0d84fc024b9933bc19db696e0393a4e' + 'bf1ac40e460c8794d955d136f073b124' 'e45c7962a78d6e82a0d3808868cd6ac0' '196d6ac961497aa880264b83160eb140' 'a3f2cbf318dd2a63af9673f9e34e7125' @@ -562,7 +583,7 @@ md5sums=('4119cf1e59ef6f109b9be9451a0899ae' '2891eb036469d04995d9b21a5e389d8a' '6787c78ba3e7b0a34fbba9c50da7e3b4' '366c90b64f9582c0733b8fb607a07594' - '8e2219f09adfe049b3e8b59fb8c4348a' + 'b5d149398c727b1eebcc188c882bc443' 'd4c3a3ca73c2e722ebc790357ba87680' '28864f14bf33bad92e57bc48bc5c2c78' '381bc4f0ff885e9b67e5899476a30416' @@ -107,8 +107,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,14 +126,14 @@ CONFIG_BPF_SYSCALL=y CONFIG_BPF_JIT=y CONFIG_BPF_JIT_ALWAYS_ON=y CONFIG_BPF_JIT_DEFAULT_ON=y -CONFIG_BPF_UNPRIV_DEFAULT_OFF=y +# CONFIG_BPF_UNPRIV_DEFAULT_OFF is not set +CONFIG_USERMODE_DRIVER=y # CONFIG_BPF_PRELOAD is not set # CONFIG_BPF_LSM is not set # end of BPF subsystem -# CONFIG_PREEMPT_NONE_BEHAVIOUR is not set -# CONFIG_PREEMPT_VOLUNTARY_BEHAVIOUR is not set -CONFIG_PREEMPT_BEHAVIOUR=y +# CONFIG_PREEMPT_NONE is not set +# CONFIG_PREEMPT_VOLUNTARY is not set CONFIG_PREEMPT=y CONFIG_PREEMPT_COUNT=y CONFIG_PREEMPTION=y @@ -878,11 +880,14 @@ CONFIG_HAVE_ARCH_STACKLEAK=y CONFIG_HAVE_STACKPROTECTOR=y CONFIG_STACKPROTECTOR=y CONFIG_STACKPROTECTOR_STRONG=y +CONFIG_LTO=y +CONFIG_LTO_CLANG=y CONFIG_ARCH_SUPPORTS_LTO_CLANG=y CONFIG_ARCH_SUPPORTS_LTO_CLANG_THIN=y +CONFIG_HAS_LTO_CLANG=y # CONFIG_LTO_NONE is not set -CONFIG_LTO_CLANG_THIN=y -# CONFIG_LTO_CLANG_FULL is not set +CONFIG_LTO_CLANG_FULL=y +# CONFIG_LTO_CLANG_THIN is not set CONFIG_HAVE_ARCH_WITHIN_STACK_FRAMES=y CONFIG_HAVE_CONTEXT_TRACKING=y CONFIG_HAVE_CONTEXT_TRACKING_OFFSTACK=y @@ -1073,12 +1078,9 @@ CONFIG_COREDUMP=y # CONFIG_SELECT_MEMORY_MODEL=y CONFIG_SPARSEMEM_MANUAL=y -CONFIG_UNEVICTABLE_FILE=y -CONFIG_UNEVICTABLE_FILE_KBYTES_LOW=262144 -CONFIG_UNEVICTABLE_FILE_KBYTES_MIN=131072 -CONFIG_UNEVICTABLE_ANON=y -CONFIG_UNEVICTABLE_ANON_KBYTES_LOW=65536 -CONFIG_UNEVICTABLE_ANON_KBYTES_MIN=32768 +CONFIG_ANON_MIN_KBYTES=0 +CONFIG_CLEAN_LOW_KBYTES=524288 +CONFIG_CLEAN_MIN_KBYTES=0 CONFIG_SPARSEMEM=y CONFIG_SPARSEMEM_EXTREME=y CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y |