Skip to content

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

Add zstd compression level flag

Piotr Gorskid7c42bca8356
diff --git a/linux-bore/.SRCINFO b/linux-bore/.SRCINFO
index 8568746a..f596153e 100644
--- a/linux-bore/.SRCINFO
+++ b/linux-bore/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by makepkg 6.0.1
-# Tue Aug 9 20:21:24 UTC 2022
+# Wed Aug 10 10:17:30 UTC 2022
pkgbase = linux-bore
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.19.0
@@ -26,8 +26,8 @@ pkgbase = linux-bore
source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.19.tar.xz
source = config
source = auto-cpu-optimization.sh
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.19/all/0001-cachyos-base-all.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.19/sched/0001-bore.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/5.19/all/0001-cachyos-base-all.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/5.19/sched/0001-bore.patch
sha256sums = ff240c579b9ee1affc318917de07394fc1c3bb49dac25ec1287370c2e15005a8
sha256sums = 4df524b3253ed3b197c6db24771525902fd8978d2eeabcb2a3a4305c4afc7327
sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f
diff --git a/linux-bore/PKGBUILD b/linux-bore/PKGBUILD
index 32b74e12..c87cba00 100644
--- a/linux-bore/PKGBUILD
+++ b/linux-bore/PKGBUILD
@@ -100,6 +100,14 @@ _disable_debug=y
## Enable zram/zswap ZSTD compression
_zstd_compression=y
+### Selecting the ZSTD kernel and modules compression level
+# ATTENTION - one of two predefined values should be selected!
+# 'ultra' - highest compression ratio
+# 'normal' - standard compression ratio
+# WARNING: the ultra settings can sometimes
+# be counterproductive in both size and speed.
+_zstd_level_value='normal'
+
# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".
# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
@@ -594,12 +602,26 @@ prepare() {
--disable LRNG_SELFTEST_PANIC
fi
- ### Enable ZSTD swap/zram compression
- if [ -n "$_zstd_swap_compression" ]; then
- echo "Enabling zram ZSTD compression..."
- scripts/config --disable CONFIG_ZSWAP_DEFAULT_ON \
- --enable ZRAM_ENTROPY \
- --set-val ZRAM_ENTROPY_THRESHOLD 100000
+ ### 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 CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 19 \
+ --enable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA \
+ --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 \
+ --set-val CONFIG_ZSTD_COMP_VAL 22
+ elif [ "$_zstd_level_value" = "normal" ]; then
+ echo "Enabling standard ZSTD modules and kernel compression ratio..."
+ scripts/config --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 9 \
+ --disable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA \
+ --set-val CONFIG_ZSTD_COMP_VAL 19
+ else
+ if [ -n "$_zstd_level_value" ]; then
+ error "The value $_zstd_level_value is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Selecting the ZSTD modules and kernel compression level failed!"
+ exit
fi
### Disable DEBUG
diff --git a/linux-cachyos-bmq/.SRCINFO b/linux-cachyos-bmq/.SRCINFO
index 81589b64..2335224b 100644
--- a/linux-cachyos-bmq/.SRCINFO
+++ b/linux-cachyos-bmq/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by makepkg 6.0.1
-# Tue Aug 9 20:22:16 UTC 2022
+# Wed Aug 10 10:19:57 UTC 2022
pkgbase = linux-cachyos-bmq
pkgdesc = Linux BMQ scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.19.0
@@ -26,8 +26,8 @@ pkgbase = linux-cachyos-bmq
source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.19.tar.xz
source = config
source = auto-cpu-optimization.sh
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.19/all/0001-cachyos-base-all.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.19/sched/0001-prjc-cachy.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/5.19/all/0001-cachyos-base-all.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/5.19/sched/0001-prjc-cachy.patch
sha256sums = ff240c579b9ee1affc318917de07394fc1c3bb49dac25ec1287370c2e15005a8
sha256sums = 4df524b3253ed3b197c6db24771525902fd8978d2eeabcb2a3a4305c4afc7327
sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f
diff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILD
index 80ee1152..ee39ef86 100644
--- a/linux-cachyos-bmq/PKGBUILD
+++ b/linux-cachyos-bmq/PKGBUILD
@@ -100,6 +100,14 @@ _disable_debug=y
## Enable zram/zswap ZSTD compression
_zstd_compression=y
+### Selecting the ZSTD kernel and modules compression level
+# ATTENTION - one of two predefined values should be selected!
+# 'ultra' - highest compression ratio
+# 'normal' - standard compression ratio
+# WARNING: the ultra settings can sometimes
+# be counterproductive in both size and speed.
+_zstd_level_value='normal'
+
# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".
# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
@@ -602,6 +610,28 @@ prepare() {
--set-val ZRAM_ENTROPY_THRESHOLD 100000
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 CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 19 \
+ --enable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA \
+ --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 \
+ --set-val CONFIG_ZSTD_COMP_VAL 22
+ elif [ "$_zstd_level_value" = "normal" ]; then
+ echo "Enabling standard ZSTD modules and kernel compression ratio..."
+ scripts/config --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 9 \
+ --disable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA \
+ --set-val CONFIG_ZSTD_COMP_VAL 19
+ else
+ if [ -n "$_zstd_level_value" ]; then
+ error "The value $_zstd_level_value is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Selecting the ZSTD modules and kernel compression level failed!"
+ exit
+ fi
+
### Disable DEBUG
if [ -n "$_disable_debug" ]; then
scripts/config --disable DEBUG_INFO \
diff --git a/linux-cachyos-bore/.SRCINFO b/linux-cachyos-bore/.SRCINFO
index cf51ad5f..0c86c696 100644
--- a/linux-cachyos-bore/.SRCINFO
+++ b/linux-cachyos-bore/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by makepkg 6.0.1
-# Tue Aug 9 20:22:43 UTC 2022
+# Wed Aug 10 10:21:22 UTC 2022
pkgbase = linux-cachyos-bore
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.19.0
@@ -26,8 +26,8 @@ pkgbase = linux-cachyos-bore
source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.19.tar.xz
source = config
source = auto-cpu-optimization.sh
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.19/all/0001-cachyos-base-all.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.19/sched/0001-bore.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/5.19/all/0001-cachyos-base-all.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/5.19/sched/0001-bore.patch
sha256sums = ff240c579b9ee1affc318917de07394fc1c3bb49dac25ec1287370c2e15005a8
sha256sums = 4df524b3253ed3b197c6db24771525902fd8978d2eeabcb2a3a4305c4afc7327
sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f
diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILD
index 5fa9a8c2..e2460982 100644
--- a/linux-cachyos-bore/PKGBUILD
+++ b/linux-cachyos-bore/PKGBUILD
@@ -100,6 +100,14 @@ _disable_debug=y
## Enable zram/zswap ZSTD compression
_zstd_compression=y
+### Selecting the ZSTD kernel and modules compression level
+# ATTENTION - one of two predefined values should be selected!
+# 'ultra' - highest compression ratio
+# 'normal' - standard compression ratio
+# WARNING: the ultra settings can sometimes
+# be counterproductive in both size and speed.
+_zstd_level_value='normal'
+
# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".
# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
@@ -602,6 +610,28 @@ prepare() {
--set-val ZRAM_ENTROPY_THRESHOLD 100000
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 CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 19 \
+ --enable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA \
+ --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 \
+ --set-val CONFIG_ZSTD_COMP_VAL 22
+ elif [ "$_zstd_level_value" = "normal" ]; then
+ echo "Enabling standard ZSTD modules and kernel compression ratio..."
+ scripts/config --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 9 \
+ --disable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA \
+ --set-val CONFIG_ZSTD_COMP_VAL 19
+ else
+ if [ -n "$_zstd_level_value" ]; then
+ error "The value $_zstd_level_value is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Selecting the ZSTD modules and kernel compression level failed!"
+ exit
+ fi
+
### Disable DEBUG
if [ -n "$_disable_debug" ]; then
scripts/config --disable DEBUG_INFO \
diff --git a/linux-cachyos-cacule/.SRCINFO b/linux-cachyos-cacule/.SRCINFO
index cf1f1bee..b1dc33dc 100644
--- a/linux-cachyos-cacule/.SRCINFO
+++ b/linux-cachyos-cacule/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by makepkg 6.0.1
-# Tue Aug 9 20:23:15 UTC 2022
+# Wed Aug 10 10:22:27 UTC 2022
pkgbase = linux-cachyos-cacule
pkgdesc = Linux cacULE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.19.0
@@ -26,8 +26,8 @@ pkgbase = linux-cachyos-cacule
source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.19.tar.xz
source = config
source = auto-cpu-optimization.sh
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.19/all/0001-cachyos-base-all.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.19/sched/0001-cacULE-cachy.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/5.19/all/0001-cachyos-base-all.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/5.19/sched/0001-cacULE-cachy.patch
sha256sums = ff240c579b9ee1affc318917de07394fc1c3bb49dac25ec1287370c2e15005a8
sha256sums = 4df524b3253ed3b197c6db24771525902fd8978d2eeabcb2a3a4305c4afc7327
sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f
diff --git a/linux-cachyos-cacule/PKGBUILD b/linux-cachyos-cacule/PKGBUILD
index 888379e8..c433f7a6 100644
--- a/linux-cachyos-cacule/PKGBUILD
+++ b/linux-cachyos-cacule/PKGBUILD
@@ -100,6 +100,14 @@ _disable_debug=y
## Enable zram/zswap ZSTD compression
_zstd_compression=y
+### Selecting the ZSTD kernel and modules compression level
+# ATTENTION - one of two predefined values should be selected!
+# 'ultra' - highest compression ratio
+# 'normal' - standard compression ratio
+# WARNING: the ultra settings can sometimes
+# be counterproductive in both size and speed.
+_zstd_level_value='normal'
+
# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".
# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
@@ -602,6 +610,28 @@ prepare() {
--set-val ZRAM_ENTROPY_THRESHOLD 100000
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 CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 19 \
+ --enable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA \
+ --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 \
+ --set-val CONFIG_ZSTD_COMP_VAL 22
+ elif [ "$_zstd_level_value" = "normal" ]; then
+ echo "Enabling standard ZSTD modules and kernel compression ratio..."
+ scripts/config --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 9 \
+ --disable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA \
+ --set-val CONFIG_ZSTD_COMP_VAL 19
+ else
+ if [ -n "$_zstd_level_value" ]; then
+ error "The value $_zstd_level_value is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Selecting the ZSTD modules and kernel compression level failed!"
+ exit
+ fi
+
### Disable DEBUG
if [ -n "$_disable_debug" ]; then
scripts/config --disable DEBUG_INFO \
diff --git a/linux-cachyos-cfs/.SRCINFO b/linux-cachyos-cfs/.SRCINFO
index d72e371b..92371167 100644
--- a/linux-cachyos-cfs/.SRCINFO
+++ b/linux-cachyos-cfs/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by makepkg 6.0.1
-# Tue Aug 9 20:23:46 UTC 2022
+# Wed Aug 10 10:26:49 UTC 2022
pkgbase = linux-cachyos-cfs
pkgdesc = Linux CFS scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.19.0
@@ -26,7 +26,7 @@ pkgbase = linux-cachyos-cfs
source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.19.tar.xz
source = config
source = auto-cpu-optimization.sh
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.19/all/0001-cachyos-base-all.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/5.19/all/0001-cachyos-base-all.patch
sha256sums = ff240c579b9ee1affc318917de07394fc1c3bb49dac25ec1287370c2e15005a8
sha256sums = 4df524b3253ed3b197c6db24771525902fd8978d2eeabcb2a3a4305c4afc7327
sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f
diff --git a/linux-cachyos-cfs/PKGBUILD b/linux-cachyos-cfs/PKGBUILD
index 09825bce..e59fcf8e 100644
--- a/linux-cachyos-cfs/PKGBUILD
+++ b/linux-cachyos-cfs/PKGBUILD
@@ -100,6 +100,14 @@ _disable_debug=y
## Enable zram/zswap ZSTD compression
_zstd_compression=y
+### Selecting the ZSTD kernel and modules compression level
+# ATTENTION - one of two predefined values should be selected!
+# 'ultra' - highest compression ratio
+# 'normal' - standard compression ratio
+# WARNING: the ultra settings can sometimes
+# be counterproductive in both size and speed.
+_zstd_level_value='normal'
+
# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".
# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
@@ -602,6 +610,28 @@ prepare() {
--set-val ZRAM_ENTROPY_THRESHOLD 100000
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 CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 19 \
+ --enable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA \
+ --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 \
+ --set-val CONFIG_ZSTD_COMP_VAL 22
+ elif [ "$_zstd_level_value" = "normal" ]; then
+ echo "Enabling standard ZSTD modules and kernel compression ratio..."
+ scripts/config --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 9 \
+ --disable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA \
+ --set-val CONFIG_ZSTD_COMP_VAL 19
+ else
+ if [ -n "$_zstd_level_value" ]; then
+ error "The value $_zstd_level_value is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Selecting the ZSTD modules and kernel compression level failed!"
+ exit
+ fi
+
### Disable DEBUG
if [ -n "$_disable_debug" ]; then
scripts/config --disable DEBUG_INFO \
diff --git a/linux-cachyos-hardened/.SRCINFO b/linux-cachyos-hardened/.SRCINFO
index 3d9a4296..ce5ebea7 100644
--- a/linux-cachyos-hardened/.SRCINFO
+++ b/linux-cachyos-hardened/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by makepkg 6.0.1
-# Tue Aug 9 20:24:15 UTC 2022
+# Wed Aug 10 10:28:06 UTC 2022
pkgbase = linux-cachyos-hardened
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.19.0
@@ -26,9 +26,9 @@ pkgbase = linux-cachyos-hardened
source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.19.tar.xz
source = config
source = auto-cpu-optimization.sh
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.19/all/0001-cachyos-base-all.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.19/sched/0001-bore.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.19/misc/0001-hardened.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/5.19/all/0001-cachyos-base-all.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/5.19/sched/0001-bore.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/5.19/misc/0001-hardened.patch
sha256sums = ff240c579b9ee1affc318917de07394fc1c3bb49dac25ec1287370c2e15005a8
sha256sums = b75e5c656f6e3909e3607a8427f9d68494063f6ffa802489bc31120639b19653
sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f
diff --git a/linux-cachyos-hardened/PKGBUILD b/linux-cachyos-hardened/PKGBUILD
index 4c8786a6..a468e782 100644
--- a/linux-cachyos-hardened/PKGBUILD
+++ b/linux-cachyos-hardened/PKGBUILD
@@ -100,6 +100,14 @@ _disable_debug=y
## Enable zram/zswap ZSTD compression
_zstd_compression=y
+### Selecting the ZSTD kernel and modules compression level
+# ATTENTION - one of two predefined values should be selected!
+# 'ultra' - highest compression ratio
+# 'normal' - standard compression ratio
+# WARNING: the ultra settings can sometimes
+# be counterproductive in both size and speed.
+_zstd_level_value='normal'
+
# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".
# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
@@ -602,6 +610,28 @@ prepare() {
--set-val ZRAM_ENTROPY_THRESHOLD 100000
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 CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 19 \
+ --enable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA \
+ --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 \
+ --set-val CONFIG_ZSTD_COMP_VAL 22
+ elif [ "$_zstd_level_value" = "normal" ]; then
+ echo "Enabling standard ZSTD modules and kernel compression ratio..."
+ scripts/config --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 9 \
+ --disable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA \
+ --set-val CONFIG_ZSTD_COMP_VAL 19
+ else
+ if [ -n "$_zstd_level_value" ]; then
+ error "The value $_zstd_level_value is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Selecting the ZSTD modules and kernel compression level failed!"
+ exit
+ fi
+
### Disable DEBUG
if [ -n "$_disable_debug" ]; then
scripts/config --disable DEBUG_INFO \
diff --git a/linux-cachyos-pds/.SRCINFO b/linux-cachyos-pds/.SRCINFO
index 2f7814b8..02f2c82c 100644
--- a/linux-cachyos-pds/.SRCINFO
+++ b/linux-cachyos-pds/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by makepkg 6.0.1
-# Tue Aug 9 20:24:58 UTC 2022
+# Wed Aug 10 10:29:14 UTC 2022
pkgbase = linux-cachyos-pds
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.19.0
@@ -26,8 +26,8 @@ pkgbase = linux-cachyos-pds
source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.19.tar.xz
source = config
source = auto-cpu-optimization.sh
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.19/all/0001-cachyos-base-all.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.19/sched/0001-prjc-cachy.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/5.19/all/0001-cachyos-base-all.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/5.19/sched/0001-prjc-cachy.patch
sha256sums = ff240c579b9ee1affc318917de07394fc1c3bb49dac25ec1287370c2e15005a8
sha256sums = 4df524b3253ed3b197c6db24771525902fd8978d2eeabcb2a3a4305c4afc7327
sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f
diff --git a/linux-cachyos-pds/PKGBUILD b/linux-cachyos-pds/PKGBUILD
index 739bb388..811dcb3f 100644
--- a/linux-cachyos-pds/PKGBUILD
+++ b/linux-cachyos-pds/PKGBUILD
@@ -100,6 +100,14 @@ _disable_debug=y
## Enable zram/zswap ZSTD compression
_zstd_compression=y
+### Selecting the ZSTD kernel and modules compression level
+# ATTENTION - one of two predefined values should be selected!
+# 'ultra' - highest compression ratio
+# 'normal' - standard compression ratio
+# WARNING: the ultra settings can sometimes
+# be counterproductive in both size and speed.
+_zstd_level_value='normal'
+
# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".
# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
@@ -602,6 +610,28 @@ prepare() {
--set-val ZRAM_ENTROPY_THRESHOLD 100000
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 CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 19 \
+ --enable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA \
+ --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 \
+ --set-val CONFIG_ZSTD_COMP_VAL 22
+ elif [ "$_zstd_level_value" = "normal" ]; then
+ echo "Enabling standard ZSTD modules and kernel compression ratio..."
+ scripts/config --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 9 \
+ --disable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA \
+ --set-val CONFIG_ZSTD_COMP_VAL 19
+ else
+ if [ -n "$_zstd_level_value" ]; then
+ error "The value $_zstd_level_value is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Selecting the ZSTD modules and kernel compression level failed!"
+ exit
+ fi
+
### Disable DEBUG
if [ -n "$_disable_debug" ]; then
scripts/config --disable DEBUG_INFO \
diff --git a/linux-cachyos-tt/.SRCINFO b/linux-cachyos-tt/.SRCINFO
index ac21c4e6..310d4237 100644
--- a/linux-cachyos-tt/.SRCINFO
+++ b/linux-cachyos-tt/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by makepkg 6.0.1
-# Tue Aug 9 20:25:29 UTC 2022
+# Wed Aug 10 10:30:12 UTC 2022
pkgbase = linux-cachyos-tt
pkgdesc = Linux TT scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.19.0
@@ -26,8 +26,8 @@ pkgbase = linux-cachyos-tt
source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.19.tar.xz
source = config
source = auto-cpu-optimization.sh
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.19/all/0001-cachyos-base-all.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.19/sched/0001-tt-cachy.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/5.19/all/0001-cachyos-base-all.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/5.19/sched/0001-tt-cachy.patch
sha256sums = ff240c579b9ee1affc318917de07394fc1c3bb49dac25ec1287370c2e15005a8
sha256sums = 4df524b3253ed3b197c6db24771525902fd8978d2eeabcb2a3a4305c4afc7327
sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f
diff --git a/linux-cachyos-tt/PKGBUILD b/linux-cachyos-tt/PKGBUILD
index 05c45e83..7cfcd071 100644
--- a/linux-cachyos-tt/PKGBUILD
+++ b/linux-cachyos-tt/PKGBUILD
@@ -100,6 +100,14 @@ _disable_debug=y
## Enable zram/zswap ZSTD compression
_zstd_compression=y
+### Selecting the ZSTD kernel and modules compression level
+# ATTENTION - one of two predefined values should be selected!
+# 'ultra' - highest compression ratio
+# 'normal' - standard compression ratio
+# WARNING: the ultra settings can sometimes
+# be counterproductive in both size and speed.
+_zstd_level_value='normal'
+
# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".
# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
@@ -602,6 +610,28 @@ prepare() {
--set-val ZRAM_ENTROPY_THRESHOLD 100000
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 CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 19 \
+ --enable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA \
+ --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 \
+ --set-val CONFIG_ZSTD_COMP_VAL 22
+ elif [ "$_zstd_level_value" = "normal" ]; then
+ echo "Enabling standard ZSTD modules and kernel compression ratio..."
+ scripts/config --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 9 \
+ --disable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA \
+ --set-val CONFIG_ZSTD_COMP_VAL 19
+ else
+ if [ -n "$_zstd_level_value" ]; then
+ error "The value $_zstd_level_value is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Selecting the ZSTD modules and kernel compression level failed!"
+ exit
+ fi
+
### Disable DEBUG
if [ -n "$_disable_debug" ]; then
scripts/config --disable DEBUG_INFO \
diff --git a/linux-cachyos/.SRCINFO b/linux-cachyos/.SRCINFO
index 5bffc288..99f18f35 100644
--- a/linux-cachyos/.SRCINFO
+++ b/linux-cachyos/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by makepkg 6.0.1
-# Tue Aug 9 20:21:48 UTC 2022
+# Wed Aug 10 10:18:26 UTC 2022
pkgbase = linux-cachyos
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.19.0
@@ -26,8 +26,8 @@ pkgbase = linux-cachyos
source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.19.tar.xz
source = config
source = auto-cpu-optimization.sh
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.19/all/0001-cachyos-base-all.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.19/sched/0001-bore.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/5.19/all/0001-cachyos-base-all.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/5.19/sched/0001-bore.patch
sha256sums = ff240c579b9ee1affc318917de07394fc1c3bb49dac25ec1287370c2e15005a8
sha256sums = 4df524b3253ed3b197c6db24771525902fd8978d2eeabcb2a3a4305c4afc7327
sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f
diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILD
index ee33afe3..c2639a9c 100644
--- a/linux-cachyos/PKGBUILD
+++ b/linux-cachyos/PKGBUILD
@@ -100,6 +100,14 @@ _disable_debug=y
## Enable zram/zswap ZSTD compression
_zstd_compression=y
+### Selecting the ZSTD kernel and modules compression level
+# ATTENTION - one of two predefined values should be selected!
+# 'ultra' - highest compression ratio
+# 'normal' - standard compression ratio
+# WARNING: the ultra settings can sometimes
+# be counterproductive in both size and speed.
+_zstd_level_value='normal'
+
# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".
# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
@@ -594,12 +602,26 @@ prepare() {
--disable LRNG_SELFTEST_PANIC
fi
- ### Enable ZSTD swap/zram compression
- if [ -n "$_zstd_swap_compression" ]; then
- echo "Enabling zram ZSTD compression..."
- scripts/config --disable CONFIG_ZSWAP_DEFAULT_ON \
- --enable ZRAM_ENTROPY \
- --set-val ZRAM_ENTROPY_THRESHOLD 100000
+ ### 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 CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 19 \
+ --enable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA \
+ --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 \
+ --set-val CONFIG_ZSTD_COMP_VAL 22
+ elif [ "$_zstd_level_value" = "normal" ]; then
+ echo "Enabling standard ZSTD modules and kernel compression ratio..."
+ scripts/config --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 9 \
+ --disable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA \
+ --set-val CONFIG_ZSTD_COMP_VAL 19
+ else
+ if [ -n "$_zstd_level_value" ]; then
+ error "The value $_zstd_level_value is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Selecting the ZSTD modules and kernel compression level failed!"
+ exit
fi
### Disable DEBUG
diff --git a/linux-cacule-rdb/.SRCINFO b/linux-cacule-rdb/.SRCINFO
index 70be882a..293fab4d 100644
--- a/linux-cacule-rdb/.SRCINFO
+++ b/linux-cacule-rdb/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by makepkg 6.0.1
-# Tue Aug 9 20:26:26 UTC 2022
+# Wed Aug 10 10:32:33 UTC 2022
pkgbase = linux-cacule-rdb
pkgdesc = Linux cacULE-RDB scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.19.0
@@ -26,8 +26,8 @@ pkgbase = linux-cacule-rdb
source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.19.tar.xz
source = config
source = auto-cpu-optimization.sh
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.19/all/0001-cachyos-base-all.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.19/sched/0001-cacULE-cachy.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/5.19/all/0001-cachyos-base-all.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/5.19/sched/0001-cacULE-cachy.patch
sha256sums = ff240c579b9ee1affc318917de07394fc1c3bb49dac25ec1287370c2e15005a8
sha256sums = 4df524b3253ed3b197c6db24771525902fd8978d2eeabcb2a3a4305c4afc7327
sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f
diff --git a/linux-cacule-rdb/PKGBUILD b/linux-cacule-rdb/PKGBUILD
index 3d288cd9..812a8df0 100644
--- a/linux-cacule-rdb/PKGBUILD
+++ b/linux-cacule-rdb/PKGBUILD
@@ -100,6 +100,14 @@ _disable_debug=y
## Enable zram/zswap ZSTD compression
_zstd_compression=y
+### Selecting the ZSTD kernel and modules compression level
+# ATTENTION - one of two predefined values should be selected!
+# 'ultra' - highest compression ratio
+# 'normal' - standard compression ratio
+# WARNING: the ultra settings can sometimes
+# be counterproductive in both size and speed.
+_zstd_level_value='normal'
+
# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".
# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
@@ -602,6 +610,28 @@ prepare() {
--set-val ZRAM_ENTROPY_THRESHOLD 100000
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 CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 19 \
+ --enable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA \
+ --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 \
+ --set-val CONFIG_ZSTD_COMP_VAL 22
+ elif [ "$_zstd_level_value" = "normal" ]; then
+ echo "Enabling standard ZSTD modules and kernel compression ratio..."
+ scripts/config --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 9 \
+ --disable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA \
+ --set-val CONFIG_ZSTD_COMP_VAL 19
+ else
+ if [ -n "$_zstd_level_value" ]; then
+ error "The value $_zstd_level_value is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Selecting the ZSTD modules and kernel compression level failed!"
+ exit
+ fi
+
### Disable DEBUG
if [ -n "$_disable_debug" ]; then
scripts/config --disable DEBUG_INFO \
diff --git a/linux-cacule/.SRCINFO b/linux-cacule/.SRCINFO
index 0db0b0a8..6e0817b1 100644
--- a/linux-cacule/.SRCINFO
+++ b/linux-cacule/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by makepkg 6.0.1
-# Tue Aug 9 20:25:58 UTC 2022
+# Wed Aug 10 10:31:28 UTC 2022
pkgbase = linux-cacule
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.19.0
@@ -26,8 +26,8 @@ pkgbase = linux-cacule
source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.19.tar.xz
source = config
source = auto-cpu-optimization.sh
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.19/all/0001-cachyos-base-all.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.19/sched/0001-cacULE-cachy.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/5.19/all/0001-cachyos-base-all.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/5.19/sched/0001-cacULE-cachy.patch
sha256sums = ff240c579b9ee1affc318917de07394fc1c3bb49dac25ec1287370c2e15005a8
sha256sums = 4df524b3253ed3b197c6db24771525902fd8978d2eeabcb2a3a4305c4afc7327
sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f
diff --git a/linux-cacule/PKGBUILD b/linux-cacule/PKGBUILD
index 215726f6..dc4b15ca 100644
--- a/linux-cacule/PKGBUILD
+++ b/linux-cacule/PKGBUILD
@@ -100,6 +100,14 @@ _disable_debug=y
## Enable zram/zswap ZSTD compression
_zstd_compression=y
+### Selecting the ZSTD kernel and modules compression level
+# ATTENTION - one of two predefined values should be selected!
+# 'ultra' - highest compression ratio
+# 'normal' - standard compression ratio
+# WARNING: the ultra settings can sometimes
+# be counterproductive in both size and speed.
+_zstd_level_value='normal'
+
# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".
# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
@@ -602,6 +610,28 @@ prepare() {
--set-val ZRAM_ENTROPY_THRESHOLD 100000
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 CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 19 \
+ --enable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA \
+ --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 \
+ --set-val CONFIG_ZSTD_COMP_VAL 22
+ elif [ "$_zstd_level_value" = "normal" ]; then
+ echo "Enabling standard ZSTD modules and kernel compression ratio..."
+ scripts/config --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 9 \
+ --disable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA \
+ --set-val CONFIG_ZSTD_COMP_VAL 19
+ else
+ if [ -n "$_zstd_level_value" ]; then
+ error "The value $_zstd_level_value is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Selecting the ZSTD modules and kernel compression level failed!"
+ exit
+ fi
+
### Disable DEBUG
if [ -n "$_disable_debug" ]; then
scripts/config --disable DEBUG_INFO \
diff --git a/linux-tt/.SRCINFO b/linux-tt/.SRCINFO
index 40e4df73..5e8ddc5d 100644
--- a/linux-tt/.SRCINFO
+++ b/linux-tt/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by makepkg 6.0.1
-# Tue Aug 9 20:26:52 UTC 2022
+# Wed Aug 10 10:33:31 UTC 2022
pkgbase = linux-tt
pkgdesc = Linux TT scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.19.0
@@ -26,8 +26,8 @@ pkgbase = linux-tt
source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.19.tar.xz
source = config
source = auto-cpu-optimization.sh
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.19/all/0001-cachyos-base-all.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.19/sched/0001-tt-cachy.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/5.19/all/0001-cachyos-base-all.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/5.19/sched/0001-tt-cachy.patch
sha256sums = ff240c579b9ee1affc318917de07394fc1c3bb49dac25ec1287370c2e15005a8
sha256sums = 4df524b3253ed3b197c6db24771525902fd8978d2eeabcb2a3a4305c4afc7327
sha256sums = ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f
diff --git a/linux-tt/PKGBUILD b/linux-tt/PKGBUILD
index 5c39653e..331852eb 100644
--- a/linux-tt/PKGBUILD
+++ b/linux-tt/PKGBUILD
@@ -100,6 +100,14 @@ _disable_debug=y
## Enable zram/zswap ZSTD compression
_zstd_compression=y
+### Selecting the ZSTD kernel and modules compression level
+# ATTENTION - one of two predefined values should be selected!
+# 'ultra' - highest compression ratio
+# 'normal' - standard compression ratio
+# WARNING: the ultra settings can sometimes
+# be counterproductive in both size and speed.
+_zstd_level_value='normal'
+
# Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".
# "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
@@ -602,6 +610,28 @@ prepare() {
--set-val ZRAM_ENTROPY_THRESHOLD 100000
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 CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 19 \
+ --enable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA \
+ --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL_ULTRA 22 \
+ --set-val CONFIG_ZSTD_COMP_VAL 22
+ elif [ "$_zstd_level_value" = "normal" ]; then
+ echo "Enabling standard ZSTD modules and kernel compression ratio..."
+ scripts/config --set-val CONFIG_MODULE_COMPRESS_ZSTD_LEVEL 9 \
+ --disable CONFIG_MODULE_COMPRESS_ZSTD_ULTRA \
+ --set-val CONFIG_ZSTD_COMP_VAL 19
+ else
+ if [ -n "$_zstd_level_value" ]; then
+ error "The value $_zstd_level_value is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Selecting the ZSTD modules and kernel compression level failed!"
+ exit
+ fi
+
### Disable DEBUG
if [ -n "$_disable_debug" ]; then
scripts/config --disable DEBUG_INFO \