Archlinux Kernel based on different schedulers and some other performance improvements.
Shell archlinuxbaby-schedcachycachy-schedulercachyoscacule-schedkernellinux-kernelperformanceperformance-tuning
Add transparent hugepage variable
Peter Jung275f4a2ac14e
diff --git a/linux-bore/PKGBUILD b/linux-bore/PKGBUILDindex 5df82527..c73f14ba 100644--- a/linux-bore/PKGBUILD+++ b/linux-bore/PKGBUILD@@ -97,6 +97,14 @@ _kyber_disable=${_kyber_disable-y}# 'none' - disable multigenerational LRU_lru_config=${_lru_config-'standard'}+### Transparent Hugepages+# ATTENTION - one of two predefined values should be selected!+# 'always' - always enable THP+# 'madivse' - madivse, prevent applications from allocating more memory resources than necessary+# More infos here:+# https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/performance_tuning_guide/sect-red_hat_enterprise_linux-performance_tuning_guide-configuring_transparent_huge_pages+_hugepage=${_hugepage-'full'}+## Enable DAMON_damon=${_damon-}@@ -628,6 +636,25 @@ prepare() {exitfi+ ### Select THP+ if [ "$_hugepage" = "always" ]; then+ echo "Enable THP always..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \+ --enable TRANSPARENT_HUGEPAGE_ALWAYS \+ elif [ "$_hugepage" = "madivse" ]; then+ echo "Enable THP madivse..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \+ --enable 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+ error "Setting THP has failed!"+ exit+ fi+### Enable DAMONif [ -n "$_damon" ]; thenecho "Enabling DAMON..."diff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILDindex 68e9726a..3fe5f2f7 100644--- a/linux-cachyos-bmq/PKGBUILD+++ b/linux-cachyos-bmq/PKGBUILD@@ -97,6 +97,14 @@ _kyber_disable=${_kyber_disable-y}# 'none' - disable multigenerational LRU_lru_config=${_lru_config-'standard'}+### Transparent Hugepages+# ATTENTION - one of two predefined values should be selected!+# 'always' - always enable THP+# 'madivse' - madivse, prevent applications from allocating more memory resources than necessary+# More infos here:+# https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/performance_tuning_guide/sect-red_hat_enterprise_linux-performance_tuning_guide-configuring_transparent_huge_pages+_hugepage=${_hugepage-'full'}+## Enable DAMON_damon=${_damon-}@@ -628,6 +636,25 @@ prepare() {exitfi+ ### Select THP+ if [ "$_hugepage" = "always" ]; then+ echo "Enable THP always..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \+ --enable TRANSPARENT_HUGEPAGE_ALWAYS \+ elif [ "$_hugepage" = "madivse" ]; then+ echo "Enable THP madivse..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \+ --enable 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+ error "Setting THP has failed!"+ exit+ fi+### Enable DAMONif [ -n "$_damon" ]; thenecho "Enabling DAMON..."diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILDindex 1b4c3f19..0d72949d 100644--- a/linux-cachyos-bore/PKGBUILD+++ b/linux-cachyos-bore/PKGBUILD@@ -97,6 +97,14 @@ _kyber_disable=${_kyber_disable-y}# 'none' - disable multigenerational LRU_lru_config=${_lru_config-'standard'}+### Transparent Hugepages+# ATTENTION - one of two predefined values should be selected!+# 'always' - always enable THP+# 'madivse' - madivse, prevent applications from allocating more memory resources than necessary+# More infos here:+# https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/performance_tuning_guide/sect-red_hat_enterprise_linux-performance_tuning_guide-configuring_transparent_huge_pages+_hugepage=${_hugepage-'full'}+## Enable DAMON_damon=${_damon-}@@ -628,6 +636,25 @@ prepare() {exitfi+ ### Select THP+ if [ "$_hugepage" = "always" ]; then+ echo "Enable THP always..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \+ --enable TRANSPARENT_HUGEPAGE_ALWAYS \+ elif [ "$_hugepage" = "madivse" ]; then+ echo "Enable THP madivse..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \+ --enable 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+ error "Setting THP has failed!"+ exit+ fi+### Enable DAMONif [ -n "$_damon" ]; thenecho "Enabling DAMON..."diff --git a/linux-cachyos-cacule/PKGBUILD b/linux-cachyos-cacule/PKGBUILDindex fcce7004..d0a96584 100644--- a/linux-cachyos-cacule/PKGBUILD+++ b/linux-cachyos-cacule/PKGBUILD@@ -97,6 +97,14 @@ _kyber_disable=${_kyber_disable-y}# 'none' - disable multigenerational LRU_lru_config=${_lru_config-'standard'}+### Transparent Hugepages+# ATTENTION - one of two predefined values should be selected!+# 'always' - always enable THP+# 'madivse' - madivse, prevent applications from allocating more memory resources than necessary+# More infos here:+# https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/performance_tuning_guide/sect-red_hat_enterprise_linux-performance_tuning_guide-configuring_transparent_huge_pages+_hugepage=${_hugepage-'full'}+## Enable DAMON_damon=${_damon-}@@ -628,6 +636,25 @@ prepare() {exitfi+ ### Select THP+ if [ "$_hugepage" = "always" ]; then+ echo "Enable THP always..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \+ --enable TRANSPARENT_HUGEPAGE_ALWAYS \+ elif [ "$_hugepage" = "madivse" ]; then+ echo "Enable THP madivse..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \+ --enable 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+ error "Setting THP has failed!"+ exit+ fi+### Enable DAMONif [ -n "$_damon" ]; thenecho "Enabling DAMON..."diff --git a/linux-cachyos-cfs/PKGBUILD b/linux-cachyos-cfs/PKGBUILDindex 57170ba2..7872b386 100644--- a/linux-cachyos-cfs/PKGBUILD+++ b/linux-cachyos-cfs/PKGBUILD@@ -97,6 +97,14 @@ _kyber_disable=${_kyber_disable-y}# 'none' - disable multigenerational LRU_lru_config=${_lru_config-'standard'}+### Transparent Hugepages+# ATTENTION - one of two predefined values should be selected!+# 'always' - always enable THP+# 'madivse' - madivse, prevent applications from allocating more memory resources than necessary+# More infos here:+# https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/performance_tuning_guide/sect-red_hat_enterprise_linux-performance_tuning_guide-configuring_transparent_huge_pages+_hugepage=${_hugepage-'full'}+## Enable DAMON_damon=${_damon-}@@ -628,6 +636,25 @@ prepare() {exitfi+ ### Select THP+ if [ "$_hugepage" = "always" ]; then+ echo "Enable THP always..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \+ --enable TRANSPARENT_HUGEPAGE_ALWAYS \+ elif [ "$_hugepage" = "madivse" ]; then+ echo "Enable THP madivse..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \+ --enable 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+ error "Setting THP has failed!"+ exit+ fi+### Enable DAMONif [ -n "$_damon" ]; thenecho "Enabling DAMON..."diff --git a/linux-cachyos-hardened/PKGBUILD b/linux-cachyos-hardened/PKGBUILDindex 8323d139..c7b4173d 100644--- a/linux-cachyos-hardened/PKGBUILD+++ b/linux-cachyos-hardened/PKGBUILD@@ -97,6 +97,14 @@ _kyber_disable=${_kyber_disable-y}# 'none' - disable multigenerational LRU_lru_config=${_lru_config-'standard'}+### Transparent Hugepages+# ATTENTION - one of two predefined values should be selected!+# 'always' - always enable THP+# 'madivse' - madivse, prevent applications from allocating more memory resources than necessary+# More infos here:+# https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/performance_tuning_guide/sect-red_hat_enterprise_linux-performance_tuning_guide-configuring_transparent_huge_pages+_hugepage=${_hugepage-'full'}+## Enable DAMON_damon=${_damon-}@@ -632,6 +640,25 @@ prepare() {exitfi+ ### Select THP+ if [ "$_hugepage" = "always" ]; then+ echo "Enable THP always..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \+ --enable TRANSPARENT_HUGEPAGE_ALWAYS \+ elif [ "$_hugepage" = "madivse" ]; then+ echo "Enable THP madivse..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \+ --enable 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+ error "Setting THP has failed!"+ exit+ fi+### Enable DAMONif [ -n "$_damon" ]; thenecho "Enabling DAMON..."diff --git a/linux-cachyos-pds/PKGBUILD b/linux-cachyos-pds/PKGBUILDindex 604c647d..f8d251f6 100644--- a/linux-cachyos-pds/PKGBUILD+++ b/linux-cachyos-pds/PKGBUILD@@ -97,6 +97,14 @@ _kyber_disable=${_kyber_disable-y}# 'none' - disable multigenerational LRU_lru_config=${_lru_config-'standard'}+### Transparent Hugepages+# ATTENTION - one of two predefined values should be selected!+# 'always' - always enable THP+# 'madivse' - madivse, prevent applications from allocating more memory resources than necessary+# More infos here:+# https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/performance_tuning_guide/sect-red_hat_enterprise_linux-performance_tuning_guide-configuring_transparent_huge_pages+_hugepage=${_hugepage-'full'}+## Enable DAMON_damon=${_damon-}@@ -628,6 +636,25 @@ prepare() {exitfi+ ### Select THP+ if [ "$_hugepage" = "always" ]; then+ echo "Enable THP always..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \+ --enable TRANSPARENT_HUGEPAGE_ALWAYS \+ elif [ "$_hugepage" = "madivse" ]; then+ echo "Enable THP madivse..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \+ --enable 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+ error "Setting THP has failed!"+ exit+ fi+### Enable DAMONif [ -n "$_damon" ]; thenecho "Enabling DAMON..."diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILDindex 6035c3b1..47504183 100644--- a/linux-cachyos-rc/PKGBUILD+++ b/linux-cachyos-rc/PKGBUILD@@ -97,6 +97,14 @@ _kyber_disable=${_kyber_disable-y}# 'none' - disable multigenerational LRU_lru_config=${_lru_config-'standard'}+### Transparent Hugepages+# ATTENTION - one of two predefined values should be selected!+# 'always' - always enable THP+# 'madivse' - madivse, prevent applications from allocating more memory resources than necessary+# More infos here:+# https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/performance_tuning_guide/sect-red_hat_enterprise_linux-performance_tuning_guide-configuring_transparent_huge_pages+_hugepage=${_hugepage-'full'}+## Enable DAMON_damon=${_damon-}@@ -628,6 +636,25 @@ prepare() {exitfi+ ### Select THP+ if [ "$_hugepage" = "always" ]; then+ echo "Enable THP always..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \+ --enable TRANSPARENT_HUGEPAGE_ALWAYS \+ elif [ "$_hugepage" = "madivse" ]; then+ echo "Enable THP madivse..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \+ --enable 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+ error "Setting THP has failed!"+ exit+ fi+### Enable DAMONif [ -n "$_damon" ]; thenecho "Enabling DAMON..."diff --git a/linux-cachyos-tt/PKGBUILD b/linux-cachyos-tt/PKGBUILDindex bfb0beb8..4e037703 100644--- a/linux-cachyos-tt/PKGBUILD+++ b/linux-cachyos-tt/PKGBUILD@@ -97,6 +97,14 @@ _kyber_disable=${_kyber_disable-y}# 'none' - disable multigenerational LRU_lru_config=${_lru_config-'standard'}+### Transparent Hugepages+# ATTENTION - one of two predefined values should be selected!+# 'always' - always enable THP+# 'madivse' - madivse, prevent applications from allocating more memory resources than necessary+# More infos here:+# https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/performance_tuning_guide/sect-red_hat_enterprise_linux-performance_tuning_guide-configuring_transparent_huge_pages+_hugepage=${_hugepage-'full'}+## Enable DAMON_damon=${_damon-}@@ -628,6 +636,25 @@ prepare() {exitfi+ ### Select THP+ if [ "$_hugepage" = "always" ]; then+ echo "Enable THP always..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \+ --enable TRANSPARENT_HUGEPAGE_ALWAYS \+ elif [ "$_hugepage" = "madivse" ]; then+ echo "Enable THP madivse..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \+ --enable 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+ error "Setting THP has failed!"+ exit+ fi+### Enable DAMONif [ -n "$_damon" ]; thenecho "Enabling DAMON..."diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILDindex b99643fc..66f3e2cf 100644--- a/linux-cachyos/PKGBUILD+++ b/linux-cachyos/PKGBUILD@@ -97,6 +97,14 @@ _kyber_disable=${_kyber_disable-y}# 'none' - disable multigenerational LRU_lru_config=${_lru_config-'standard'}+### Transparent Hugepages+# ATTENTION - one of two predefined values should be selected!+# 'always' - always enable THP+# 'madivse' - madivse, prevent applications from allocating more memory resources than necessary+# More infos here:+# https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/performance_tuning_guide/sect-red_hat_enterprise_linux-performance_tuning_guide-configuring_transparent_huge_pages+_hugepage=${_hugepage-'full'}+## Enable DAMON_damon=${_damon-}@@ -628,6 +636,25 @@ prepare() {exitfi+ ### Select THP+ if [ "$_hugepage" = "always" ]; then+ echo "Enable THP always..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \+ --enable TRANSPARENT_HUGEPAGE_ALWAYS \+ elif [ "$_hugepage" = "madivse" ]; then+ echo "Enable THP madivse..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \+ --enable 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+ error "Setting THP has failed!"+ exit+ fi+### Enable DAMONif [ -n "$_damon" ]; thenecho "Enabling DAMON..."diff --git a/linux-cacule-rdb/PKGBUILD b/linux-cacule-rdb/PKGBUILDindex 5d4630c0..99175947 100644--- a/linux-cacule-rdb/PKGBUILD+++ b/linux-cacule-rdb/PKGBUILD@@ -97,6 +97,14 @@ _kyber_disable=${_kyber_disable-y}# 'none' - disable multigenerational LRU_lru_config=${_lru_config-'standard'}+### Transparent Hugepages+# ATTENTION - one of two predefined values should be selected!+# 'always' - always enable THP+# 'madivse' - madivse, prevent applications from allocating more memory resources than necessary+# More infos here:+# https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/performance_tuning_guide/sect-red_hat_enterprise_linux-performance_tuning_guide-configuring_transparent_huge_pages+_hugepage=${_hugepage-'full'}+## Enable DAMON_damon=${_damon-}@@ -628,6 +636,25 @@ prepare() {exitfi+ ### Select THP+ if [ "$_hugepage" = "always" ]; then+ echo "Enable THP always..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \+ --enable TRANSPARENT_HUGEPAGE_ALWAYS \+ elif [ "$_hugepage" = "madivse" ]; then+ echo "Enable THP madivse..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \+ --enable 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+ error "Setting THP has failed!"+ exit+ fi+### Enable DAMONif [ -n "$_damon" ]; thenecho "Enabling DAMON..."diff --git a/linux-cacule/PKGBUILD b/linux-cacule/PKGBUILDindex b771262b..df126292 100644--- a/linux-cacule/PKGBUILD+++ b/linux-cacule/PKGBUILD@@ -97,6 +97,14 @@ _kyber_disable=${_kyber_disable-y}# 'none' - disable multigenerational LRU_lru_config=${_lru_config-'standard'}+### Transparent Hugepages+# ATTENTION - one of two predefined values should be selected!+# 'always' - always enable THP+# 'madivse' - madivse, prevent applications from allocating more memory resources than necessary+# More infos here:+# https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/performance_tuning_guide/sect-red_hat_enterprise_linux-performance_tuning_guide-configuring_transparent_huge_pages+_hugepage=${_hugepage-'full'}+## Enable DAMON_damon=${_damon-}@@ -628,6 +636,25 @@ prepare() {exitfi+ ### Select THP+ if [ "$_hugepage" = "always" ]; then+ echo "Enable THP always..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \+ --enable TRANSPARENT_HUGEPAGE_ALWAYS \+ elif [ "$_hugepage" = "madivse" ]; then+ echo "Enable THP madivse..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \+ --enable 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+ error "Setting THP has failed!"+ exit+ fi+### Enable DAMONif [ -n "$_damon" ]; thenecho "Enabling DAMON..."diff --git a/linux-tt/PKGBUILD b/linux-tt/PKGBUILDindex 3bffa23b..fe23615d 100644--- a/linux-tt/PKGBUILD+++ b/linux-tt/PKGBUILD@@ -97,6 +97,14 @@ _kyber_disable=${_kyber_disable-y}# 'none' - disable multigenerational LRU_lru_config=${_lru_config-'standard'}+### Transparent Hugepages+# ATTENTION - one of two predefined values should be selected!+# 'always' - always enable THP+# 'madivse' - madivse, prevent applications from allocating more memory resources than necessary+# More infos here:+# https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/performance_tuning_guide/sect-red_hat_enterprise_linux-performance_tuning_guide-configuring_transparent_huge_pages+_hugepage=${_hugepage-'full'}+## Enable DAMON_damon=${_damon-}@@ -628,6 +636,25 @@ prepare() {exitfi+ ### Select THP+ if [ "$_hugepage" = "always" ]; then+ echo "Enable THP always..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \+ --enable TRANSPARENT_HUGEPAGE_ALWAYS \+ elif [ "$_hugepage" = "madivse" ]; then+ echo "Enable THP madivse..."+ scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \+ --enable 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+ error "Setting THP has failed!"+ exit+ fi+### Enable DAMONif [ -n "$_damon" ]; thenecho "Enabling DAMON..."