Archlinux Kernel based on different schedulers and some other performance improvements.
Shell archlinuxbaby-schedcachycachy-schedulercachyoscacule-schedkernellinux-kernelperformanceperformance-tuning
Refactor and cleanup PKGBUILDS
Piotr Gorski115c1bcc24fb
diff --git a/linux-bore/.SRCINFO b/linux-bore/.SRCINFOindex a07e10e4..65e814d1 100644--- a/linux-bore/.SRCINFO+++ b/linux-bore/.SRCINFO@@ -1,5 +1,5 @@# Generated by makepkg 6.0.2-# Wed Feb 1 16:06:03 UTC 2023+# Wed Feb 1 21:00:39 UTC 2023pkgbase = linux-borepkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.9diff --git a/linux-bore/PKGBUILD b/linux-bore/PKGBUILDindex 2b7ca149..a9593710 100644--- a/linux-bore/PKGBUILD+++ b/linux-bore/PKGBUILD@@ -311,6 +311,9 @@ prepare() {echo "Setting config..."cp ../config .config+ echo "Setting config..."+ cp ../config .config+### Select CPU optimizationif [ -n "$_processor_opt" ]; thenMARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)@@ -448,75 +451,28 @@ prepare() {fi### Select tick type- if [ "$_tickrate" = "periodic" ]; then- echo "Enabling periodic ticks..."- scripts/config -d NO_HZ_IDLE \- -d NO_HZ_FULL \- -d NO_HZ \- -d NO_HZ_COMMON \- -e HZ_PERIODIC- elif [ "$_tickrate" = "idle" ]; then- echo "Enabling idle ticks.."- scripts/config -d HZ_PERIODIC \- -d NO_HZ_FULL \- -e NO_HZ_IDLE \- -e NO_HZ \- -e NO_HZ_COMMON- elif [ "$_tickrate" = "full" ]; then- echo "Enabling full ticks..."- scripts/config -d HZ_PERIODIC \- -d NO_HZ_IDLE \- -d CONTEXT_TRACKING_FORCE \- -e NO_HZ_FULL_NODEF \- -e NO_HZ_FULL \- -e NO_HZ \- -e NO_HZ_COMMON \- -e CONTEXT_TRACKING- else- if [ -n "$_tickrate" ]; then- error "The value $_tickrate is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Selecting the tick rate failed!"- fi+ [ -z "$_tickrate" ] && _die "The value is empty. Choose the correct one again."++ case "$_tickrate" in+ perodic) scripts/config -d NO_HZ_IDLE -d NO_HZ_FULL -d NO_HZ -d NO_HZ_COMMON -e HZ_PERIODIC;;+ idle) scripts/config -d HZ_PERIODIC -d NO_HZ_FULL -e NO_HZ_IDLE -e NO_HZ -e NO_HZ_COMMON;;+ full) scripts/config -d HZ_PERIODIC -d NO_HZ_IDLE -d CONTEXT_TRACKING_FORCE -e NO_HZ_FULL_NODEF -e NO_HZ_FULL -e NO_HZ -e NO_HZ_COMMON -e CONTEXT_TRACKING;;+ *) _die "The value $_tickrate is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_tickrate tick type..."### Select preempt type- if [ "$_preempt" = "full" ]; then- echo "Enabling low latency preempt..."- scripts/config -e PREEMPT_BUILD \- -d PREEMPT_NONE \- -d PREEMPT_VOLUNTARY \- -e PREEMPT \- -e PREEMPT_COUNT \- -e PREEMPTION \- -e PREEMPT_DYNAMIC- elif [ "$_preempt" = "voluntary" ]; then- echo "Enabling voluntary preempt..."- scripts/config -e PREEMPT_BUILD \- -d PREEMPT_NONE \- -e PREEMPT_VOLUNTARY \- -d PREEMPT \- -e PREEMPT_COUNT \- -e PREEMPTION \- -d PREEMPT_DYNAMIC- elif [ "$_preempt" = "server" ]; then- echo "Enabling server preempt..."- scripts/config -e PREEMPT_NONE_BUILD \- -e PREEMPT_NONE \- -d PREEMPT_VOLUNTARY \- -d PREEMPT \- -d PREEMPT_COUNT \- -d PREEMPTION \- -d PREEMPT_DYNAMIC- else- if [ -n "$_preempt" ]; then- error "The value $_preempt is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Selecting PREEMPT failed!"- fi+ [ -z "$_preempt" ] && _die "The value is empty. Choose the correct one again."++ case "$_preempt" in+ full) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -d PREEMPT_VOLUNTARY -e PREEMPT -e PREEMPT_COUNT -e PREEMPTION -e PREEMPT_DYNAMIC;;+ voluntary) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -e PREEMPT_VOLUNTARY -d PREEMPT -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_DYNAMIC;;+ server) scripts/config -e PREEMPT_NONE_BUILD -e PREEMPT_NONE -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPTION -d PREEMPT_DYNAMIC;;+ *) _die "The value $_preempt is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_preempt preempt type..."### Enable O3if [ -n "$_cc_harder" ]; then@@ -536,66 +492,39 @@ prepare() {fi### Select LRU config- if [ "$_lru_config" = "standard" ]; then- echo "Enabling multigenerational LRU..."- scripts/config -e LRU_GEN \- -e LRU_GEN_ENABLED \- -d LRU_GEN_STATS- elif [ "$_lru_config" = "stats" ]; then- echo "Enabling multigenerational LRU with stats..."- scripts/config -e LRU_GEN \- -e LRU_GEN_ENABLED \- -e LRU_GEN_STATS- elif [ "$_lru_config" = "none" ]; then- echo "Disabling multigenerational LRU..."- scripts/config -d LRU_GEN- else- if [ -n "$_lru_config" ]; then- error "The value $_lru_config is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Enabling multigenerational LRU failed!"- fi+ [ -z "$_lru_config" ] && _die "The value is empty. Choose the correct one again."++ case "$_lru_config" in+ standard) scripts/config -e LRU_GEN -e LRU_GEN_ENABLED -d LRU_GEN_STATS;;+ stats) scripts/config -e LRU_GEN -e LRU_GEN_ENABLED -e LRU_GEN_STATS;;+ none) scripts/config -d LRU_GEN;;+ *) _die "The value $_lru_config is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_lru_config LRU_GEN config..."### Select VMA config- if [ "$_vma_config" = "standard" ]; then- echo "Enabling per-VMA locking..."- scripts/config -e PER_VMA_LOCK \- -d PER_VMA_LOCK_STATS- elif [ "$_vma_config" = "stats" ]; then- echo "Enabling per-VMA locking with stats..."- scripts/config -e PER_VMA_LOCK \- -e PER_VMA_LOCK_STATS- elif [ "$_vma_config" = "none" ]; then- echo "Disabling per-VMA locking..."- scripts/config -d PER_VMA_LOCK- else- if [ -n "$_vma_config" ]; then- error "The value $_vma_config is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Enabling per-VMA locking failed!"- fi+ [ -z "$_vma_config" ] && _die "The value is empty. Choose the correct one again."++ case "$_vma_config" in+ standard) scripts/config -e PER_VMA_LOCK -d PER_VMA_LOCK_STATS;;+ stats) scripts/config -e PER_VMA_LOCK -e PER_VMA_LOCK_STATS;;+ none) scripts/config -d PER_VMA_LOCK;;+ *) _die "The value $_vma_config is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_vma_config PER_VMA_LOCK config..."### Select THP- if [ "$_hugepage" = "always" ]; then- echo "Enable THP always..."- scripts/config -d TRANSPARENT_HUGEPAGE_MADVISE \- -e TRANSPARENT_HUGEPAGE_ALWAYS- elif [ "$_hugepage" = "madvise" ]; then- echo "Enable THP madvise..."- scripts/config -d TRANSPARENT_HUGEPAGE_ALWAYS \- -e TRANSPARENT_HUGEPAGE_MADVISE- else- if [ -n "$_hugepage" ]; then- error "The value $_hugepage is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Setting THP has failed!"- fi+ [ -z "$_hugepage" ] && _die "The value is empty. Choose the correct one again."++ case "$_hugepage" in+ always) scripts/config -d TRANSPARENT_HUGEPAGE_MADVISE -e TRANSPARENT_HUGEPAGE_ALWAYS;;+ madvise) scripts/config -d TRANSPARENT_HUGEPAGE_ALWAYS -e TRANSPARENT_HUGEPAGE_MADVISE;;+ *) _die "The value $_hugepage is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_hugepage TRANSPARENT_HUGEPAGE config..."### Enable DAMONif [ -n "$_damon" ]; then@@ -695,25 +624,15 @@ prepare() {fi### Selecting the ZSTD modules and kernel compression level- if [ "$_zstd_level_value" = "ultra" ]; then- echo "Enabling highest ZSTD modules and kernel compression ratio..."- scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 19 \- -e MODULE_COMPRESS_ZSTD_ULTRA \- --set-val MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 \- --set-val ZSTD_COMP_VAL 22- elif [ "$_zstd_level_value" = "normal" ]; then- echo "Enabling standard ZSTD modules and kernel compression ratio..."- scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 9 \- -d MODULE_COMPRESS_ZSTD_ULTRA \- --set-val 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- _die "Selecting the ZSTD modules and kernel compression level failed!"- fi+ [ -z "$_zstd_level_value" ] && _die "The value is empty. Choose the correct one again."++ case "$_zstd_level_value" in+ ultra) scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 19 -e MODULE_COMPRESS_ZSTD_ULTRA --set-val MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 --set-val ZSTD_COMP_VAL 22;;+ normal) scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 9 -d MODULE_COMPRESS_ZSTD_ULTRA --set-val ZSTD_COMP_VAL 19;;+ *) _die "The value $_zstd_level_value is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_zstd_level_value ZSTD modules and kernel compression level..."### Disable DEBUGif [ -n "$_disable_debug" ]; thendiff --git a/linux-cachyos-bmq/.SRCINFO b/linux-cachyos-bmq/.SRCINFOindex 7f73d262..d8e618b4 100644--- a/linux-cachyos-bmq/.SRCINFO+++ b/linux-cachyos-bmq/.SRCINFO@@ -1,5 +1,5 @@# Generated by makepkg 6.0.2-# Wed Feb 1 16:06:37 UTC 2023+# Wed Feb 1 21:01:04 UTC 2023pkgbase = linux-cachyos-bmqpkgdesc = Linux BMQ scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.9diff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILDindex dad83c66..b708513d 100644--- a/linux-cachyos-bmq/PKGBUILD+++ b/linux-cachyos-bmq/PKGBUILD@@ -311,6 +311,9 @@ prepare() {echo "Setting config..."cp ../config .config+ echo "Setting config..."+ cp ../config .config+### Select CPU optimizationif [ -n "$_processor_opt" ]; thenMARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)@@ -448,75 +451,28 @@ prepare() {fi### Select tick type- if [ "$_tickrate" = "periodic" ]; then- echo "Enabling periodic ticks..."- scripts/config -d NO_HZ_IDLE \- -d NO_HZ_FULL \- -d NO_HZ \- -d NO_HZ_COMMON \- -e HZ_PERIODIC- elif [ "$_tickrate" = "idle" ]; then- echo "Enabling idle ticks.."- scripts/config -d HZ_PERIODIC \- -d NO_HZ_FULL \- -e NO_HZ_IDLE \- -e NO_HZ \- -e NO_HZ_COMMON- elif [ "$_tickrate" = "full" ]; then- echo "Enabling full ticks..."- scripts/config -d HZ_PERIODIC \- -d NO_HZ_IDLE \- -d CONTEXT_TRACKING_FORCE \- -e NO_HZ_FULL_NODEF \- -e NO_HZ_FULL \- -e NO_HZ \- -e NO_HZ_COMMON \- -e CONTEXT_TRACKING- else- if [ -n "$_tickrate" ]; then- error "The value $_tickrate is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Selecting the tick rate failed!"- fi+ [ -z "$_tickrate" ] && _die "The value is empty. Choose the correct one again."++ case "$_tickrate" in+ perodic) scripts/config -d NO_HZ_IDLE -d NO_HZ_FULL -d NO_HZ -d NO_HZ_COMMON -e HZ_PERIODIC;;+ idle) scripts/config -d HZ_PERIODIC -d NO_HZ_FULL -e NO_HZ_IDLE -e NO_HZ -e NO_HZ_COMMON;;+ full) scripts/config -d HZ_PERIODIC -d NO_HZ_IDLE -d CONTEXT_TRACKING_FORCE -e NO_HZ_FULL_NODEF -e NO_HZ_FULL -e NO_HZ -e NO_HZ_COMMON -e CONTEXT_TRACKING;;+ *) _die "The value $_tickrate is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_tickrate tick type..."### Select preempt type- if [ "$_preempt" = "full" ]; then- echo "Enabling low latency preempt..."- scripts/config -e PREEMPT_BUILD \- -d PREEMPT_NONE \- -d PREEMPT_VOLUNTARY \- -e PREEMPT \- -e PREEMPT_COUNT \- -e PREEMPTION \- -e PREEMPT_DYNAMIC- elif [ "$_preempt" = "voluntary" ]; then- echo "Enabling voluntary preempt..."- scripts/config -e PREEMPT_BUILD \- -d PREEMPT_NONE \- -e PREEMPT_VOLUNTARY \- -d PREEMPT \- -e PREEMPT_COUNT \- -e PREEMPTION \- -d PREEMPT_DYNAMIC- elif [ "$_preempt" = "server" ]; then- echo "Enabling server preempt..."- scripts/config -e PREEMPT_NONE_BUILD \- -e PREEMPT_NONE \- -d PREEMPT_VOLUNTARY \- -d PREEMPT \- -d PREEMPT_COUNT \- -d PREEMPTION \- -d PREEMPT_DYNAMIC- else- if [ -n "$_preempt" ]; then- error "The value $_preempt is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Selecting PREEMPT failed!"- fi+ [ -z "$_preempt" ] && _die "The value is empty. Choose the correct one again."++ case "$_preempt" in+ full) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -d PREEMPT_VOLUNTARY -e PREEMPT -e PREEMPT_COUNT -e PREEMPTION -e PREEMPT_DYNAMIC;;+ voluntary) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -e PREEMPT_VOLUNTARY -d PREEMPT -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_DYNAMIC;;+ server) scripts/config -e PREEMPT_NONE_BUILD -e PREEMPT_NONE -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPTION -d PREEMPT_DYNAMIC;;+ *) _die "The value $_preempt is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_preempt preempt type..."### Enable O3if [ -n "$_cc_harder" ]; then@@ -536,66 +492,39 @@ prepare() {fi### Select LRU config- if [ "$_lru_config" = "standard" ]; then- echo "Enabling multigenerational LRU..."- scripts/config -e LRU_GEN \- -e LRU_GEN_ENABLED \- -d LRU_GEN_STATS- elif [ "$_lru_config" = "stats" ]; then- echo "Enabling multigenerational LRU with stats..."- scripts/config -e LRU_GEN \- -e LRU_GEN_ENABLED \- -e LRU_GEN_STATS- elif [ "$_lru_config" = "none" ]; then- echo "Disabling multigenerational LRU..."- scripts/config -d LRU_GEN- else- if [ -n "$_lru_config" ]; then- error "The value $_lru_config is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Enabling multigenerational LRU failed!"- fi+ [ -z "$_lru_config" ] && _die "The value is empty. Choose the correct one again."++ case "$_lru_config" in+ standard) scripts/config -e LRU_GEN -e LRU_GEN_ENABLED -d LRU_GEN_STATS;;+ stats) scripts/config -e LRU_GEN -e LRU_GEN_ENABLED -e LRU_GEN_STATS;;+ none) scripts/config -d LRU_GEN;;+ *) _die "The value $_lru_config is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_lru_config LRU_GEN config..."### Select VMA config- if [ "$_vma_config" = "standard" ]; then- echo "Enabling per-VMA locking..."- scripts/config -e PER_VMA_LOCK \- -d PER_VMA_LOCK_STATS- elif [ "$_vma_config" = "stats" ]; then- echo "Enabling per-VMA locking with stats..."- scripts/config -e PER_VMA_LOCK \- -e PER_VMA_LOCK_STATS- elif [ "$_vma_config" = "none" ]; then- echo "Disabling per-VMA locking..."- scripts/config -d PER_VMA_LOCK- else- if [ -n "$_vma_config" ]; then- error "The value $_vma_config is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Enabling per-VMA locking failed!"- fi+ [ -z "$_vma_config" ] && _die "The value is empty. Choose the correct one again."++ case "$_vma_config" in+ standard) scripts/config -e PER_VMA_LOCK -d PER_VMA_LOCK_STATS;;+ stats) scripts/config -e PER_VMA_LOCK -e PER_VMA_LOCK_STATS;;+ none) scripts/config -d PER_VMA_LOCK;;+ *) _die "The value $_vma_config is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_vma_config PER_VMA_LOCK config..."### Select THP- if [ "$_hugepage" = "always" ]; then- echo "Enable THP always..."- scripts/config -d TRANSPARENT_HUGEPAGE_MADVISE \- -e TRANSPARENT_HUGEPAGE_ALWAYS- elif [ "$_hugepage" = "madvise" ]; then- echo "Enable THP madvise..."- scripts/config -d TRANSPARENT_HUGEPAGE_ALWAYS \- -e TRANSPARENT_HUGEPAGE_MADVISE- else- if [ -n "$_hugepage" ]; then- error "The value $_hugepage is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Setting THP has failed!"- fi+ [ -z "$_hugepage" ] && _die "The value is empty. Choose the correct one again."++ case "$_hugepage" in+ always) scripts/config -d TRANSPARENT_HUGEPAGE_MADVISE -e TRANSPARENT_HUGEPAGE_ALWAYS;;+ madvise) scripts/config -d TRANSPARENT_HUGEPAGE_ALWAYS -e TRANSPARENT_HUGEPAGE_MADVISE;;+ *) _die "The value $_hugepage is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_hugepage TRANSPARENT_HUGEPAGE config..."### Enable DAMONif [ -n "$_damon" ]; then@@ -695,25 +624,15 @@ prepare() {fi### Selecting the ZSTD modules and kernel compression level- if [ "$_zstd_level_value" = "ultra" ]; then- echo "Enabling highest ZSTD modules and kernel compression ratio..."- scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 19 \- -e MODULE_COMPRESS_ZSTD_ULTRA \- --set-val MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 \- --set-val ZSTD_COMP_VAL 22- elif [ "$_zstd_level_value" = "normal" ]; then- echo "Enabling standard ZSTD modules and kernel compression ratio..."- scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 9 \- -d MODULE_COMPRESS_ZSTD_ULTRA \- --set-val 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- _die "Selecting the ZSTD modules and kernel compression level failed!"- fi+ [ -z "$_zstd_level_value" ] && _die "The value is empty. Choose the correct one again."++ case "$_zstd_level_value" in+ ultra) scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 19 -e MODULE_COMPRESS_ZSTD_ULTRA --set-val MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 --set-val ZSTD_COMP_VAL 22;;+ normal) scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 9 -d MODULE_COMPRESS_ZSTD_ULTRA --set-val ZSTD_COMP_VAL 19;;+ *) _die "The value $_zstd_level_value is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_zstd_level_value ZSTD modules and kernel compression level..."### Disable DEBUGif [ -n "$_disable_debug" ]; thendiff --git a/linux-cachyos-bore/.SRCINFO b/linux-cachyos-bore/.SRCINFOindex 8019e39d..757bb8da 100644--- a/linux-cachyos-bore/.SRCINFO+++ b/linux-cachyos-bore/.SRCINFO@@ -1,5 +1,5 @@# Generated by makepkg 6.0.2-# Wed Feb 1 16:06:55 UTC 2023+# Wed Feb 1 21:01:20 UTC 2023pkgbase = linux-cachyos-borepkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.9diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILDindex 749d7295..2b4ddb81 100644--- a/linux-cachyos-bore/PKGBUILD+++ b/linux-cachyos-bore/PKGBUILD@@ -311,6 +311,9 @@ prepare() {echo "Setting config..."cp ../config .config+ echo "Setting config..."+ cp ../config .config+### Select CPU optimizationif [ -n "$_processor_opt" ]; thenMARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)@@ -448,75 +451,28 @@ prepare() {fi### Select tick type- if [ "$_tickrate" = "periodic" ]; then- echo "Enabling periodic ticks..."- scripts/config -d NO_HZ_IDLE \- -d NO_HZ_FULL \- -d NO_HZ \- -d NO_HZ_COMMON \- -e HZ_PERIODIC- elif [ "$_tickrate" = "idle" ]; then- echo "Enabling idle ticks.."- scripts/config -d HZ_PERIODIC \- -d NO_HZ_FULL \- -e NO_HZ_IDLE \- -e NO_HZ \- -e NO_HZ_COMMON- elif [ "$_tickrate" = "full" ]; then- echo "Enabling full ticks..."- scripts/config -d HZ_PERIODIC \- -d NO_HZ_IDLE \- -d CONTEXT_TRACKING_FORCE \- -e NO_HZ_FULL_NODEF \- -e NO_HZ_FULL \- -e NO_HZ \- -e NO_HZ_COMMON \- -e CONTEXT_TRACKING- else- if [ -n "$_tickrate" ]; then- error "The value $_tickrate is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Selecting the tick rate failed!"- fi+ [ -z "$_tickrate" ] && _die "The value is empty. Choose the correct one again."++ case "$_tickrate" in+ perodic) scripts/config -d NO_HZ_IDLE -d NO_HZ_FULL -d NO_HZ -d NO_HZ_COMMON -e HZ_PERIODIC;;+ idle) scripts/config -d HZ_PERIODIC -d NO_HZ_FULL -e NO_HZ_IDLE -e NO_HZ -e NO_HZ_COMMON;;+ full) scripts/config -d HZ_PERIODIC -d NO_HZ_IDLE -d CONTEXT_TRACKING_FORCE -e NO_HZ_FULL_NODEF -e NO_HZ_FULL -e NO_HZ -e NO_HZ_COMMON -e CONTEXT_TRACKING;;+ *) _die "The value $_tickrate is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_tickrate tick type..."### Select preempt type- if [ "$_preempt" = "full" ]; then- echo "Enabling low latency preempt..."- scripts/config -e PREEMPT_BUILD \- -d PREEMPT_NONE \- -d PREEMPT_VOLUNTARY \- -e PREEMPT \- -e PREEMPT_COUNT \- -e PREEMPTION \- -e PREEMPT_DYNAMIC- elif [ "$_preempt" = "voluntary" ]; then- echo "Enabling voluntary preempt..."- scripts/config -e PREEMPT_BUILD \- -d PREEMPT_NONE \- -e PREEMPT_VOLUNTARY \- -d PREEMPT \- -e PREEMPT_COUNT \- -e PREEMPTION \- -d PREEMPT_DYNAMIC- elif [ "$_preempt" = "server" ]; then- echo "Enabling server preempt..."- scripts/config -e PREEMPT_NONE_BUILD \- -e PREEMPT_NONE \- -d PREEMPT_VOLUNTARY \- -d PREEMPT \- -d PREEMPT_COUNT \- -d PREEMPTION \- -d PREEMPT_DYNAMIC- else- if [ -n "$_preempt" ]; then- error "The value $_preempt is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Selecting PREEMPT failed!"- fi+ [ -z "$_preempt" ] && _die "The value is empty. Choose the correct one again."++ case "$_preempt" in+ full) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -d PREEMPT_VOLUNTARY -e PREEMPT -e PREEMPT_COUNT -e PREEMPTION -e PREEMPT_DYNAMIC;;+ voluntary) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -e PREEMPT_VOLUNTARY -d PREEMPT -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_DYNAMIC;;+ server) scripts/config -e PREEMPT_NONE_BUILD -e PREEMPT_NONE -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPTION -d PREEMPT_DYNAMIC;;+ *) _die "The value $_preempt is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_preempt preempt type..."### Enable O3if [ -n "$_cc_harder" ]; then@@ -536,66 +492,39 @@ prepare() {fi### Select LRU config- if [ "$_lru_config" = "standard" ]; then- echo "Enabling multigenerational LRU..."- scripts/config -e LRU_GEN \- -e LRU_GEN_ENABLED \- -d LRU_GEN_STATS- elif [ "$_lru_config" = "stats" ]; then- echo "Enabling multigenerational LRU with stats..."- scripts/config -e LRU_GEN \- -e LRU_GEN_ENABLED \- -e LRU_GEN_STATS- elif [ "$_lru_config" = "none" ]; then- echo "Disabling multigenerational LRU..."- scripts/config -d LRU_GEN- else- if [ -n "$_lru_config" ]; then- error "The value $_lru_config is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Enabling multigenerational LRU failed!"- fi+ [ -z "$_lru_config" ] && _die "The value is empty. Choose the correct one again."++ case "$_lru_config" in+ standard) scripts/config -e LRU_GEN -e LRU_GEN_ENABLED -d LRU_GEN_STATS;;+ stats) scripts/config -e LRU_GEN -e LRU_GEN_ENABLED -e LRU_GEN_STATS;;+ none) scripts/config -d LRU_GEN;;+ *) _die "The value $_lru_config is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_lru_config LRU_GEN config..."### Select VMA config- if [ "$_vma_config" = "standard" ]; then- echo "Enabling per-VMA locking..."- scripts/config -e PER_VMA_LOCK \- -d PER_VMA_LOCK_STATS- elif [ "$_vma_config" = "stats" ]; then- echo "Enabling per-VMA locking with stats..."- scripts/config -e PER_VMA_LOCK \- -e PER_VMA_LOCK_STATS- elif [ "$_vma_config" = "none" ]; then- echo "Disabling per-VMA locking..."- scripts/config -d PER_VMA_LOCK- else- if [ -n "$_vma_config" ]; then- error "The value $_vma_config is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Enabling per-VMA locking failed!"- fi+ [ -z "$_vma_config" ] && _die "The value is empty. Choose the correct one again."++ case "$_vma_config" in+ standard) scripts/config -e PER_VMA_LOCK -d PER_VMA_LOCK_STATS;;+ stats) scripts/config -e PER_VMA_LOCK -e PER_VMA_LOCK_STATS;;+ none) scripts/config -d PER_VMA_LOCK;;+ *) _die "The value $_vma_config is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_vma_config PER_VMA_LOCK config..."### Select THP- if [ "$_hugepage" = "always" ]; then- echo "Enable THP always..."- scripts/config -d TRANSPARENT_HUGEPAGE_MADVISE \- -e TRANSPARENT_HUGEPAGE_ALWAYS- elif [ "$_hugepage" = "madvise" ]; then- echo "Enable THP madvise..."- scripts/config -d TRANSPARENT_HUGEPAGE_ALWAYS \- -e TRANSPARENT_HUGEPAGE_MADVISE- else- if [ -n "$_hugepage" ]; then- error "The value $_hugepage is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Setting THP has failed!"- fi+ [ -z "$_hugepage" ] && _die "The value is empty. Choose the correct one again."++ case "$_hugepage" in+ always) scripts/config -d TRANSPARENT_HUGEPAGE_MADVISE -e TRANSPARENT_HUGEPAGE_ALWAYS;;+ madvise) scripts/config -d TRANSPARENT_HUGEPAGE_ALWAYS -e TRANSPARENT_HUGEPAGE_MADVISE;;+ *) _die "The value $_hugepage is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_hugepage TRANSPARENT_HUGEPAGE config..."### Enable DAMONif [ -n "$_damon" ]; then@@ -695,25 +624,15 @@ prepare() {fi### Selecting the ZSTD modules and kernel compression level- if [ "$_zstd_level_value" = "ultra" ]; then- echo "Enabling highest ZSTD modules and kernel compression ratio..."- scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 19 \- -e MODULE_COMPRESS_ZSTD_ULTRA \- --set-val MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 \- --set-val ZSTD_COMP_VAL 22- elif [ "$_zstd_level_value" = "normal" ]; then- echo "Enabling standard ZSTD modules and kernel compression ratio..."- scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 9 \- -d MODULE_COMPRESS_ZSTD_ULTRA \- --set-val 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- _die "Selecting the ZSTD modules and kernel compression level failed!"- fi+ [ -z "$_zstd_level_value" ] && _die "The value is empty. Choose the correct one again."++ case "$_zstd_level_value" in+ ultra) scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 19 -e MODULE_COMPRESS_ZSTD_ULTRA --set-val MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 --set-val ZSTD_COMP_VAL 22;;+ normal) scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 9 -d MODULE_COMPRESS_ZSTD_ULTRA --set-val ZSTD_COMP_VAL 19;;+ *) _die "The value $_zstd_level_value is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_zstd_level_value ZSTD modules and kernel compression level..."### Disable DEBUGif [ -n "$_disable_debug" ]; thendiff --git a/linux-cachyos-cfs/.SRCINFO b/linux-cachyos-cfs/.SRCINFOindex 92e21df8..ca2d6b23 100644--- a/linux-cachyos-cfs/.SRCINFO+++ b/linux-cachyos-cfs/.SRCINFO@@ -1,5 +1,5 @@# Generated by makepkg 6.0.2-# Wed Feb 1 16:07:12 UTC 2023+# Wed Feb 1 21:01:35 UTC 2023pkgbase = linux-cachyos-cfspkgdesc = Linux CFS scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.9diff --git a/linux-cachyos-cfs/PKGBUILD b/linux-cachyos-cfs/PKGBUILDindex 9d66acce..a07ef769 100644--- a/linux-cachyos-cfs/PKGBUILD+++ b/linux-cachyos-cfs/PKGBUILD@@ -311,6 +311,9 @@ prepare() {echo "Setting config..."cp ../config .config+ echo "Setting config..."+ cp ../config .config+### Select CPU optimizationif [ -n "$_processor_opt" ]; thenMARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)@@ -448,75 +451,28 @@ prepare() {fi### Select tick type- if [ "$_tickrate" = "periodic" ]; then- echo "Enabling periodic ticks..."- scripts/config -d NO_HZ_IDLE \- -d NO_HZ_FULL \- -d NO_HZ \- -d NO_HZ_COMMON \- -e HZ_PERIODIC- elif [ "$_tickrate" = "idle" ]; then- echo "Enabling idle ticks.."- scripts/config -d HZ_PERIODIC \- -d NO_HZ_FULL \- -e NO_HZ_IDLE \- -e NO_HZ \- -e NO_HZ_COMMON- elif [ "$_tickrate" = "full" ]; then- echo "Enabling full ticks..."- scripts/config -d HZ_PERIODIC \- -d NO_HZ_IDLE \- -d CONTEXT_TRACKING_FORCE \- -e NO_HZ_FULL_NODEF \- -e NO_HZ_FULL \- -e NO_HZ \- -e NO_HZ_COMMON \- -e CONTEXT_TRACKING- else- if [ -n "$_tickrate" ]; then- error "The value $_tickrate is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Selecting the tick rate failed!"- fi+ [ -z "$_tickrate" ] && _die "The value is empty. Choose the correct one again."++ case "$_tickrate" in+ perodic) scripts/config -d NO_HZ_IDLE -d NO_HZ_FULL -d NO_HZ -d NO_HZ_COMMON -e HZ_PERIODIC;;+ idle) scripts/config -d HZ_PERIODIC -d NO_HZ_FULL -e NO_HZ_IDLE -e NO_HZ -e NO_HZ_COMMON;;+ full) scripts/config -d HZ_PERIODIC -d NO_HZ_IDLE -d CONTEXT_TRACKING_FORCE -e NO_HZ_FULL_NODEF -e NO_HZ_FULL -e NO_HZ -e NO_HZ_COMMON -e CONTEXT_TRACKING;;+ *) _die "The value $_tickrate is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_tickrate tick type..."### Select preempt type- if [ "$_preempt" = "full" ]; then- echo "Enabling low latency preempt..."- scripts/config -e PREEMPT_BUILD \- -d PREEMPT_NONE \- -d PREEMPT_VOLUNTARY \- -e PREEMPT \- -e PREEMPT_COUNT \- -e PREEMPTION \- -e PREEMPT_DYNAMIC- elif [ "$_preempt" = "voluntary" ]; then- echo "Enabling voluntary preempt..."- scripts/config -e PREEMPT_BUILD \- -d PREEMPT_NONE \- -e PREEMPT_VOLUNTARY \- -d PREEMPT \- -e PREEMPT_COUNT \- -e PREEMPTION \- -d PREEMPT_DYNAMIC- elif [ "$_preempt" = "server" ]; then- echo "Enabling server preempt..."- scripts/config -e PREEMPT_NONE_BUILD \- -e PREEMPT_NONE \- -d PREEMPT_VOLUNTARY \- -d PREEMPT \- -d PREEMPT_COUNT \- -d PREEMPTION \- -d PREEMPT_DYNAMIC- else- if [ -n "$_preempt" ]; then- error "The value $_preempt is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Selecting PREEMPT failed!"- fi+ [ -z "$_preempt" ] && _die "The value is empty. Choose the correct one again."++ case "$_preempt" in+ full) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -d PREEMPT_VOLUNTARY -e PREEMPT -e PREEMPT_COUNT -e PREEMPTION -e PREEMPT_DYNAMIC;;+ voluntary) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -e PREEMPT_VOLUNTARY -d PREEMPT -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_DYNAMIC;;+ server) scripts/config -e PREEMPT_NONE_BUILD -e PREEMPT_NONE -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPTION -d PREEMPT_DYNAMIC;;+ *) _die "The value $_preempt is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_preempt preempt type..."### Enable O3if [ -n "$_cc_harder" ]; then@@ -536,66 +492,39 @@ prepare() {fi### Select LRU config- if [ "$_lru_config" = "standard" ]; then- echo "Enabling multigenerational LRU..."- scripts/config -e LRU_GEN \- -e LRU_GEN_ENABLED \- -d LRU_GEN_STATS- elif [ "$_lru_config" = "stats" ]; then- echo "Enabling multigenerational LRU with stats..."- scripts/config -e LRU_GEN \- -e LRU_GEN_ENABLED \- -e LRU_GEN_STATS- elif [ "$_lru_config" = "none" ]; then- echo "Disabling multigenerational LRU..."- scripts/config -d LRU_GEN- else- if [ -n "$_lru_config" ]; then- error "The value $_lru_config is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Enabling multigenerational LRU failed!"- fi+ [ -z "$_lru_config" ] && _die "The value is empty. Choose the correct one again."++ case "$_lru_config" in+ standard) scripts/config -e LRU_GEN -e LRU_GEN_ENABLED -d LRU_GEN_STATS;;+ stats) scripts/config -e LRU_GEN -e LRU_GEN_ENABLED -e LRU_GEN_STATS;;+ none) scripts/config -d LRU_GEN;;+ *) _die "The value $_lru_config is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_lru_config LRU_GEN config..."### Select VMA config- if [ "$_vma_config" = "standard" ]; then- echo "Enabling per-VMA locking..."- scripts/config -e PER_VMA_LOCK \- -d PER_VMA_LOCK_STATS- elif [ "$_vma_config" = "stats" ]; then- echo "Enabling per-VMA locking with stats..."- scripts/config -e PER_VMA_LOCK \- -e PER_VMA_LOCK_STATS- elif [ "$_vma_config" = "none" ]; then- echo "Disabling per-VMA locking..."- scripts/config -d PER_VMA_LOCK- else- if [ -n "$_vma_config" ]; then- error "The value $_vma_config is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Enabling per-VMA locking failed!"- fi+ [ -z "$_vma_config" ] && _die "The value is empty. Choose the correct one again."++ case "$_vma_config" in+ standard) scripts/config -e PER_VMA_LOCK -d PER_VMA_LOCK_STATS;;+ stats) scripts/config -e PER_VMA_LOCK -e PER_VMA_LOCK_STATS;;+ none) scripts/config -d PER_VMA_LOCK;;+ *) _die "The value $_vma_config is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_vma_config PER_VMA_LOCK config..."### Select THP- if [ "$_hugepage" = "always" ]; then- echo "Enable THP always..."- scripts/config -d TRANSPARENT_HUGEPAGE_MADVISE \- -e TRANSPARENT_HUGEPAGE_ALWAYS- elif [ "$_hugepage" = "madvise" ]; then- echo "Enable THP madvise..."- scripts/config -d TRANSPARENT_HUGEPAGE_ALWAYS \- -e TRANSPARENT_HUGEPAGE_MADVISE- else- if [ -n "$_hugepage" ]; then- error "The value $_hugepage is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Setting THP has failed!"- fi+ [ -z "$_hugepage" ] && _die "The value is empty. Choose the correct one again."++ case "$_hugepage" in+ always) scripts/config -d TRANSPARENT_HUGEPAGE_MADVISE -e TRANSPARENT_HUGEPAGE_ALWAYS;;+ madvise) scripts/config -d TRANSPARENT_HUGEPAGE_ALWAYS -e TRANSPARENT_HUGEPAGE_MADVISE;;+ *) _die "The value $_hugepage is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_hugepage TRANSPARENT_HUGEPAGE config..."### Enable DAMONif [ -n "$_damon" ]; then@@ -695,25 +624,15 @@ prepare() {fi### Selecting the ZSTD modules and kernel compression level- if [ "$_zstd_level_value" = "ultra" ]; then- echo "Enabling highest ZSTD modules and kernel compression ratio..."- scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 19 \- -e MODULE_COMPRESS_ZSTD_ULTRA \- --set-val MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 \- --set-val ZSTD_COMP_VAL 22- elif [ "$_zstd_level_value" = "normal" ]; then- echo "Enabling standard ZSTD modules and kernel compression ratio..."- scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 9 \- -d MODULE_COMPRESS_ZSTD_ULTRA \- --set-val 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- _die "Selecting the ZSTD modules and kernel compression level failed!"- fi+ [ -z "$_zstd_level_value" ] && _die "The value is empty. Choose the correct one again."++ case "$_zstd_level_value" in+ ultra) scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 19 -e MODULE_COMPRESS_ZSTD_ULTRA --set-val MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 --set-val ZSTD_COMP_VAL 22;;+ normal) scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 9 -d MODULE_COMPRESS_ZSTD_ULTRA --set-val ZSTD_COMP_VAL 19;;+ *) _die "The value $_zstd_level_value is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_zstd_level_value ZSTD modules and kernel compression level..."### Disable DEBUGif [ -n "$_disable_debug" ]; thendiff --git a/linux-cachyos-hardened/.SRCINFO b/linux-cachyos-hardened/.SRCINFOindex 857285da..a81c09d1 100644--- a/linux-cachyos-hardened/.SRCINFO+++ b/linux-cachyos-hardened/.SRCINFO@@ -1,5 +1,5 @@# Generated by makepkg 6.0.2-# Wed Feb 1 16:09:29 UTC 2023+# Wed Feb 1 21:03:39 UTC 2023pkgbase = linux-cachyos-hardenedpkgdesc = Linux hardenened BORE scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.9diff --git a/linux-cachyos-hardened/PKGBUILD b/linux-cachyos-hardened/PKGBUILDindex a2f3bfa8..41a6b4fb 100644--- a/linux-cachyos-hardened/PKGBUILD+++ b/linux-cachyos-hardened/PKGBUILD@@ -315,6 +315,9 @@ prepare() {echo "Setting config..."cp ../config .config+ echo "Setting config..."+ cp ../config .config+### Select CPU optimizationif [ -n "$_processor_opt" ]; thenMARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)@@ -452,75 +455,28 @@ prepare() {fi### Select tick type- if [ "$_tickrate" = "periodic" ]; then- echo "Enabling periodic ticks..."- scripts/config -d NO_HZ_IDLE \- -d NO_HZ_FULL \- -d NO_HZ \- -d NO_HZ_COMMON \- -e HZ_PERIODIC- elif [ "$_tickrate" = "idle" ]; then- echo "Enabling idle ticks.."- scripts/config -d HZ_PERIODIC \- -d NO_HZ_FULL \- -e NO_HZ_IDLE \- -e NO_HZ \- -e NO_HZ_COMMON- elif [ "$_tickrate" = "full" ]; then- echo "Enabling full ticks..."- scripts/config -d HZ_PERIODIC \- -d NO_HZ_IDLE \- -d CONTEXT_TRACKING_FORCE \- -e NO_HZ_FULL_NODEF \- -e NO_HZ_FULL \- -e NO_HZ \- -e NO_HZ_COMMON \- -e CONTEXT_TRACKING- else- if [ -n "$_tickrate" ]; then- error "The value $_tickrate is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Selecting the tick rate failed!"- fi+ [ -z "$_tickrate" ] && _die "The value is empty. Choose the correct one again."++ case "$_tickrate" in+ perodic) scripts/config -d NO_HZ_IDLE -d NO_HZ_FULL -d NO_HZ -d NO_HZ_COMMON -e HZ_PERIODIC;;+ idle) scripts/config -d HZ_PERIODIC -d NO_HZ_FULL -e NO_HZ_IDLE -e NO_HZ -e NO_HZ_COMMON;;+ full) scripts/config -d HZ_PERIODIC -d NO_HZ_IDLE -d CONTEXT_TRACKING_FORCE -e NO_HZ_FULL_NODEF -e NO_HZ_FULL -e NO_HZ -e NO_HZ_COMMON -e CONTEXT_TRACKING;;+ *) _die "The value $_tickrate is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_tickrate tick type..."### Select preempt type- if [ "$_preempt" = "full" ]; then- echo "Enabling low latency preempt..."- scripts/config -e PREEMPT_BUILD \- -d PREEMPT_NONE \- -d PREEMPT_VOLUNTARY \- -e PREEMPT \- -e PREEMPT_COUNT \- -e PREEMPTION \- -e PREEMPT_DYNAMIC- elif [ "$_preempt" = "voluntary" ]; then- echo "Enabling voluntary preempt..."- scripts/config -e PREEMPT_BUILD \- -d PREEMPT_NONE \- -e PREEMPT_VOLUNTARY \- -d PREEMPT \- -e PREEMPT_COUNT \- -e PREEMPTION \- -d PREEMPT_DYNAMIC- elif [ "$_preempt" = "server" ]; then- echo "Enabling server preempt..."- scripts/config -e PREEMPT_NONE_BUILD \- -e PREEMPT_NONE \- -d PREEMPT_VOLUNTARY \- -d PREEMPT \- -d PREEMPT_COUNT \- -d PREEMPTION \- -d PREEMPT_DYNAMIC- else- if [ -n "$_preempt" ]; then- error "The value $_preempt is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Selecting PREEMPT failed!"- fi+ [ -z "$_preempt" ] && _die "The value is empty. Choose the correct one again."++ case "$_preempt" in+ full) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -d PREEMPT_VOLUNTARY -e PREEMPT -e PREEMPT_COUNT -e PREEMPTION -e PREEMPT_DYNAMIC;;+ voluntary) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -e PREEMPT_VOLUNTARY -d PREEMPT -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_DYNAMIC;;+ server) scripts/config -e PREEMPT_NONE_BUILD -e PREEMPT_NONE -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPTION -d PREEMPT_DYNAMIC;;+ *) _die "The value $_preempt is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_preempt preempt type..."### Enable O3if [ -n "$_cc_harder" ]; then@@ -540,66 +496,39 @@ prepare() {fi### Select LRU config- if [ "$_lru_config" = "standard" ]; then- echo "Enabling multigenerational LRU..."- scripts/config -e LRU_GEN \- -e LRU_GEN_ENABLED \- -d LRU_GEN_STATS- elif [ "$_lru_config" = "stats" ]; then- echo "Enabling multigenerational LRU with stats..."- scripts/config -e LRU_GEN \- -e LRU_GEN_ENABLED \- -e LRU_GEN_STATS- elif [ "$_lru_config" = "none" ]; then- echo "Disabling multigenerational LRU..."- scripts/config -d LRU_GEN- else- if [ -n "$_lru_config" ]; then- error "The value $_lru_config is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Enabling multigenerational LRU failed!"- fi+ [ -z "$_lru_config" ] && _die "The value is empty. Choose the correct one again."++ case "$_lru_config" in+ standard) scripts/config -e LRU_GEN -e LRU_GEN_ENABLED -d LRU_GEN_STATS;;+ stats) scripts/config -e LRU_GEN -e LRU_GEN_ENABLED -e LRU_GEN_STATS;;+ none) scripts/config -d LRU_GEN;;+ *) _die "The value $_lru_config is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_lru_config LRU_GEN config..."### Select VMA config- if [ "$_vma_config" = "standard" ]; then- echo "Enabling per-VMA locking..."- scripts/config -e PER_VMA_LOCK \- -d PER_VMA_LOCK_STATS- elif [ "$_vma_config" = "stats" ]; then- echo "Enabling per-VMA locking with stats..."- scripts/config -e PER_VMA_LOCK \- -e PER_VMA_LOCK_STATS- elif [ "$_vma_config" = "none" ]; then- echo "Disabling per-VMA locking..."- scripts/config -d PER_VMA_LOCK- else- if [ -n "$_vma_config" ]; then- error "The value $_vma_config is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Enabling per-VMA locking failed!"- fi+ [ -z "$_vma_config" ] && _die "The value is empty. Choose the correct one again."++ case "$_vma_config" in+ standard) scripts/config -e PER_VMA_LOCK -d PER_VMA_LOCK_STATS;;+ stats) scripts/config -e PER_VMA_LOCK -e PER_VMA_LOCK_STATS;;+ none) scripts/config -d PER_VMA_LOCK;;+ *) _die "The value $_vma_config is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_vma_config PER_VMA_LOCK config..."### Select THP- if [ "$_hugepage" = "always" ]; then- echo "Enable THP always..."- scripts/config -d TRANSPARENT_HUGEPAGE_MADVISE \- -e TRANSPARENT_HUGEPAGE_ALWAYS- elif [ "$_hugepage" = "madvise" ]; then- echo "Enable THP madvise..."- scripts/config -d TRANSPARENT_HUGEPAGE_ALWAYS \- -e TRANSPARENT_HUGEPAGE_MADVISE- else- if [ -n "$_hugepage" ]; then- error "The value $_hugepage is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Setting THP has failed!"- fi+ [ -z "$_hugepage" ] && _die "The value is empty. Choose the correct one again."++ case "$_hugepage" in+ always) scripts/config -d TRANSPARENT_HUGEPAGE_MADVISE -e TRANSPARENT_HUGEPAGE_ALWAYS;;+ madvise) scripts/config -d TRANSPARENT_HUGEPAGE_ALWAYS -e TRANSPARENT_HUGEPAGE_MADVISE;;+ *) _die "The value $_hugepage is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_hugepage TRANSPARENT_HUGEPAGE config..."### Enable DAMONif [ -n "$_damon" ]; then@@ -699,25 +628,15 @@ prepare() {fi### Selecting the ZSTD modules and kernel compression level- if [ "$_zstd_level_value" = "ultra" ]; then- echo "Enabling highest ZSTD modules and kernel compression ratio..."- scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 19 \- -e MODULE_COMPRESS_ZSTD_ULTRA \- --set-val MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 \- --set-val ZSTD_COMP_VAL 22- elif [ "$_zstd_level_value" = "normal" ]; then- echo "Enabling standard ZSTD modules and kernel compression ratio..."- scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 9 \- -d MODULE_COMPRESS_ZSTD_ULTRA \- --set-val 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- _die "Selecting the ZSTD modules and kernel compression level failed!"- fi+ [ -z "$_zstd_level_value" ] && _die "The value is empty. Choose the correct one again."++ case "$_zstd_level_value" in+ ultra) scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 19 -e MODULE_COMPRESS_ZSTD_ULTRA --set-val MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 --set-val ZSTD_COMP_VAL 22;;+ normal) scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 9 -d MODULE_COMPRESS_ZSTD_ULTRA --set-val ZSTD_COMP_VAL 19;;+ *) _die "The value $_zstd_level_value is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_zstd_level_value ZSTD modules and kernel compression level..."### Disable DEBUGif [ -n "$_disable_debug" ]; thendiff --git a/linux-cachyos-pds/.SRCINFO b/linux-cachyos-pds/.SRCINFOindex d5a7c5ef..65005b10 100644--- a/linux-cachyos-pds/.SRCINFO+++ b/linux-cachyos-pds/.SRCINFO@@ -1,5 +1,5 @@# Generated by makepkg 6.0.2-# Wed Feb 1 16:07:28 UTC 2023+# Wed Feb 1 21:01:49 UTC 2023pkgbase = linux-cachyos-pdspkgdesc = Linux PDS scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.9diff --git a/linux-cachyos-pds/PKGBUILD b/linux-cachyos-pds/PKGBUILDindex 65be81d7..aa703827 100644--- a/linux-cachyos-pds/PKGBUILD+++ b/linux-cachyos-pds/PKGBUILD@@ -311,6 +311,9 @@ prepare() {echo "Setting config..."cp ../config .config+ echo "Setting config..."+ cp ../config .config+### Select CPU optimizationif [ -n "$_processor_opt" ]; thenMARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)@@ -448,75 +451,28 @@ prepare() {fi### Select tick type- if [ "$_tickrate" = "periodic" ]; then- echo "Enabling periodic ticks..."- scripts/config -d NO_HZ_IDLE \- -d NO_HZ_FULL \- -d NO_HZ \- -d NO_HZ_COMMON \- -e HZ_PERIODIC- elif [ "$_tickrate" = "idle" ]; then- echo "Enabling idle ticks.."- scripts/config -d HZ_PERIODIC \- -d NO_HZ_FULL \- -e NO_HZ_IDLE \- -e NO_HZ \- -e NO_HZ_COMMON- elif [ "$_tickrate" = "full" ]; then- echo "Enabling full ticks..."- scripts/config -d HZ_PERIODIC \- -d NO_HZ_IDLE \- -d CONTEXT_TRACKING_FORCE \- -e NO_HZ_FULL_NODEF \- -e NO_HZ_FULL \- -e NO_HZ \- -e NO_HZ_COMMON \- -e CONTEXT_TRACKING- else- if [ -n "$_tickrate" ]; then- error "The value $_tickrate is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Selecting the tick rate failed!"- fi+ [ -z "$_tickrate" ] && _die "The value is empty. Choose the correct one again."++ case "$_tickrate" in+ perodic) scripts/config -d NO_HZ_IDLE -d NO_HZ_FULL -d NO_HZ -d NO_HZ_COMMON -e HZ_PERIODIC;;+ idle) scripts/config -d HZ_PERIODIC -d NO_HZ_FULL -e NO_HZ_IDLE -e NO_HZ -e NO_HZ_COMMON;;+ full) scripts/config -d HZ_PERIODIC -d NO_HZ_IDLE -d CONTEXT_TRACKING_FORCE -e NO_HZ_FULL_NODEF -e NO_HZ_FULL -e NO_HZ -e NO_HZ_COMMON -e CONTEXT_TRACKING;;+ *) _die "The value $_tickrate is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_tickrate tick type..."### Select preempt type- if [ "$_preempt" = "full" ]; then- echo "Enabling low latency preempt..."- scripts/config -e PREEMPT_BUILD \- -d PREEMPT_NONE \- -d PREEMPT_VOLUNTARY \- -e PREEMPT \- -e PREEMPT_COUNT \- -e PREEMPTION \- -e PREEMPT_DYNAMIC- elif [ "$_preempt" = "voluntary" ]; then- echo "Enabling voluntary preempt..."- scripts/config -e PREEMPT_BUILD \- -d PREEMPT_NONE \- -e PREEMPT_VOLUNTARY \- -d PREEMPT \- -e PREEMPT_COUNT \- -e PREEMPTION \- -d PREEMPT_DYNAMIC- elif [ "$_preempt" = "server" ]; then- echo "Enabling server preempt..."- scripts/config -e PREEMPT_NONE_BUILD \- -e PREEMPT_NONE \- -d PREEMPT_VOLUNTARY \- -d PREEMPT \- -d PREEMPT_COUNT \- -d PREEMPTION \- -d PREEMPT_DYNAMIC- else- if [ -n "$_preempt" ]; then- error "The value $_preempt is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Selecting PREEMPT failed!"- fi+ [ -z "$_preempt" ] && _die "The value is empty. Choose the correct one again."++ case "$_preempt" in+ full) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -d PREEMPT_VOLUNTARY -e PREEMPT -e PREEMPT_COUNT -e PREEMPTION -e PREEMPT_DYNAMIC;;+ voluntary) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -e PREEMPT_VOLUNTARY -d PREEMPT -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_DYNAMIC;;+ server) scripts/config -e PREEMPT_NONE_BUILD -e PREEMPT_NONE -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPTION -d PREEMPT_DYNAMIC;;+ *) _die "The value $_preempt is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_preempt preempt type..."### Enable O3if [ -n "$_cc_harder" ]; then@@ -536,66 +492,39 @@ prepare() {fi### Select LRU config- if [ "$_lru_config" = "standard" ]; then- echo "Enabling multigenerational LRU..."- scripts/config -e LRU_GEN \- -e LRU_GEN_ENABLED \- -d LRU_GEN_STATS- elif [ "$_lru_config" = "stats" ]; then- echo "Enabling multigenerational LRU with stats..."- scripts/config -e LRU_GEN \- -e LRU_GEN_ENABLED \- -e LRU_GEN_STATS- elif [ "$_lru_config" = "none" ]; then- echo "Disabling multigenerational LRU..."- scripts/config -d LRU_GEN- else- if [ -n "$_lru_config" ]; then- error "The value $_lru_config is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Enabling multigenerational LRU failed!"- fi+ [ -z "$_lru_config" ] && _die "The value is empty. Choose the correct one again."++ case "$_lru_config" in+ standard) scripts/config -e LRU_GEN -e LRU_GEN_ENABLED -d LRU_GEN_STATS;;+ stats) scripts/config -e LRU_GEN -e LRU_GEN_ENABLED -e LRU_GEN_STATS;;+ none) scripts/config -d LRU_GEN;;+ *) _die "The value $_lru_config is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_lru_config LRU_GEN config..."### Select VMA config- if [ "$_vma_config" = "standard" ]; then- echo "Enabling per-VMA locking..."- scripts/config -e PER_VMA_LOCK \- -d PER_VMA_LOCK_STATS- elif [ "$_vma_config" = "stats" ]; then- echo "Enabling per-VMA locking with stats..."- scripts/config -e PER_VMA_LOCK \- -e PER_VMA_LOCK_STATS- elif [ "$_vma_config" = "none" ]; then- echo "Disabling per-VMA locking..."- scripts/config -d PER_VMA_LOCK- else- if [ -n "$_vma_config" ]; then- error "The value $_vma_config is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Enabling per-VMA locking failed!"- fi+ [ -z "$_vma_config" ] && _die "The value is empty. Choose the correct one again."++ case "$_vma_config" in+ standard) scripts/config -e PER_VMA_LOCK -d PER_VMA_LOCK_STATS;;+ stats) scripts/config -e PER_VMA_LOCK -e PER_VMA_LOCK_STATS;;+ none) scripts/config -d PER_VMA_LOCK;;+ *) _die "The value $_vma_config is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_vma_config PER_VMA_LOCK config..."### Select THP- if [ "$_hugepage" = "always" ]; then- echo "Enable THP always..."- scripts/config -d TRANSPARENT_HUGEPAGE_MADVISE \- -e TRANSPARENT_HUGEPAGE_ALWAYS- elif [ "$_hugepage" = "madvise" ]; then- echo "Enable THP madvise..."- scripts/config -d TRANSPARENT_HUGEPAGE_ALWAYS \- -e TRANSPARENT_HUGEPAGE_MADVISE- else- if [ -n "$_hugepage" ]; then- error "The value $_hugepage is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Setting THP has failed!"- fi+ [ -z "$_hugepage" ] && _die "The value is empty. Choose the correct one again."++ case "$_hugepage" in+ always) scripts/config -d TRANSPARENT_HUGEPAGE_MADVISE -e TRANSPARENT_HUGEPAGE_ALWAYS;;+ madvise) scripts/config -d TRANSPARENT_HUGEPAGE_ALWAYS -e TRANSPARENT_HUGEPAGE_MADVISE;;+ *) _die "The value $_hugepage is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_hugepage TRANSPARENT_HUGEPAGE config..."### Enable DAMONif [ -n "$_damon" ]; then@@ -695,25 +624,15 @@ prepare() {fi### Selecting the ZSTD modules and kernel compression level- if [ "$_zstd_level_value" = "ultra" ]; then- echo "Enabling highest ZSTD modules and kernel compression ratio..."- scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 19 \- -e MODULE_COMPRESS_ZSTD_ULTRA \- --set-val MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 \- --set-val ZSTD_COMP_VAL 22- elif [ "$_zstd_level_value" = "normal" ]; then- echo "Enabling standard ZSTD modules and kernel compression ratio..."- scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 9 \- -d MODULE_COMPRESS_ZSTD_ULTRA \- --set-val 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- _die "Selecting the ZSTD modules and kernel compression level failed!"- fi+ [ -z "$_zstd_level_value" ] && _die "The value is empty. Choose the correct one again."++ case "$_zstd_level_value" in+ ultra) scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 19 -e MODULE_COMPRESS_ZSTD_ULTRA --set-val MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 --set-val ZSTD_COMP_VAL 22;;+ normal) scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 9 -d MODULE_COMPRESS_ZSTD_ULTRA --set-val ZSTD_COMP_VAL 19;;+ *) _die "The value $_zstd_level_value is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_zstd_level_value ZSTD modules and kernel compression level..."### Disable DEBUGif [ -n "$_disable_debug" ]; thendiff --git a/linux-cachyos-rc/.SRCINFO b/linux-cachyos-rc/.SRCINFOindex ba08415e..a59201c7 100644--- a/linux-cachyos-rc/.SRCINFO+++ b/linux-cachyos-rc/.SRCINFO@@ -1,5 +1,5 @@# Generated by makepkg 6.0.2-# Wed Feb 1 16:08:27 UTC 2023+# Wed Feb 1 21:02:46 UTC 2023pkgbase = linux-cachyos-rcpkgdesc = Linux BORE scheduler Kernel by CachyOS and with some other patches and other improvementspkgver = 6.2.rc6diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILDindex 57c80dfd..fa763146 100644--- a/linux-cachyos-rc/PKGBUILD+++ b/linux-cachyos-rc/PKGBUILD@@ -311,6 +311,9 @@ prepare() {echo "Setting config..."cp ../config .config+ echo "Setting config..."+ cp ../config .config+### Select CPU optimizationif [ -n "$_processor_opt" ]; thenMARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)@@ -448,75 +451,28 @@ prepare() {fi### Select tick type- if [ "$_tickrate" = "periodic" ]; then- echo "Enabling periodic ticks..."- scripts/config -d NO_HZ_IDLE \- -d NO_HZ_FULL \- -d NO_HZ \- -d NO_HZ_COMMON \- -e HZ_PERIODIC- elif [ "$_tickrate" = "idle" ]; then- echo "Enabling idle ticks.."- scripts/config -d HZ_PERIODIC \- -d NO_HZ_FULL \- -e NO_HZ_IDLE \- -e NO_HZ \- -e NO_HZ_COMMON- elif [ "$_tickrate" = "full" ]; then- echo "Enabling full ticks..."- scripts/config -d HZ_PERIODIC \- -d NO_HZ_IDLE \- -d CONTEXT_TRACKING_FORCE \- -e NO_HZ_FULL_NODEF \- -e NO_HZ_FULL \- -e NO_HZ \- -e NO_HZ_COMMON \- -e CONTEXT_TRACKING- else- if [ -n "$_tickrate" ]; then- error "The value $_tickrate is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Selecting the tick rate failed!"- fi+ [ -z "$_tickrate" ] && _die "The value is empty. Choose the correct one again."++ case "$_tickrate" in+ perodic) scripts/config -d NO_HZ_IDLE -d NO_HZ_FULL -d NO_HZ -d NO_HZ_COMMON -e HZ_PERIODIC;;+ idle) scripts/config -d HZ_PERIODIC -d NO_HZ_FULL -e NO_HZ_IDLE -e NO_HZ -e NO_HZ_COMMON;;+ full) scripts/config -d HZ_PERIODIC -d NO_HZ_IDLE -d CONTEXT_TRACKING_FORCE -e NO_HZ_FULL_NODEF -e NO_HZ_FULL -e NO_HZ -e NO_HZ_COMMON -e CONTEXT_TRACKING;;+ *) _die "The value $_tickrate is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_tickrate tick type..."### Select preempt type- if [ "$_preempt" = "full" ]; then- echo "Enabling low latency preempt..."- scripts/config -e PREEMPT_BUILD \- -d PREEMPT_NONE \- -d PREEMPT_VOLUNTARY \- -e PREEMPT \- -e PREEMPT_COUNT \- -e PREEMPTION \- -e PREEMPT_DYNAMIC- elif [ "$_preempt" = "voluntary" ]; then- echo "Enabling voluntary preempt..."- scripts/config -e PREEMPT_BUILD \- -d PREEMPT_NONE \- -e PREEMPT_VOLUNTARY \- -d PREEMPT \- -e PREEMPT_COUNT \- -e PREEMPTION \- -d PREEMPT_DYNAMIC- elif [ "$_preempt" = "server" ]; then- echo "Enabling server preempt..."- scripts/config -e PREEMPT_NONE_BUILD \- -e PREEMPT_NONE \- -d PREEMPT_VOLUNTARY \- -d PREEMPT \- -d PREEMPT_COUNT \- -d PREEMPTION \- -d PREEMPT_DYNAMIC- else- if [ -n "$_preempt" ]; then- error "The value $_preempt is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Selecting PREEMPT failed!"- fi+ [ -z "$_preempt" ] && _die "The value is empty. Choose the correct one again."++ case "$_preempt" in+ full) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -d PREEMPT_VOLUNTARY -e PREEMPT -e PREEMPT_COUNT -e PREEMPTION -e PREEMPT_DYNAMIC;;+ voluntary) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -e PREEMPT_VOLUNTARY -d PREEMPT -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_DYNAMIC;;+ server) scripts/config -e PREEMPT_NONE_BUILD -e PREEMPT_NONE -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPTION -d PREEMPT_DYNAMIC;;+ *) _die "The value $_preempt is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_preempt preempt type..."### Enable O3if [ -n "$_cc_harder" ]; then@@ -536,66 +492,39 @@ prepare() {fi### Select LRU config- if [ "$_lru_config" = "standard" ]; then- echo "Enabling multigenerational LRU..."- scripts/config -e LRU_GEN \- -e LRU_GEN_ENABLED \- -d LRU_GEN_STATS- elif [ "$_lru_config" = "stats" ]; then- echo "Enabling multigenerational LRU with stats..."- scripts/config -e LRU_GEN \- -e LRU_GEN_ENABLED \- -e LRU_GEN_STATS- elif [ "$_lru_config" = "none" ]; then- echo "Disabling multigenerational LRU..."- scripts/config -d LRU_GEN- else- if [ -n "$_lru_config" ]; then- error "The value $_lru_config is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Enabling multigenerational LRU failed!"- fi+ [ -z "$_lru_config" ] && _die "The value is empty. Choose the correct one again."++ case "$_lru_config" in+ standard) scripts/config -e LRU_GEN -e LRU_GEN_ENABLED -d LRU_GEN_STATS;;+ stats) scripts/config -e LRU_GEN -e LRU_GEN_ENABLED -e LRU_GEN_STATS;;+ none) scripts/config -d LRU_GEN;;+ *) _die "The value $_lru_config is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_lru_config LRU_GEN config..."### Select VMA config- if [ "$_vma_config" = "standard" ]; then- echo "Enabling per-VMA locking..."- scripts/config -e PER_VMA_LOCK \- -d PER_VMA_LOCK_STATS- elif [ "$_vma_config" = "stats" ]; then- echo "Enabling per-VMA locking with stats..."- scripts/config -e PER_VMA_LOCK \- -e PER_VMA_LOCK_STATS- elif [ "$_vma_config" = "none" ]; then- echo "Disabling per-VMA locking..."- scripts/config -d PER_VMA_LOCK- else- if [ -n "$_vma_config" ]; then- error "The value $_vma_config is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Enabling per-VMA locking failed!"- fi+ [ -z "$_vma_config" ] && _die "The value is empty. Choose the correct one again."++ case "$_vma_config" in+ standard) scripts/config -e PER_VMA_LOCK -d PER_VMA_LOCK_STATS;;+ stats) scripts/config -e PER_VMA_LOCK -e PER_VMA_LOCK_STATS;;+ none) scripts/config -d PER_VMA_LOCK;;+ *) _die "The value $_vma_config is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_vma_config PER_VMA_LOCK config..."### Select THP- if [ "$_hugepage" = "always" ]; then- echo "Enable THP always..."- scripts/config -d TRANSPARENT_HUGEPAGE_MADVISE \- -e TRANSPARENT_HUGEPAGE_ALWAYS- elif [ "$_hugepage" = "madvise" ]; then- echo "Enable THP madvise..."- scripts/config -d TRANSPARENT_HUGEPAGE_ALWAYS \- -e TRANSPARENT_HUGEPAGE_MADVISE- else- if [ -n "$_hugepage" ]; then- error "The value $_hugepage is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Setting THP has failed!"- fi+ [ -z "$_hugepage" ] && _die "The value is empty. Choose the correct one again."++ case "$_hugepage" in+ always) scripts/config -d TRANSPARENT_HUGEPAGE_MADVISE -e TRANSPARENT_HUGEPAGE_ALWAYS;;+ madvise) scripts/config -d TRANSPARENT_HUGEPAGE_ALWAYS -e TRANSPARENT_HUGEPAGE_MADVISE;;+ *) _die "The value $_hugepage is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_hugepage TRANSPARENT_HUGEPAGE config..."### Enable DAMONif [ -n "$_damon" ]; then@@ -695,25 +624,15 @@ prepare() {fi### Selecting the ZSTD modules and kernel compression level- if [ "$_zstd_level_value" = "ultra" ]; then- echo "Enabling highest ZSTD modules and kernel compression ratio..."- scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 19 \- -e MODULE_COMPRESS_ZSTD_ULTRA \- --set-val MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 \- --set-val ZSTD_COMP_VAL 22- elif [ "$_zstd_level_value" = "normal" ]; then- echo "Enabling standard ZSTD modules and kernel compression ratio..."- scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 9 \- -d MODULE_COMPRESS_ZSTD_ULTRA \- --set-val 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- _die "Selecting the ZSTD modules and kernel compression level failed!"- fi+ [ -z "$_zstd_level_value" ] && _die "The value is empty. Choose the correct one again."++ case "$_zstd_level_value" in+ ultra) scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 19 -e MODULE_COMPRESS_ZSTD_ULTRA --set-val MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 --set-val ZSTD_COMP_VAL 22;;+ normal) scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 9 -d MODULE_COMPRESS_ZSTD_ULTRA --set-val ZSTD_COMP_VAL 19;;+ *) _die "The value $_zstd_level_value is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_zstd_level_value ZSTD modules and kernel compression level..."### Disable DEBUGif [ -n "$_disable_debug" ]; thendiff --git a/linux-cachyos-server/.SRCINFO b/linux-cachyos-server/.SRCINFOindex d8b3d800..f75ebec6 100644--- a/linux-cachyos-server/.SRCINFO+++ b/linux-cachyos-server/.SRCINFO@@ -1,5 +1,5 @@# Generated by makepkg 6.0.2-# Wed Feb 1 16:09:12 UTC 2023+# Wed Feb 1 21:03:24 UTC 2023pkgbase = linux-cachyos-serverpkgdesc = Linux CFS scheduler Kernel by CachyOS targeted for Serverspkgver = 6.1.9diff --git a/linux-cachyos-server/PKGBUILD b/linux-cachyos-server/PKGBUILDindex f1b28338..d6839e02 100644--- a/linux-cachyos-server/PKGBUILD+++ b/linux-cachyos-server/PKGBUILD@@ -311,6 +311,9 @@ prepare() {echo "Setting config..."cp ../config .config+ echo "Setting config..."+ cp ../config .config+### Select CPU optimizationif [ -n "$_processor_opt" ]; thenMARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)@@ -425,7 +428,7 @@ prepare() {scripts/config --set-val NR_CPUS "$_nr_cpus"elseecho "Setting default NR_CPUS..."- scripts/config --set-val NR_CPUS 512+ scripts/config --set-val NR_CPUS 320fi### Disable MQ Deadline I/O scheduler@@ -448,75 +451,28 @@ prepare() {fi### Select tick type- if [ "$_tickrate" = "periodic" ]; then- echo "Enabling periodic ticks..."- scripts/config -d NO_HZ_IDLE \- -d NO_HZ_FULL \- -d NO_HZ \- -d NO_HZ_COMMON \- -e HZ_PERIODIC- elif [ "$_tickrate" = "idle" ]; then- echo "Enabling idle ticks.."- scripts/config -d HZ_PERIODIC \- -d NO_HZ_FULL \- -e NO_HZ_IDLE \- -e NO_HZ \- -e NO_HZ_COMMON- elif [ "$_tickrate" = "full" ]; then- echo "Enabling full ticks..."- scripts/config -d HZ_PERIODIC \- -d NO_HZ_IDLE \- -d CONTEXT_TRACKING_FORCE \- -e NO_HZ_FULL_NODEF \- -e NO_HZ_FULL \- -e NO_HZ \- -e NO_HZ_COMMON \- -e CONTEXT_TRACKING- else- if [ -n "$_tickrate" ]; then- error "The value $_tickrate is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Selecting the tick rate failed!"- fi+ [ -z "$_tickrate" ] && _die "The value is empty. Choose the correct one again."++ case "$_tickrate" in+ perodic) scripts/config -d NO_HZ_IDLE -d NO_HZ_FULL -d NO_HZ -d NO_HZ_COMMON -e HZ_PERIODIC;;+ idle) scripts/config -d HZ_PERIODIC -d NO_HZ_FULL -e NO_HZ_IDLE -e NO_HZ -e NO_HZ_COMMON;;+ full) scripts/config -d HZ_PERIODIC -d NO_HZ_IDLE -d CONTEXT_TRACKING_FORCE -e NO_HZ_FULL_NODEF -e NO_HZ_FULL -e NO_HZ -e NO_HZ_COMMON -e CONTEXT_TRACKING;;+ *) _die "The value $_tickrate is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_tickrate tick type..."### Select preempt type- if [ "$_preempt" = "full" ]; then- echo "Enabling low latency preempt..."- scripts/config -e PREEMPT_BUILD \- -d PREEMPT_NONE \- -d PREEMPT_VOLUNTARY \- -e PREEMPT \- -e PREEMPT_COUNT \- -e PREEMPTION \- -e PREEMPT_DYNAMIC- elif [ "$_preempt" = "voluntary" ]; then- echo "Enabling voluntary preempt..."- scripts/config -e PREEMPT_BUILD \- -d PREEMPT_NONE \- -e PREEMPT_VOLUNTARY \- -d PREEMPT \- -e PREEMPT_COUNT \- -e PREEMPTION \- -d PREEMPT_DYNAMIC- elif [ "$_preempt" = "server" ]; then- echo "Enabling server preempt..."- scripts/config -e PREEMPT_NONE_BUILD \- -e PREEMPT_NONE \- -d PREEMPT_VOLUNTARY \- -d PREEMPT \- -d PREEMPT_COUNT \- -d PREEMPTION \- -d PREEMPT_DYNAMIC- else- if [ -n "$_preempt" ]; then- error "The value $_preempt is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Selecting PREEMPT failed!"- fi+ [ -z "$_preempt" ] && _die "The value is empty. Choose the correct one again."++ case "$_preempt" in+ full) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -d PREEMPT_VOLUNTARY -e PREEMPT -e PREEMPT_COUNT -e PREEMPTION -e PREEMPT_DYNAMIC;;+ voluntary) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -e PREEMPT_VOLUNTARY -d PREEMPT -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_DYNAMIC;;+ server) scripts/config -e PREEMPT_NONE_BUILD -e PREEMPT_NONE -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPTION -d PREEMPT_DYNAMIC;;+ *) _die "The value $_preempt is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_preempt preempt type..."### Enable O3if [ -n "$_cc_harder" ]; then@@ -536,66 +492,39 @@ prepare() {fi### Select LRU config- if [ "$_lru_config" = "standard" ]; then- echo "Enabling multigenerational LRU..."- scripts/config -e LRU_GEN \- -e LRU_GEN_ENABLED \- -d LRU_GEN_STATS- elif [ "$_lru_config" = "stats" ]; then- echo "Enabling multigenerational LRU with stats..."- scripts/config -e LRU_GEN \- -e LRU_GEN_ENABLED \- -e LRU_GEN_STATS- elif [ "$_lru_config" = "none" ]; then- echo "Disabling multigenerational LRU..."- scripts/config -d LRU_GEN- else- if [ -n "$_lru_config" ]; then- error "The value $_lru_config is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Enabling multigenerational LRU failed!"- fi+ [ -z "$_lru_config" ] && _die "The value is empty. Choose the correct one again."++ case "$_lru_config" in+ standard) scripts/config -e LRU_GEN -e LRU_GEN_ENABLED -d LRU_GEN_STATS;;+ stats) scripts/config -e LRU_GEN -e LRU_GEN_ENABLED -e LRU_GEN_STATS;;+ none) scripts/config -d LRU_GEN;;+ *) _die "The value $_lru_config is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_lru_config LRU_GEN config..."### Select VMA config- if [ "$_vma_config" = "standard" ]; then- echo "Enabling per-VMA locking..."- scripts/config -e PER_VMA_LOCK \- -d PER_VMA_LOCK_STATS- elif [ "$_vma_config" = "stats" ]; then- echo "Enabling per-VMA locking with stats..."- scripts/config -e PER_VMA_LOCK \- -e PER_VMA_LOCK_STATS- elif [ "$_vma_config" = "none" ]; then- echo "Disabling per-VMA locking..."- scripts/config -d PER_VMA_LOCK- else- if [ -n "$_vma_config" ]; then- error "The value $_vma_config is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Enabling per-VMA locking failed!"- fi+ [ -z "$_vma_config" ] && _die "The value is empty. Choose the correct one again."++ case "$_vma_config" in+ standard) scripts/config -e PER_VMA_LOCK -d PER_VMA_LOCK_STATS;;+ stats) scripts/config -e PER_VMA_LOCK -e PER_VMA_LOCK_STATS;;+ none) scripts/config -d PER_VMA_LOCK;;+ *) _die "The value $_vma_config is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_vma_config PER_VMA_LOCK config..."### Select THP- if [ "$_hugepage" = "always" ]; then- echo "Enable THP always..."- scripts/config -d TRANSPARENT_HUGEPAGE_MADVISE \- -e TRANSPARENT_HUGEPAGE_ALWAYS- elif [ "$_hugepage" = "madvise" ]; then- echo "Enable THP madvise..."- scripts/config -d TRANSPARENT_HUGEPAGE_ALWAYS \- -e TRANSPARENT_HUGEPAGE_MADVISE- else- if [ -n "$_hugepage" ]; then- error "The value $_hugepage is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Setting THP has failed!"- fi+ [ -z "$_hugepage" ] && _die "The value is empty. Choose the correct one again."++ case "$_hugepage" in+ always) scripts/config -d TRANSPARENT_HUGEPAGE_MADVISE -e TRANSPARENT_HUGEPAGE_ALWAYS;;+ madvise) scripts/config -d TRANSPARENT_HUGEPAGE_ALWAYS -e TRANSPARENT_HUGEPAGE_MADVISE;;+ *) _die "The value $_hugepage is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_hugepage TRANSPARENT_HUGEPAGE config..."### Enable DAMONif [ -n "$_damon" ]; then@@ -695,25 +624,15 @@ prepare() {fi### Selecting the ZSTD modules and kernel compression level- if [ "$_zstd_level_value" = "ultra" ]; then- echo "Enabling highest ZSTD modules and kernel compression ratio..."- scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 19 \- -e MODULE_COMPRESS_ZSTD_ULTRA \- --set-val MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 \- --set-val ZSTD_COMP_VAL 22- elif [ "$_zstd_level_value" = "normal" ]; then- echo "Enabling standard ZSTD modules and kernel compression ratio..."- scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 9 \- -d MODULE_COMPRESS_ZSTD_ULTRA \- --set-val 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- _die "Selecting the ZSTD modules and kernel compression level failed!"- fi+ [ -z "$_zstd_level_value" ] && _die "The value is empty. Choose the correct one again."++ case "$_zstd_level_value" in+ ultra) scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 19 -e MODULE_COMPRESS_ZSTD_ULTRA --set-val MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 --set-val ZSTD_COMP_VAL 22;;+ normal) scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 9 -d MODULE_COMPRESS_ZSTD_ULTRA --set-val ZSTD_COMP_VAL 19;;+ *) _die "The value $_zstd_level_value is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_zstd_level_value ZSTD modules and kernel compression level..."### Disable DEBUGif [ -n "$_disable_debug" ]; thendiff --git a/linux-cachyos-tt/.SRCINFO b/linux-cachyos-tt/.SRCINFOindex 4eac8dd6..797a952c 100644--- a/linux-cachyos-tt/.SRCINFO+++ b/linux-cachyos-tt/.SRCINFO@@ -1,5 +1,5 @@# Generated by makepkg 6.0.2-# Wed Feb 1 16:08:41 UTC 2023+# Wed Feb 1 21:02:59 UTC 2023pkgbase = linux-cachyos-ttpkgdesc = Linux TT scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.9diff --git a/linux-cachyos-tt/PKGBUILD b/linux-cachyos-tt/PKGBUILDindex 1dabb3a0..c27bc24e 100644--- a/linux-cachyos-tt/PKGBUILD+++ b/linux-cachyos-tt/PKGBUILD@@ -311,6 +311,9 @@ prepare() {echo "Setting config..."cp ../config .config+ echo "Setting config..."+ cp ../config .config+### Select CPU optimizationif [ -n "$_processor_opt" ]; thenMARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)@@ -448,75 +451,28 @@ prepare() {fi### Select tick type- if [ "$_tickrate" = "periodic" ]; then- echo "Enabling periodic ticks..."- scripts/config -d NO_HZ_IDLE \- -d NO_HZ_FULL \- -d NO_HZ \- -d NO_HZ_COMMON \- -e HZ_PERIODIC- elif [ "$_tickrate" = "idle" ]; then- echo "Enabling idle ticks.."- scripts/config -d HZ_PERIODIC \- -d NO_HZ_FULL \- -e NO_HZ_IDLE \- -e NO_HZ \- -e NO_HZ_COMMON- elif [ "$_tickrate" = "full" ]; then- echo "Enabling full ticks..."- scripts/config -d HZ_PERIODIC \- -d NO_HZ_IDLE \- -d CONTEXT_TRACKING_FORCE \- -e NO_HZ_FULL_NODEF \- -e NO_HZ_FULL \- -e NO_HZ \- -e NO_HZ_COMMON \- -e CONTEXT_TRACKING- else- if [ -n "$_tickrate" ]; then- error "The value $_tickrate is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Selecting the tick rate failed!"- fi+ [ -z "$_tickrate" ] && _die "The value is empty. Choose the correct one again."++ case "$_tickrate" in+ perodic) scripts/config -d NO_HZ_IDLE -d NO_HZ_FULL -d NO_HZ -d NO_HZ_COMMON -e HZ_PERIODIC;;+ idle) scripts/config -d HZ_PERIODIC -d NO_HZ_FULL -e NO_HZ_IDLE -e NO_HZ -e NO_HZ_COMMON;;+ full) scripts/config -d HZ_PERIODIC -d NO_HZ_IDLE -d CONTEXT_TRACKING_FORCE -e NO_HZ_FULL_NODEF -e NO_HZ_FULL -e NO_HZ -e NO_HZ_COMMON -e CONTEXT_TRACKING;;+ *) _die "The value $_tickrate is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_tickrate tick type..."### Select preempt type- if [ "$_preempt" = "full" ]; then- echo "Enabling low latency preempt..."- scripts/config -e PREEMPT_BUILD \- -d PREEMPT_NONE \- -d PREEMPT_VOLUNTARY \- -e PREEMPT \- -e PREEMPT_COUNT \- -e PREEMPTION \- -e PREEMPT_DYNAMIC- elif [ "$_preempt" = "voluntary" ]; then- echo "Enabling voluntary preempt..."- scripts/config -e PREEMPT_BUILD \- -d PREEMPT_NONE \- -e PREEMPT_VOLUNTARY \- -d PREEMPT \- -e PREEMPT_COUNT \- -e PREEMPTION \- -d PREEMPT_DYNAMIC- elif [ "$_preempt" = "server" ]; then- echo "Enabling server preempt..."- scripts/config -e PREEMPT_NONE_BUILD \- -e PREEMPT_NONE \- -d PREEMPT_VOLUNTARY \- -d PREEMPT \- -d PREEMPT_COUNT \- -d PREEMPTION \- -d PREEMPT_DYNAMIC- else- if [ -n "$_preempt" ]; then- error "The value $_preempt is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Selecting PREEMPT failed!"- fi+ [ -z "$_preempt" ] && _die "The value is empty. Choose the correct one again."++ case "$_preempt" in+ full) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -d PREEMPT_VOLUNTARY -e PREEMPT -e PREEMPT_COUNT -e PREEMPTION -e PREEMPT_DYNAMIC;;+ voluntary) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -e PREEMPT_VOLUNTARY -d PREEMPT -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_DYNAMIC;;+ server) scripts/config -e PREEMPT_NONE_BUILD -e PREEMPT_NONE -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPTION -d PREEMPT_DYNAMIC;;+ *) _die "The value $_preempt is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_preempt preempt type..."### Enable O3if [ -n "$_cc_harder" ]; then@@ -536,66 +492,39 @@ prepare() {fi### Select LRU config- if [ "$_lru_config" = "standard" ]; then- echo "Enabling multigenerational LRU..."- scripts/config -e LRU_GEN \- -e LRU_GEN_ENABLED \- -d LRU_GEN_STATS- elif [ "$_lru_config" = "stats" ]; then- echo "Enabling multigenerational LRU with stats..."- scripts/config -e LRU_GEN \- -e LRU_GEN_ENABLED \- -e LRU_GEN_STATS- elif [ "$_lru_config" = "none" ]; then- echo "Disabling multigenerational LRU..."- scripts/config -d LRU_GEN- else- if [ -n "$_lru_config" ]; then- error "The value $_lru_config is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Enabling multigenerational LRU failed!"- fi+ [ -z "$_lru_config" ] && _die "The value is empty. Choose the correct one again."++ case "$_lru_config" in+ standard) scripts/config -e LRU_GEN -e LRU_GEN_ENABLED -d LRU_GEN_STATS;;+ stats) scripts/config -e LRU_GEN -e LRU_GEN_ENABLED -e LRU_GEN_STATS;;+ none) scripts/config -d LRU_GEN;;+ *) _die "The value $_lru_config is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_lru_config LRU_GEN config..."### Select VMA config- if [ "$_vma_config" = "standard" ]; then- echo "Enabling per-VMA locking..."- scripts/config -e PER_VMA_LOCK \- -d PER_VMA_LOCK_STATS- elif [ "$_vma_config" = "stats" ]; then- echo "Enabling per-VMA locking with stats..."- scripts/config -e PER_VMA_LOCK \- -e PER_VMA_LOCK_STATS- elif [ "$_vma_config" = "none" ]; then- echo "Disabling per-VMA locking..."- scripts/config -d PER_VMA_LOCK- else- if [ -n "$_vma_config" ]; then- error "The value $_vma_config is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Enabling per-VMA locking failed!"- fi+ [ -z "$_vma_config" ] && _die "The value is empty. Choose the correct one again."++ case "$_vma_config" in+ standard) scripts/config -e PER_VMA_LOCK -d PER_VMA_LOCK_STATS;;+ stats) scripts/config -e PER_VMA_LOCK -e PER_VMA_LOCK_STATS;;+ none) scripts/config -d PER_VMA_LOCK;;+ *) _die "The value $_vma_config is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_vma_config PER_VMA_LOCK config..."### Select THP- if [ "$_hugepage" = "always" ]; then- echo "Enable THP always..."- scripts/config -d TRANSPARENT_HUGEPAGE_MADVISE \- -e TRANSPARENT_HUGEPAGE_ALWAYS- elif [ "$_hugepage" = "madvise" ]; then- echo "Enable THP madvise..."- scripts/config -d TRANSPARENT_HUGEPAGE_ALWAYS \- -e TRANSPARENT_HUGEPAGE_MADVISE- else- if [ -n "$_hugepage" ]; then- error "The value $_hugepage is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Setting THP has failed!"- fi+ [ -z "$_hugepage" ] && _die "The value is empty. Choose the correct one again."++ case "$_hugepage" in+ always) scripts/config -d TRANSPARENT_HUGEPAGE_MADVISE -e TRANSPARENT_HUGEPAGE_ALWAYS;;+ madvise) scripts/config -d TRANSPARENT_HUGEPAGE_ALWAYS -e TRANSPARENT_HUGEPAGE_MADVISE;;+ *) _die "The value $_hugepage is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_hugepage TRANSPARENT_HUGEPAGE config..."### Enable DAMONif [ -n "$_damon" ]; then@@ -695,25 +624,15 @@ prepare() {fi### Selecting the ZSTD modules and kernel compression level- if [ "$_zstd_level_value" = "ultra" ]; then- echo "Enabling highest ZSTD modules and kernel compression ratio..."- scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 19 \- -e MODULE_COMPRESS_ZSTD_ULTRA \- --set-val MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 \- --set-val ZSTD_COMP_VAL 22- elif [ "$_zstd_level_value" = "normal" ]; then- echo "Enabling standard ZSTD modules and kernel compression ratio..."- scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 9 \- -d MODULE_COMPRESS_ZSTD_ULTRA \- --set-val 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- _die "Selecting the ZSTD modules and kernel compression level failed!"- fi+ [ -z "$_zstd_level_value" ] && _die "The value is empty. Choose the correct one again."++ case "$_zstd_level_value" in+ ultra) scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 19 -e MODULE_COMPRESS_ZSTD_ULTRA --set-val MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 --set-val ZSTD_COMP_VAL 22;;+ normal) scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 9 -d MODULE_COMPRESS_ZSTD_ULTRA --set-val ZSTD_COMP_VAL 19;;+ *) _die "The value $_zstd_level_value is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_zstd_level_value ZSTD modules and kernel compression level..."### Disable DEBUGif [ -n "$_disable_debug" ]; thendiff --git a/linux-cachyos/.SRCINFO b/linux-cachyos/.SRCINFOindex 7edcbf92..d9e87e10 100644--- a/linux-cachyos/.SRCINFO+++ b/linux-cachyos/.SRCINFO@@ -1,5 +1,5 @@# Generated by makepkg 6.0.2-# Wed Feb 1 16:06:20 UTC 2023+# Wed Feb 1 21:00:52 UTC 2023pkgbase = linux-cachyospkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.9diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILDindex 8e458462..2a9c276b 100644--- a/linux-cachyos/PKGBUILD+++ b/linux-cachyos/PKGBUILD@@ -311,6 +311,9 @@ prepare() {echo "Setting config..."cp ../config .config+ echo "Setting config..."+ cp ../config .config+### Select CPU optimizationif [ -n "$_processor_opt" ]; thenMARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)@@ -448,75 +451,28 @@ prepare() {fi### Select tick type- if [ "$_tickrate" = "periodic" ]; then- echo "Enabling periodic ticks..."- scripts/config -d NO_HZ_IDLE \- -d NO_HZ_FULL \- -d NO_HZ \- -d NO_HZ_COMMON \- -e HZ_PERIODIC- elif [ "$_tickrate" = "idle" ]; then- echo "Enabling idle ticks.."- scripts/config -d HZ_PERIODIC \- -d NO_HZ_FULL \- -e NO_HZ_IDLE \- -e NO_HZ \- -e NO_HZ_COMMON- elif [ "$_tickrate" = "full" ]; then- echo "Enabling full ticks..."- scripts/config -d HZ_PERIODIC \- -d NO_HZ_IDLE \- -d CONTEXT_TRACKING_FORCE \- -e NO_HZ_FULL_NODEF \- -e NO_HZ_FULL \- -e NO_HZ \- -e NO_HZ_COMMON \- -e CONTEXT_TRACKING- else- if [ -n "$_tickrate" ]; then- error "The value $_tickrate is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Selecting the tick rate failed!"- fi+ [ -z "$_tickrate" ] && _die "The value is empty. Choose the correct one again."++ case "$_tickrate" in+ perodic) scripts/config -d NO_HZ_IDLE -d NO_HZ_FULL -d NO_HZ -d NO_HZ_COMMON -e HZ_PERIODIC;;+ idle) scripts/config -d HZ_PERIODIC -d NO_HZ_FULL -e NO_HZ_IDLE -e NO_HZ -e NO_HZ_COMMON;;+ full) scripts/config -d HZ_PERIODIC -d NO_HZ_IDLE -d CONTEXT_TRACKING_FORCE -e NO_HZ_FULL_NODEF -e NO_HZ_FULL -e NO_HZ -e NO_HZ_COMMON -e CONTEXT_TRACKING;;+ *) _die "The value $_tickrate is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_tickrate tick type..."### Select preempt type- if [ "$_preempt" = "full" ]; then- echo "Enabling low latency preempt..."- scripts/config -e PREEMPT_BUILD \- -d PREEMPT_NONE \- -d PREEMPT_VOLUNTARY \- -e PREEMPT \- -e PREEMPT_COUNT \- -e PREEMPTION \- -e PREEMPT_DYNAMIC- elif [ "$_preempt" = "voluntary" ]; then- echo "Enabling voluntary preempt..."- scripts/config -e PREEMPT_BUILD \- -d PREEMPT_NONE \- -e PREEMPT_VOLUNTARY \- -d PREEMPT \- -e PREEMPT_COUNT \- -e PREEMPTION \- -d PREEMPT_DYNAMIC- elif [ "$_preempt" = "server" ]; then- echo "Enabling server preempt..."- scripts/config -e PREEMPT_NONE_BUILD \- -e PREEMPT_NONE \- -d PREEMPT_VOLUNTARY \- -d PREEMPT \- -d PREEMPT_COUNT \- -d PREEMPTION \- -d PREEMPT_DYNAMIC- else- if [ -n "$_preempt" ]; then- error "The value $_preempt is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Selecting PREEMPT failed!"- fi+ [ -z "$_preempt" ] && _die "The value is empty. Choose the correct one again."++ case "$_preempt" in+ full) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -d PREEMPT_VOLUNTARY -e PREEMPT -e PREEMPT_COUNT -e PREEMPTION -e PREEMPT_DYNAMIC;;+ voluntary) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -e PREEMPT_VOLUNTARY -d PREEMPT -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_DYNAMIC;;+ server) scripts/config -e PREEMPT_NONE_BUILD -e PREEMPT_NONE -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPTION -d PREEMPT_DYNAMIC;;+ *) _die "The value $_preempt is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_preempt preempt type..."### Enable O3if [ -n "$_cc_harder" ]; then@@ -536,66 +492,39 @@ prepare() {fi### Select LRU config- if [ "$_lru_config" = "standard" ]; then- echo "Enabling multigenerational LRU..."- scripts/config -e LRU_GEN \- -e LRU_GEN_ENABLED \- -d LRU_GEN_STATS- elif [ "$_lru_config" = "stats" ]; then- echo "Enabling multigenerational LRU with stats..."- scripts/config -e LRU_GEN \- -e LRU_GEN_ENABLED \- -e LRU_GEN_STATS- elif [ "$_lru_config" = "none" ]; then- echo "Disabling multigenerational LRU..."- scripts/config -d LRU_GEN- else- if [ -n "$_lru_config" ]; then- error "The value $_lru_config is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Enabling multigenerational LRU failed!"- fi+ [ -z "$_lru_config" ] && _die "The value is empty. Choose the correct one again."++ case "$_lru_config" in+ standard) scripts/config -e LRU_GEN -e LRU_GEN_ENABLED -d LRU_GEN_STATS;;+ stats) scripts/config -e LRU_GEN -e LRU_GEN_ENABLED -e LRU_GEN_STATS;;+ none) scripts/config -d LRU_GEN;;+ *) _die "The value $_lru_config is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_lru_config LRU_GEN config..."### Select VMA config- if [ "$_vma_config" = "standard" ]; then- echo "Enabling per-VMA locking..."- scripts/config -e PER_VMA_LOCK \- -d PER_VMA_LOCK_STATS- elif [ "$_vma_config" = "stats" ]; then- echo "Enabling per-VMA locking with stats..."- scripts/config -e PER_VMA_LOCK \- -e PER_VMA_LOCK_STATS- elif [ "$_vma_config" = "none" ]; then- echo "Disabling per-VMA locking..."- scripts/config -d PER_VMA_LOCK- else- if [ -n "$_vma_config" ]; then- error "The value $_vma_config is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Enabling per-VMA locking failed!"- fi+ [ -z "$_vma_config" ] && _die "The value is empty. Choose the correct one again."++ case "$_vma_config" in+ standard) scripts/config -e PER_VMA_LOCK -d PER_VMA_LOCK_STATS;;+ stats) scripts/config -e PER_VMA_LOCK -e PER_VMA_LOCK_STATS;;+ none) scripts/config -d PER_VMA_LOCK;;+ *) _die "The value $_vma_config is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_vma_config PER_VMA_LOCK config..."### Select THP- if [ "$_hugepage" = "always" ]; then- echo "Enable THP always..."- scripts/config -d TRANSPARENT_HUGEPAGE_MADVISE \- -e TRANSPARENT_HUGEPAGE_ALWAYS- elif [ "$_hugepage" = "madvise" ]; then- echo "Enable THP madvise..."- scripts/config -d TRANSPARENT_HUGEPAGE_ALWAYS \- -e TRANSPARENT_HUGEPAGE_MADVISE- else- if [ -n "$_hugepage" ]; then- error "The value $_hugepage is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Setting THP has failed!"- fi+ [ -z "$_hugepage" ] && _die "The value is empty. Choose the correct one again."++ case "$_hugepage" in+ always) scripts/config -d TRANSPARENT_HUGEPAGE_MADVISE -e TRANSPARENT_HUGEPAGE_ALWAYS;;+ madvise) scripts/config -d TRANSPARENT_HUGEPAGE_ALWAYS -e TRANSPARENT_HUGEPAGE_MADVISE;;+ *) _die "The value $_hugepage is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_hugepage TRANSPARENT_HUGEPAGE config..."### Enable DAMONif [ -n "$_damon" ]; then@@ -695,25 +624,15 @@ prepare() {fi### Selecting the ZSTD modules and kernel compression level- if [ "$_zstd_level_value" = "ultra" ]; then- echo "Enabling highest ZSTD modules and kernel compression ratio..."- scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 19 \- -e MODULE_COMPRESS_ZSTD_ULTRA \- --set-val MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 \- --set-val ZSTD_COMP_VAL 22- elif [ "$_zstd_level_value" = "normal" ]; then- echo "Enabling standard ZSTD modules and kernel compression ratio..."- scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 9 \- -d MODULE_COMPRESS_ZSTD_ULTRA \- --set-val 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- _die "Selecting the ZSTD modules and kernel compression level failed!"- fi+ [ -z "$_zstd_level_value" ] && _die "The value is empty. Choose the correct one again."++ case "$_zstd_level_value" in+ ultra) scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 19 -e MODULE_COMPRESS_ZSTD_ULTRA --set-val MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 --set-val ZSTD_COMP_VAL 22;;+ normal) scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 9 -d MODULE_COMPRESS_ZSTD_ULTRA --set-val ZSTD_COMP_VAL 19;;+ *) _die "The value $_zstd_level_value is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_zstd_level_value ZSTD modules and kernel compression level..."### Disable DEBUGif [ -n "$_disable_debug" ]; thendiff --git a/linux-tt/.SRCINFO b/linux-tt/.SRCINFOindex 1ccb2f10..a5935a28 100644--- a/linux-tt/.SRCINFO+++ b/linux-tt/.SRCINFO@@ -1,5 +1,5 @@# Generated by makepkg 6.0.2-# Wed Feb 1 16:08:56 UTC 2023+# Wed Feb 1 21:03:11 UTC 2023pkgbase = linux-ttpkgdesc = Linux TT scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.9diff --git a/linux-tt/PKGBUILD b/linux-tt/PKGBUILDindex 74ea677f..7d258f7b 100644--- a/linux-tt/PKGBUILD+++ b/linux-tt/PKGBUILD@@ -311,6 +311,9 @@ prepare() {echo "Setting config..."cp ../config .config+ echo "Setting config..."+ cp ../config .config+### Select CPU optimizationif [ -n "$_processor_opt" ]; thenMARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)@@ -448,75 +451,28 @@ prepare() {fi### Select tick type- if [ "$_tickrate" = "periodic" ]; then- echo "Enabling periodic ticks..."- scripts/config -d NO_HZ_IDLE \- -d NO_HZ_FULL \- -d NO_HZ \- -d NO_HZ_COMMON \- -e HZ_PERIODIC- elif [ "$_tickrate" = "idle" ]; then- echo "Enabling idle ticks.."- scripts/config -d HZ_PERIODIC \- -d NO_HZ_FULL \- -e NO_HZ_IDLE \- -e NO_HZ \- -e NO_HZ_COMMON- elif [ "$_tickrate" = "full" ]; then- echo "Enabling full ticks..."- scripts/config -d HZ_PERIODIC \- -d NO_HZ_IDLE \- -d CONTEXT_TRACKING_FORCE \- -e NO_HZ_FULL_NODEF \- -e NO_HZ_FULL \- -e NO_HZ \- -e NO_HZ_COMMON \- -e CONTEXT_TRACKING- else- if [ -n "$_tickrate" ]; then- error "The value $_tickrate is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Selecting the tick rate failed!"- fi+ [ -z "$_tickrate" ] && _die "The value is empty. Choose the correct one again."++ case "$_tickrate" in+ perodic) scripts/config -d NO_HZ_IDLE -d NO_HZ_FULL -d NO_HZ -d NO_HZ_COMMON -e HZ_PERIODIC;;+ idle) scripts/config -d HZ_PERIODIC -d NO_HZ_FULL -e NO_HZ_IDLE -e NO_HZ -e NO_HZ_COMMON;;+ full) scripts/config -d HZ_PERIODIC -d NO_HZ_IDLE -d CONTEXT_TRACKING_FORCE -e NO_HZ_FULL_NODEF -e NO_HZ_FULL -e NO_HZ -e NO_HZ_COMMON -e CONTEXT_TRACKING;;+ *) _die "The value $_tickrate is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_tickrate tick type..."### Select preempt type- if [ "$_preempt" = "full" ]; then- echo "Enabling low latency preempt..."- scripts/config -e PREEMPT_BUILD \- -d PREEMPT_NONE \- -d PREEMPT_VOLUNTARY \- -e PREEMPT \- -e PREEMPT_COUNT \- -e PREEMPTION \- -e PREEMPT_DYNAMIC- elif [ "$_preempt" = "voluntary" ]; then- echo "Enabling voluntary preempt..."- scripts/config -e PREEMPT_BUILD \- -d PREEMPT_NONE \- -e PREEMPT_VOLUNTARY \- -d PREEMPT \- -e PREEMPT_COUNT \- -e PREEMPTION \- -d PREEMPT_DYNAMIC- elif [ "$_preempt" = "server" ]; then- echo "Enabling server preempt..."- scripts/config -e PREEMPT_NONE_BUILD \- -e PREEMPT_NONE \- -d PREEMPT_VOLUNTARY \- -d PREEMPT \- -d PREEMPT_COUNT \- -d PREEMPTION \- -d PREEMPT_DYNAMIC- else- if [ -n "$_preempt" ]; then- error "The value $_preempt is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Selecting PREEMPT failed!"- fi+ [ -z "$_preempt" ] && _die "The value is empty. Choose the correct one again."++ case "$_preempt" in+ full) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -d PREEMPT_VOLUNTARY -e PREEMPT -e PREEMPT_COUNT -e PREEMPTION -e PREEMPT_DYNAMIC;;+ voluntary) scripts/config -e PREEMPT_BUILD -d PREEMPT_NONE -e PREEMPT_VOLUNTARY -d PREEMPT -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_DYNAMIC;;+ server) scripts/config -e PREEMPT_NONE_BUILD -e PREEMPT_NONE -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPTION -d PREEMPT_DYNAMIC;;+ *) _die "The value $_preempt is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_preempt preempt type..."### Enable O3if [ -n "$_cc_harder" ]; then@@ -536,66 +492,39 @@ prepare() {fi### Select LRU config- if [ "$_lru_config" = "standard" ]; then- echo "Enabling multigenerational LRU..."- scripts/config -e LRU_GEN \- -e LRU_GEN_ENABLED \- -d LRU_GEN_STATS- elif [ "$_lru_config" = "stats" ]; then- echo "Enabling multigenerational LRU with stats..."- scripts/config -e LRU_GEN \- -e LRU_GEN_ENABLED \- -e LRU_GEN_STATS- elif [ "$_lru_config" = "none" ]; then- echo "Disabling multigenerational LRU..."- scripts/config -d LRU_GEN- else- if [ -n "$_lru_config" ]; then- error "The value $_lru_config is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Enabling multigenerational LRU failed!"- fi+ [ -z "$_lru_config" ] && _die "The value is empty. Choose the correct one again."++ case "$_lru_config" in+ standard) scripts/config -e LRU_GEN -e LRU_GEN_ENABLED -d LRU_GEN_STATS;;+ stats) scripts/config -e LRU_GEN -e LRU_GEN_ENABLED -e LRU_GEN_STATS;;+ none) scripts/config -d LRU_GEN;;+ *) _die "The value $_lru_config is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_lru_config LRU_GEN config..."### Select VMA config- if [ "$_vma_config" = "standard" ]; then- echo "Enabling per-VMA locking..."- scripts/config -e PER_VMA_LOCK \- -d PER_VMA_LOCK_STATS- elif [ "$_vma_config" = "stats" ]; then- echo "Enabling per-VMA locking with stats..."- scripts/config -e PER_VMA_LOCK \- -e PER_VMA_LOCK_STATS- elif [ "$_vma_config" = "none" ]; then- echo "Disabling per-VMA locking..."- scripts/config -d PER_VMA_LOCK- else- if [ -n "$_vma_config" ]; then- error "The value $_vma_config is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Enabling per-VMA locking failed!"- fi+ [ -z "$_vma_config" ] && _die "The value is empty. Choose the correct one again."++ case "$_vma_config" in+ standard) scripts/config -e PER_VMA_LOCK -d PER_VMA_LOCK_STATS;;+ stats) scripts/config -e PER_VMA_LOCK -e PER_VMA_LOCK_STATS;;+ none) scripts/config -d PER_VMA_LOCK;;+ *) _die "The value $_vma_config is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_vma_config PER_VMA_LOCK config..."### Select THP- if [ "$_hugepage" = "always" ]; then- echo "Enable THP always..."- scripts/config -d TRANSPARENT_HUGEPAGE_MADVISE \- -e TRANSPARENT_HUGEPAGE_ALWAYS- elif [ "$_hugepage" = "madvise" ]; then- echo "Enable THP madvise..."- scripts/config -d TRANSPARENT_HUGEPAGE_ALWAYS \- -e TRANSPARENT_HUGEPAGE_MADVISE- else- if [ -n "$_hugepage" ]; then- error "The value $_hugepage is invalid. Choose the correct one again."- else- error "The value is empty. Choose the correct one again."- fi- _die "Setting THP has failed!"- fi+ [ -z "$_hugepage" ] && _die "The value is empty. Choose the correct one again."++ case "$_hugepage" in+ always) scripts/config -d TRANSPARENT_HUGEPAGE_MADVISE -e TRANSPARENT_HUGEPAGE_ALWAYS;;+ madvise) scripts/config -d TRANSPARENT_HUGEPAGE_ALWAYS -e TRANSPARENT_HUGEPAGE_MADVISE;;+ *) _die "The value $_hugepage is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_hugepage TRANSPARENT_HUGEPAGE config..."### Enable DAMONif [ -n "$_damon" ]; then@@ -695,25 +624,15 @@ prepare() {fi### Selecting the ZSTD modules and kernel compression level- if [ "$_zstd_level_value" = "ultra" ]; then- echo "Enabling highest ZSTD modules and kernel compression ratio..."- scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 19 \- -e MODULE_COMPRESS_ZSTD_ULTRA \- --set-val MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 \- --set-val ZSTD_COMP_VAL 22- elif [ "$_zstd_level_value" = "normal" ]; then- echo "Enabling standard ZSTD modules and kernel compression ratio..."- scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 9 \- -d MODULE_COMPRESS_ZSTD_ULTRA \- --set-val 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- _die "Selecting the ZSTD modules and kernel compression level failed!"- fi+ [ -z "$_zstd_level_value" ] && _die "The value is empty. Choose the correct one again."++ case "$_zstd_level_value" in+ ultra) scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 19 -e MODULE_COMPRESS_ZSTD_ULTRA --set-val MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 --set-val ZSTD_COMP_VAL 22;;+ normal) scripts/config --set-val MODULE_COMPRESS_ZSTD_LEVEL 9 -d MODULE_COMPRESS_ZSTD_ULTRA --set-val ZSTD_COMP_VAL 19;;+ *) _die "The value $_zstd_level_value is invalid. Choose the correct one again.";;+ esac++ echo "You choose to $_zstd_level_value ZSTD modules and kernel compression level..."### Disable DEBUGif [ -n "$_disable_debug" ]; then