Archlinux Kernel based on different schedulers and some other performance improvements.
Shell archlinuxbaby-schedcachycachy-schedulercachyoscacule-schedkernellinux-kernelperformanceperformance-tuning
PKGBUILD: Add $use_gcc_suffix
Eric Naimc94cd60944a9
diff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILDindex 9fd8ab4c..56317c83 100644--- a/linux-cachyos-bmq/PKGBUILD+++ b/linux-cachyos-bmq/PKGBUILD@@ -118,6 +118,10 @@ _use_llvm_lto=${_use_llvm_lto-none}# https://github.com/CachyOS/linux-cachyos/issues/36_use_lto_suffix=${_use_lto_suffix-y}+# Use suffix -gcc when requested by the user+# This was added to facilitate https://github.com/CachyOS/linux-cachyos/issues/286+_use_gcc_suffix=${_use_gcc_suffix-}+# KCFI is a proposed forward-edge control-flow integrity scheme for# Clang, which is more suitable for kernel use than the existing CFI# scheme used by CONFIG_CFI_CLANG. kCFI doesn't require LTO, doesn't@@ -144,12 +148,13 @@ _build_debug=${_build_debug-}if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] && [ "$_use_lto_suffix" = "y" ]; then_pkgsuffix="cachyos-${_cpusched}-lto"- pkgbase="linux-$_pkgsuffix"--elif [ -n "$_use_llvm_lto" ] || [[ "$_use_lto_suffix" = "n" ]]; then+elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ]; then+ _pkgsuffix="cachyos-${_cpusched}-gcc"+else_pkgsuffix="cachyos-${_cpusched}"- pkgbase="linux-$_pkgsuffix"fi++pkgbase="linux-$_pkgsuffix"_major=6.11_minor=2#_minorc=$((_minor+1))diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILDindex e5edb569..170a7c8f 100644--- a/linux-cachyos-bore/PKGBUILD+++ b/linux-cachyos-bore/PKGBUILD@@ -118,6 +118,10 @@ _use_llvm_lto=${_use_llvm_lto-none}# https://github.com/CachyOS/linux-cachyos/issues/36_use_lto_suffix=${_use_lto_suffix-y}+# Use suffix -gcc when requested by the user+# This was added to facilitate https://github.com/CachyOS/linux-cachyos/issues/286+_use_gcc_suffix=${_use_gcc_suffix-}+# KCFI is a proposed forward-edge control-flow integrity scheme for# Clang, which is more suitable for kernel use than the existing CFI# scheme used by CONFIG_CFI_CLANG. kCFI doesn't require LTO, doesn't@@ -144,12 +148,13 @@ _build_debug=${_build_debug-}if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] && [ "$_use_lto_suffix" = "y" ]; then_pkgsuffix="cachyos-${_cpusched}-lto"- pkgbase="linux-$_pkgsuffix"--elif [ -n "$_use_llvm_lto" ] || [[ "$_use_lto_suffix" = "n" ]]; then+elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ]; then+ _pkgsuffix="cachyos-${_cpusched}-gcc"+else_pkgsuffix="cachyos-${_cpusched}"- pkgbase="linux-$_pkgsuffix"fi++pkgbase="linux-$_pkgsuffix"_major=6.11_minor=2#_minorc=$((_minor+1))diff --git a/linux-cachyos-deckify/PKGBUILD b/linux-cachyos-deckify/PKGBUILDindex 69d17480..381a41f6 100644--- a/linux-cachyos-deckify/PKGBUILD+++ b/linux-cachyos-deckify/PKGBUILD@@ -118,6 +118,10 @@ _use_llvm_lto=${_use_llvm_lto-none}# https://github.com/CachyOS/linux-cachyos/issues/36_use_lto_suffix=${_use_lto_suffix-y}+# Use suffix -gcc when requested by the user+# This was added to facilitate https://github.com/CachyOS/linux-cachyos/issues/286+_use_gcc_suffix=${_use_gcc_suffix-}+# KCFI is a proposed forward-edge control-flow integrity scheme for# Clang, which is more suitable for kernel use than the existing CFI# scheme used by CONFIG_CFI_CLANG. kCFI doesn't require LTO, doesn't@@ -143,13 +147,14 @@ _build_nvidia_open=${_build_nvidia_open-}_build_debug=${_build_debug-}if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] && [ "$_use_lto_suffix" = "y" ]; then- _pkgsuffix=cachyos-deckify-lto- pkgbase="linux-$_pkgsuffix"--elif [ -n "$_use_llvm_lto" ] || [[ "$_use_lto_suffix" = "n" ]]; then- _pkgsuffix=cachyos-deckify- pkgbase="linux-$_pkgsuffix"+ _pkgsuffix="cachyos-deckify-lto"+elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ]; then+ _pkgsuffix="cachyos-deckify-gcc"+else+ _pkgsuffix="cachyos-deckify"fi++pkgbase="linux-$_pkgsuffix"_major=6.11_minor=2#_minorc=$((_minor+1))diff --git a/linux-cachyos-eevdf/PKGBUILD b/linux-cachyos-eevdf/PKGBUILDindex fa681ad1..19c58dbe 100644--- a/linux-cachyos-eevdf/PKGBUILD+++ b/linux-cachyos-eevdf/PKGBUILD@@ -118,6 +118,10 @@ _use_llvm_lto=${_use_llvm_lto-none}# https://github.com/CachyOS/linux-cachyos/issues/36_use_lto_suffix=${_use_lto_suffix-y}+# Use suffix -gcc when requested by the user+# This was added to facilitate https://github.com/CachyOS/linux-cachyos/issues/286+_use_gcc_suffix=${_use_gcc_suffix-}+# KCFI is a proposed forward-edge control-flow integrity scheme for# Clang, which is more suitable for kernel use than the existing CFI# scheme used by CONFIG_CFI_CLANG. kCFI doesn't require LTO, doesn't@@ -144,12 +148,13 @@ _build_debug=${_build_debug-}if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] && [ "$_use_lto_suffix" = "y" ]; then_pkgsuffix="cachyos-${_cpusched}-lto"- pkgbase="linux-$_pkgsuffix"--elif [ -n "$_use_llvm_lto" ] || [[ "$_use_lto_suffix" = "n" ]]; then+elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ]; then+ _pkgsuffix="cachyos-${_cpusched}-gcc"+else_pkgsuffix="cachyos-${_cpusched}"- pkgbase="linux-$_pkgsuffix"fi++pkgbase="linux-$_pkgsuffix"_major=6.11_minor=2#_minorc=$((_minor+1))diff --git a/linux-cachyos-hardened/PKGBUILD b/linux-cachyos-hardened/PKGBUILDindex e86e7b1b..b80cbdfc 100644--- a/linux-cachyos-hardened/PKGBUILD+++ b/linux-cachyos-hardened/PKGBUILD@@ -118,6 +118,10 @@ _use_llvm_lto=${_use_llvm_lto-none}# https://github.com/CachyOS/linux-cachyos/issues/36_use_lto_suffix=${_use_lto_suffix-y}+# Use suffix -gcc when requested by the user+# This was added to facilitate https://github.com/CachyOS/linux-cachyos/issues/286+_use_gcc_suffix=${_use_gcc_suffix-}+# KCFI is a proposed forward-edge control-flow integrity scheme for# Clang, which is more suitable for kernel use than the existing CFI# scheme used by CONFIG_CFI_CLANG. kCFI doesn't require LTO, doesn't@@ -143,13 +147,14 @@ _build_nvidia_open=${_build_nvidia_open-}_build_debug=${_build_debug-}if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] && [ "$_use_lto_suffix" = "y" ]; then- _pkgsuffix="cachyos-${_cpusched}-lto"- pkgbase="linux-$_pkgsuffix"--elif [ -n "$_use_llvm_lto" ] || [[ "$_use_lto_suffix" = "n" ]]; then- _pkgsuffix="cachyos-${_cpusched}"- pkgbase="linux-$_pkgsuffix"-fi+ _pkgsuffix="cachyos-${_cpusched}-lto"+elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ]; then+ _pkgsuffix="cachyos-${_cpusched}-gcc"+else+ _pkgsuffix="cachyos-${_cpusched}"+ fi++pkgbase="linux-$_pkgsuffix"_major=6.10_minor=13#_minorc=$((_minor+1))diff --git a/linux-cachyos-lts/PKGBUILD b/linux-cachyos-lts/PKGBUILDindex 8404072c..1c9c2823 100644--- a/linux-cachyos-lts/PKGBUILD+++ b/linux-cachyos-lts/PKGBUILD@@ -137,6 +137,10 @@ _use_llvm_lto=${_use_llvm_lto-none}# https://github.com/CachyOS/linux-cachyos/issues/36_use_lto_suffix=${_use_lto_suffix-y}+# Use suffix -gcc when requested by the user+# This was added to facilitate https://github.com/CachyOS/linux-cachyos/issues/286+_use_gcc_suffix=${_use_gcc_suffix-}+# KCFI is a proposed forward-edge control-flow integrity scheme for# Clang, which is more suitable for kernel use than the existing CFI# scheme used by CONFIG_CFI_CLANG. kCFI doesn't require LTO, doesn't@@ -166,13 +170,14 @@ _build_nvidia_open=${_build_nvidia_open-}_build_debug=${_build_debug-}if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] && [ "$_use_lto_suffix" = "y" ]; then- _pkgsuffix=cachyos-lts-lto- pkgbase="linux-$_pkgsuffix"--elif [ -n "$_use_llvm_lto" ] || [[ "$_use_lto_suffix" = "n" ]]; then- _pkgsuffix=cachyos-lts- pkgbase="linux-$_pkgsuffix"+ _pkgsuffix="cachyos-lts-lto"+elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ]; then+ _pkgsuffix="cachyos-lts-gcc"+else+ _pkgsuffix="cachyos-lts"fi++pkgbase="linux-$_pkgsuffix"_major=6.6_minor=54#_minorc=$((_minor+1))diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILDindex d2035844..ea1c3bc9 100644--- a/linux-cachyos-rc/PKGBUILD+++ b/linux-cachyos-rc/PKGBUILD@@ -118,6 +118,10 @@ _use_llvm_lto=${_use_llvm_lto-none}# https://github.com/CachyOS/linux-cachyos/issues/36_use_lto_suffix=${_use_lto_suffix-y}+# Use suffix -gcc when requested by the user+# This was added to facilitate https://github.com/CachyOS/linux-cachyos/issues/286+_use_gcc_suffix=${_use_gcc_suffix-}+# KCFI is a proposed forward-edge control-flow integrity scheme for# Clang, which is more suitable for kernel use than the existing CFI# scheme used by CONFIG_CFI_CLANG. kCFI doesn't require LTO, doesn't@@ -143,13 +147,14 @@ _build_nvidia_open=${_build_nvidia_open-}_build_debug=${_build_debug-}if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] && [ "$_use_lto_suffix" = "y" ]; then- _pkgsuffix=cachyos-rc-lto- pkgbase="linux-$_pkgsuffix"--elif [ -n "$_use_llvm_lto" ] || [[ "$_use_lto_suffix" = "n" ]]; then- _pkgsuffix=cachyos-rc- pkgbase="linux-$_pkgsuffix"+ _pkgsuffix="cachyos-rc-lto"+elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ]; then+ _pkgsuffix="cachyos-rc-gcc"+else+ _pkgsuffix="cachyos-rc"fi++pkgbase="linux-$_pkgsuffix"_major=6.12_minor=0#_minorc=$((_minor+1))diff --git a/linux-cachyos-rt-bore/PKGBUILD b/linux-cachyos-rt-bore/PKGBUILDindex 60aca897..6e1df362 100644--- a/linux-cachyos-rt-bore/PKGBUILD+++ b/linux-cachyos-rt-bore/PKGBUILD@@ -118,6 +118,10 @@ _use_llvm_lto=${_use_llvm_lto-none}# https://github.com/CachyOS/linux-cachyos/issues/36_use_lto_suffix=${_use_lto_suffix-y}+# Use suffix -gcc when requested by the user+# This was added to facilitate https://github.com/CachyOS/linux-cachyos/issues/286+_use_gcc_suffix=${_use_gcc_suffix-}+# KCFI is a proposed forward-edge control-flow integrity scheme for# Clang, which is more suitable for kernel use than the existing CFI# scheme used by CONFIG_CFI_CLANG. kCFI doesn't require LTO, doesn't@@ -144,12 +148,13 @@ _build_debug=${_build_debug-}if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] && [ "$_use_lto_suffix" = "y" ]; then_pkgsuffix="cachyos-${_cpusched}-lto"- pkgbase="linux-$_pkgsuffix"--elif [ -n "$_use_llvm_lto" ] || [[ "$_use_lto_suffix" = "n" ]]; then+elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ]; then+ _pkgsuffix="cachyos-${_cpusched}-gcc"+else_pkgsuffix="cachyos-${_cpusched}"- pkgbase="linux-$_pkgsuffix"fi++pkgbase="linux-$_pkgsuffix"_major=6.11_minor=2#_minorc=$((_minor+1))diff --git a/linux-cachyos-sched-ext/PKGBUILD b/linux-cachyos-sched-ext/PKGBUILDindex 39227d73..86f9fd6c 100644--- a/linux-cachyos-sched-ext/PKGBUILD+++ b/linux-cachyos-sched-ext/PKGBUILD@@ -118,6 +118,10 @@ _use_llvm_lto=${_use_llvm_lto-none}# https://github.com/CachyOS/linux-cachyos/issues/36_use_lto_suffix=${_use_lto_suffix-y}+# Use suffix -gcc when requested by the user+# This was added to facilitate https://github.com/CachyOS/linux-cachyos/issues/286+_use_gcc_suffix=${_use_gcc_suffix-}+# KCFI is a proposed forward-edge control-flow integrity scheme for# Clang, which is more suitable for kernel use than the existing CFI# scheme used by CONFIG_CFI_CLANG. kCFI doesn't require LTO, doesn't@@ -144,12 +148,13 @@ _build_debug=${_build_debug-}if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] && [ "$_use_lto_suffix" = "y" ]; then_pkgsuffix="cachyos-${_cpusched}-lto"- pkgbase="linux-$_pkgsuffix"--elif [ -n "$_use_llvm_lto" ] || [[ "$_use_lto_suffix" = "n" ]]; then+elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ]; then+ _pkgsuffix="cachyos-${_cpusched}-gcc"+else_pkgsuffix="cachyos-${_cpusched}"- pkgbase="linux-$_pkgsuffix"fi++pkgbase="linux-$_pkgsuffix"_major=6.11_minor=2#_minorc=$((_minor+1))diff --git a/linux-cachyos-server/PKGBUILD b/linux-cachyos-server/PKGBUILDindex 1112b43c..0b7e4b01 100644--- a/linux-cachyos-server/PKGBUILD+++ b/linux-cachyos-server/PKGBUILD@@ -118,6 +118,10 @@ _use_llvm_lto=${_use_llvm_lto-none}# https://github.com/CachyOS/linux-cachyos/issues/36_use_lto_suffix=${_use_lto_suffix-y}+# Use suffix -gcc when requested by the user+# This was added to facilitate https://github.com/CachyOS/linux-cachyos/issues/286+_use_gcc_suffix=${_use_gcc_suffix-}+# KCFI is a proposed forward-edge control-flow integrity scheme for# Clang, which is more suitable for kernel use than the existing CFI# scheme used by CONFIG_CFI_CLANG. kCFI doesn't require LTO, doesn't@@ -143,13 +147,14 @@ _build_nvidia_open=${_build_nvidia_open-}_build_debug=${_build_debug-}if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] && [ "$_use_lto_suffix" = "y" ]; then- _pkgsuffix=cachyos-server-lto- pkgbase="linux-$_pkgsuffix"--elif [ -n "$_use_llvm_lto" ] || [[ "$_use_lto_suffix" = "n" ]]; then- _pkgsuffix=cachyos-server- pkgbase="linux-$_pkgsuffix"+ _pkgsuffix="cachyos-server-lto"+elif [ "$_use_llvm_lto" = "none" ] && [ -z "$_use_kcfi" ] && [ "$_use_gcc_suffix" = "y" ]; then+ _pkgsuffix="cachyos-server-gcc"+else+ _pkgsuffix="cachyos-server"fi++pkgbase="linux-$_pkgsuffix"_major=6.11_minor=2#_minorc=$((_minor+1))