Skip to content

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

linux-cachyos-rc: Add support for Distributed ThinLTO (#436)

Eric Naimb5d3bc6fe524
diff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILD
index 2103fb1b..a4d38cbd 100644
--- a/linux-cachyos-bmq/PKGBUILD
+++ b/linux-cachyos-bmq/PKGBUILD
@@ -85,6 +85,7 @@
# ATTENTION - one of three predefined values should be selected!
# "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."
+# "thin-dist: Similar to thin, but uses a distributed model rather than in-process: https://discourse.llvm.org/t/rfc-distributed-thinlto-build-for-kernel/85934"
# "none: disable LTO
: "${_use_llvm_lto:=none}"
@@ -125,7 +126,7 @@
# ATTENTION: Do not modify after this line
_is_lto_kernel() {
- [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]
+ [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" || "$_use_llvm_lto" = "thin-dist" ]]
return $?
}
@@ -298,6 +299,7 @@ prepare() {
### Select LLVM level
case "$_use_llvm_lto" in
thin) scripts/config -e LTO_CLANG_THIN;;
+ thin-dist) scripts/config -e LTO_CLANG_THIN_DIST;;
full) scripts/config -e LTO_CLANG_FULL;;
none) scripts/config -e LTO_NONE;;
*) _die "The value '$_use_llvm_lto' is invalid. Choose the correct one again.";;
diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILD
index 06264125..aee2064a 100644
--- a/linux-cachyos-bore/PKGBUILD
+++ b/linux-cachyos-bore/PKGBUILD
@@ -85,6 +85,7 @@
# ATTENTION - one of three predefined values should be selected!
# "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."
+# "thin-dist: Similar to thin, but uses a distributed model rather than in-process: https://discourse.llvm.org/t/rfc-distributed-thinlto-build-for-kernel/85934"
# "none: disable LTO
: "${_use_llvm_lto:=none}"
@@ -125,7 +126,7 @@
# ATTENTION: Do not modify after this line
_is_lto_kernel() {
- [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]
+ [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" || "$_use_llvm_lto" = "thin-dist" ]]
return $?
}
@@ -298,6 +299,7 @@ prepare() {
### Select LLVM level
case "$_use_llvm_lto" in
thin) scripts/config -e LTO_CLANG_THIN;;
+ thin-dist) scripts/config -e LTO_CLANG_THIN_DIST;;
full) scripts/config -e LTO_CLANG_FULL;;
none) scripts/config -e LTO_NONE;;
*) _die "The value '$_use_llvm_lto' is invalid. Choose the correct one again.";;
diff --git a/linux-cachyos-deckify/PKGBUILD b/linux-cachyos-deckify/PKGBUILD
index 2450e2f4..cc3ebbfa 100644
--- a/linux-cachyos-deckify/PKGBUILD
+++ b/linux-cachyos-deckify/PKGBUILD
@@ -85,6 +85,7 @@
# ATTENTION - one of three predefined values should be selected!
# "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."
+# "thin-dist: Similar to thin, but uses a distributed model rather than in-process: https://discourse.llvm.org/t/rfc-distributed-thinlto-build-for-kernel/85934"
# "none: disable LTO
: "${_use_llvm_lto:=none}"
@@ -124,7 +125,7 @@
# ATTENTION: Do not modify after this line
_is_lto_kernel() {
- [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]
+ [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" || "$_use_llvm_lto" = "thin-dist" ]]
return $?
}
@@ -299,6 +300,7 @@ prepare() {
### Select LLVM level
case "$_use_llvm_lto" in
thin) scripts/config -e LTO_CLANG_THIN;;
+ thin-dist) scripts/config -e LTO_CLANG_THIN_DIST;;
full) scripts/config -e LTO_CLANG_FULL;;
none) scripts/config -e LTO_NONE;;
*) _die "The value '$_use_llvm_lto' is invalid. Choose the correct one again.";;
diff --git a/linux-cachyos-eevdf/PKGBUILD b/linux-cachyos-eevdf/PKGBUILD
index c30635da..5b0e232a 100644
--- a/linux-cachyos-eevdf/PKGBUILD
+++ b/linux-cachyos-eevdf/PKGBUILD
@@ -85,6 +85,7 @@
# ATTENTION - one of three predefined values should be selected!
# "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."
+# "thin-dist: Similar to thin, but uses a distributed model rather than in-process: https://discourse.llvm.org/t/rfc-distributed-thinlto-build-for-kernel/85934"
# "none: disable LTO
: "${_use_llvm_lto:=none}"
@@ -125,7 +126,7 @@
# ATTENTION: Do not modify after this line
_is_lto_kernel() {
- [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]
+ [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" || "$_use_llvm_lto" = "thin-dist" ]]
return $?
}
@@ -298,6 +299,7 @@ prepare() {
### Select LLVM level
case "$_use_llvm_lto" in
thin) scripts/config -e LTO_CLANG_THIN;;
+ thin-dist) scripts/config -e LTO_CLANG_THIN_DIST;;
full) scripts/config -e LTO_CLANG_FULL;;
none) scripts/config -e LTO_NONE;;
*) _die "The value '$_use_llvm_lto' is invalid. Choose the correct one again.";;
diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILD
index ba1b0a1e..e772c004 100644
--- a/linux-cachyos-rc/PKGBUILD
+++ b/linux-cachyos-rc/PKGBUILD
@@ -85,8 +85,9 @@
# ATTENTION - one of three predefined values should be selected!
# "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."
+# "thin-dist: Similar to thin, but uses a distributed model rather than in-process: https://discourse.llvm.org/t/rfc-distributed-thinlto-build-for-kernel/85934"
# "none: disable LTO
-: "${_use_llvm_lto:=thin}"
+: "${_use_llvm_lto:=thin-dist}"
# Use suffix -lto only when requested by the user
# yes - enable -lto suffix
@@ -150,7 +151,7 @@
# ATTENTION: Do not modify after this line
_is_lto_kernel() {
- [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]
+ [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" || "$_use_llvm_lto" = "thin-dist" ]]
return $?
}
@@ -337,6 +338,7 @@ prepare() {
### Select LLVM level
case "$_use_llvm_lto" in
thin) scripts/config -e LTO_CLANG_THIN;;
+ thin-dist) scripts/config -e LTO_CLANG_THIN_DIST;;
full) scripts/config -e LTO_CLANG_FULL;;
none) scripts/config -e LTO_NONE;;
*) _die "The value '$_use_llvm_lto' is invalid. Choose the correct one again.";;
diff --git a/linux-cachyos-rt-bore/PKGBUILD b/linux-cachyos-rt-bore/PKGBUILD
index 54159a2d..72797caa 100644
--- a/linux-cachyos-rt-bore/PKGBUILD
+++ b/linux-cachyos-rt-bore/PKGBUILD
@@ -85,6 +85,7 @@
# ATTENTION - one of three predefined values should be selected!
# "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."
+# "thin-dist: Similar to thin, but uses a distributed model rather than in-process: https://discourse.llvm.org/t/rfc-distributed-thinlto-build-for-kernel/85934"
# "none: disable LTO
: "${_use_llvm_lto:=none}"
@@ -125,7 +126,7 @@
# ATTENTION: Do not modify after this line
_is_lto_kernel() {
- [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]
+ [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" || "$_use_llvm_lto" = "thin-dist" ]]
return $?
}
@@ -298,6 +299,7 @@ prepare() {
### Select LLVM level
case "$_use_llvm_lto" in
thin) scripts/config -e LTO_CLANG_THIN;;
+ thin-dist) scripts/config -e LTO_CLANG_THIN_DIST;;
full) scripts/config -e LTO_CLANG_FULL;;
none) scripts/config -e LTO_NONE;;
*) _die "The value '$_use_llvm_lto' is invalid. Choose the correct one again.";;
diff --git a/linux-cachyos-server/PKGBUILD b/linux-cachyos-server/PKGBUILD
index a65cf115..1fb9eb7a 100644
--- a/linux-cachyos-server/PKGBUILD
+++ b/linux-cachyos-server/PKGBUILD
@@ -85,6 +85,7 @@
# ATTENTION - one of three predefined values should be selected!
# "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."
+# "thin-dist: Similar to thin, but uses a distributed model rather than in-process: https://discourse.llvm.org/t/rfc-distributed-thinlto-build-for-kernel/85934"
# "none: disable LTO
: "${_use_llvm_lto:=none}"
@@ -125,7 +126,7 @@
# ATTENTION: Do not modify after this line
_is_lto_kernel() {
- [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]
+ [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" || "$_use_llvm_lto" = "thin-dist" ]]
return $?
}
@@ -298,6 +299,7 @@ prepare() {
### Select LLVM level
case "$_use_llvm_lto" in
thin) scripts/config -e LTO_CLANG_THIN;;
+ thin-dist) scripts/config -e LTO_CLANG_THIN_DIST;;
full) scripts/config -e LTO_CLANG_FULL;;
none) scripts/config -e LTO_NONE;;
*) _die "The value '$_use_llvm_lto' is invalid. Choose the correct one again.";;
diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILD
index bd093c5b..60403e00 100644
--- a/linux-cachyos/PKGBUILD
+++ b/linux-cachyos/PKGBUILD
@@ -85,6 +85,7 @@
# ATTENTION - one of three predefined values should be selected!
# "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."
+# "thin-dist: Similar to thin, but uses a distributed model rather than in-process: https://discourse.llvm.org/t/rfc-distributed-thinlto-build-for-kernel/85934"
# "none: disable LTO
: "${_use_llvm_lto:=thin}"
@@ -150,7 +151,7 @@
# ATTENTION: Do not modify after this line
_is_lto_kernel() {
- [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]]
+ [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" || "$_use_llvm_lto" = "thin-dist" ]]
return $?
}
@@ -338,6 +339,7 @@ prepare() {
### Select LLVM level
case "$_use_llvm_lto" in
thin) scripts/config -e LTO_CLANG_THIN;;
+ thin-dist) scripts/config -e LTO_CLANG_THIN_DIST;;
full) scripts/config -e LTO_CLANG_FULL;;
none) scripts/config -e LTO_NONE;;
*) _die "The value '$_use_llvm_lto' is invalid. Choose the correct one again.";;