Skip to content

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

Fix THP variable

Peter Jung377ac56ed441
diff --git a/linux-bore/PKGBUILD b/linux-bore/PKGBUILD
index c73f14ba..01b33180 100644
--- a/linux-bore/PKGBUILD
+++ b/linux-bore/PKGBUILD
@@ -100,10 +100,10 @@ _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
+# 'madvise' - madvise, 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'}
+_hugepage=${_hugepage-'always'}
## Enable DAMON
_damon=${_damon-}
@@ -641,8 +641,8 @@ prepare() {
echo "Enable THP always..."
scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \
--enable TRANSPARENT_HUGEPAGE_ALWAYS \
- elif [ "$_hugepage" = "madivse" ]; then
- echo "Enable THP madivse..."
+ elif [ "$_hugepage" = "madvise" ]; then
+ echo "Enable THP madvise..."
scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \
--enable TRANSPARENT_HUGEPAGE_MADVISE
else
diff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILD
index 3fe5f2f7..a1be28ba 100644
--- a/linux-cachyos-bmq/PKGBUILD
+++ b/linux-cachyos-bmq/PKGBUILD
@@ -100,10 +100,10 @@ _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
+# 'madvise' - madvise, 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'}
+_hugepage=${_hugepage-'always'}
## Enable DAMON
_damon=${_damon-}
@@ -641,8 +641,8 @@ prepare() {
echo "Enable THP always..."
scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \
--enable TRANSPARENT_HUGEPAGE_ALWAYS \
- elif [ "$_hugepage" = "madivse" ]; then
- echo "Enable THP madivse..."
+ elif [ "$_hugepage" = "madvise" ]; then
+ echo "Enable THP madvise..."
scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \
--enable TRANSPARENT_HUGEPAGE_MADVISE
else
diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILD
index 0d72949d..3e101600 100644
--- a/linux-cachyos-bore/PKGBUILD
+++ b/linux-cachyos-bore/PKGBUILD
@@ -100,10 +100,10 @@ _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
+# 'madvise' - madvise, 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'}
+_hugepage=${_hugepage-'always'}
## Enable DAMON
_damon=${_damon-}
@@ -641,8 +641,8 @@ prepare() {
echo "Enable THP always..."
scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \
--enable TRANSPARENT_HUGEPAGE_ALWAYS \
- elif [ "$_hugepage" = "madivse" ]; then
- echo "Enable THP madivse..."
+ elif [ "$_hugepage" = "madvise" ]; then
+ echo "Enable THP madvise..."
scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \
--enable TRANSPARENT_HUGEPAGE_MADVISE
else
diff --git a/linux-cachyos-cacule/PKGBUILD b/linux-cachyos-cacule/PKGBUILD
index d0a96584..911d0612 100644
--- a/linux-cachyos-cacule/PKGBUILD
+++ b/linux-cachyos-cacule/PKGBUILD
@@ -100,10 +100,10 @@ _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
+# 'madvise' - madvise, 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'}
+_hugepage=${_hugepage-'always'}
## Enable DAMON
_damon=${_damon-}
@@ -641,8 +641,8 @@ prepare() {
echo "Enable THP always..."
scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \
--enable TRANSPARENT_HUGEPAGE_ALWAYS \
- elif [ "$_hugepage" = "madivse" ]; then
- echo "Enable THP madivse..."
+ elif [ "$_hugepage" = "madvise" ]; then
+ echo "Enable THP madvise..."
scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \
--enable TRANSPARENT_HUGEPAGE_MADVISE
else
diff --git a/linux-cachyos-cfs/PKGBUILD b/linux-cachyos-cfs/PKGBUILD
index 7872b386..f08b7f8d 100644
--- a/linux-cachyos-cfs/PKGBUILD
+++ b/linux-cachyos-cfs/PKGBUILD
@@ -100,10 +100,10 @@ _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
+# 'madvise' - madvise, 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'}
+_hugepage=${_hugepage-'always'}
## Enable DAMON
_damon=${_damon-}
@@ -641,8 +641,8 @@ prepare() {
echo "Enable THP always..."
scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \
--enable TRANSPARENT_HUGEPAGE_ALWAYS \
- elif [ "$_hugepage" = "madivse" ]; then
- echo "Enable THP madivse..."
+ elif [ "$_hugepage" = "madvise" ]; then
+ echo "Enable THP madvise..."
scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \
--enable TRANSPARENT_HUGEPAGE_MADVISE
else
diff --git a/linux-cachyos-hardened/PKGBUILD b/linux-cachyos-hardened/PKGBUILD
index c7b4173d..481d9d6b 100644
--- a/linux-cachyos-hardened/PKGBUILD
+++ b/linux-cachyos-hardened/PKGBUILD
@@ -100,10 +100,10 @@ _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
+# 'madvise' - madvise, 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'}
+_hugepage=${_hugepage-'always'}
## Enable DAMON
_damon=${_damon-}
@@ -645,8 +645,8 @@ prepare() {
echo "Enable THP always..."
scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \
--enable TRANSPARENT_HUGEPAGE_ALWAYS \
- elif [ "$_hugepage" = "madivse" ]; then
- echo "Enable THP madivse..."
+ elif [ "$_hugepage" = "madvise" ]; then
+ echo "Enable THP madvise..."
scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \
--enable TRANSPARENT_HUGEPAGE_MADVISE
else
diff --git a/linux-cachyos-pds/PKGBUILD b/linux-cachyos-pds/PKGBUILD
index f8d251f6..f47dd68e 100644
--- a/linux-cachyos-pds/PKGBUILD
+++ b/linux-cachyos-pds/PKGBUILD
@@ -100,10 +100,10 @@ _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
+# 'madvise' - madvise, 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'}
+_hugepage=${_hugepage-'always'}
## Enable DAMON
_damon=${_damon-}
@@ -641,8 +641,8 @@ prepare() {
echo "Enable THP always..."
scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \
--enable TRANSPARENT_HUGEPAGE_ALWAYS \
- elif [ "$_hugepage" = "madivse" ]; then
- echo "Enable THP madivse..."
+ elif [ "$_hugepage" = "madvise" ]; then
+ echo "Enable THP madvise..."
scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \
--enable TRANSPARENT_HUGEPAGE_MADVISE
else
diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILD
index 47504183..09de88c0 100644
--- a/linux-cachyos-rc/PKGBUILD
+++ b/linux-cachyos-rc/PKGBUILD
@@ -100,10 +100,10 @@ _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
+# 'madvise' - madvise, 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'}
+_hugepage=${_hugepage-'always'}
## Enable DAMON
_damon=${_damon-}
@@ -641,8 +641,8 @@ prepare() {
echo "Enable THP always..."
scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \
--enable TRANSPARENT_HUGEPAGE_ALWAYS \
- elif [ "$_hugepage" = "madivse" ]; then
- echo "Enable THP madivse..."
+ elif [ "$_hugepage" = "madvise" ]; then
+ echo "Enable THP madvise..."
scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \
--enable TRANSPARENT_HUGEPAGE_MADVISE
else
diff --git a/linux-cachyos-tt/PKGBUILD b/linux-cachyos-tt/PKGBUILD
index 4e037703..9ef63e0c 100644
--- a/linux-cachyos-tt/PKGBUILD
+++ b/linux-cachyos-tt/PKGBUILD
@@ -100,10 +100,10 @@ _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
+# 'madvise' - madvise, 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'}
+_hugepage=${_hugepage-'always'}
## Enable DAMON
_damon=${_damon-}
@@ -641,8 +641,8 @@ prepare() {
echo "Enable THP always..."
scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \
--enable TRANSPARENT_HUGEPAGE_ALWAYS \
- elif [ "$_hugepage" = "madivse" ]; then
- echo "Enable THP madivse..."
+ elif [ "$_hugepage" = "madvise" ]; then
+ echo "Enable THP madvise..."
scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \
--enable TRANSPARENT_HUGEPAGE_MADVISE
else
diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILD
index 66f3e2cf..a28187e8 100644
--- a/linux-cachyos/PKGBUILD
+++ b/linux-cachyos/PKGBUILD
@@ -100,10 +100,10 @@ _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
+# 'madvise' - madvise, 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'}
+_hugepage=${_hugepage-'always'}
## Enable DAMON
_damon=${_damon-}
@@ -641,8 +641,8 @@ prepare() {
echo "Enable THP always..."
scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \
--enable TRANSPARENT_HUGEPAGE_ALWAYS \
- elif [ "$_hugepage" = "madivse" ]; then
- echo "Enable THP madivse..."
+ elif [ "$_hugepage" = "madvise" ]; then
+ echo "Enable THP madvise..."
scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \
--enable TRANSPARENT_HUGEPAGE_MADVISE
else
diff --git a/linux-cacule-rdb/PKGBUILD b/linux-cacule-rdb/PKGBUILD
index 99175947..bf21a046 100644
--- a/linux-cacule-rdb/PKGBUILD
+++ b/linux-cacule-rdb/PKGBUILD
@@ -100,10 +100,10 @@ _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
+# 'madvise' - madvise, 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'}
+_hugepage=${_hugepage-'always'}
## Enable DAMON
_damon=${_damon-}
@@ -641,8 +641,8 @@ prepare() {
echo "Enable THP always..."
scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \
--enable TRANSPARENT_HUGEPAGE_ALWAYS \
- elif [ "$_hugepage" = "madivse" ]; then
- echo "Enable THP madivse..."
+ elif [ "$_hugepage" = "madvise" ]; then
+ echo "Enable THP madvise..."
scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \
--enable TRANSPARENT_HUGEPAGE_MADVISE
else
diff --git a/linux-cacule/PKGBUILD b/linux-cacule/PKGBUILD
index df126292..bf1cd4fe 100644
--- a/linux-cacule/PKGBUILD
+++ b/linux-cacule/PKGBUILD
@@ -100,10 +100,10 @@ _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
+# 'madvise' - madvise, 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'}
+_hugepage=${_hugepage-'always'}
## Enable DAMON
_damon=${_damon-}
@@ -641,8 +641,8 @@ prepare() {
echo "Enable THP always..."
scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \
--enable TRANSPARENT_HUGEPAGE_ALWAYS \
- elif [ "$_hugepage" = "madivse" ]; then
- echo "Enable THP madivse..."
+ elif [ "$_hugepage" = "madvise" ]; then
+ echo "Enable THP madvise..."
scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \
--enable TRANSPARENT_HUGEPAGE_MADVISE
else
diff --git a/linux-tt/PKGBUILD b/linux-tt/PKGBUILD
index fe23615d..b0ca0072 100644
--- a/linux-tt/PKGBUILD
+++ b/linux-tt/PKGBUILD
@@ -100,10 +100,10 @@ _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
+# 'madvise' - madvise, 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'}
+_hugepage=${_hugepage-'always'}
## Enable DAMON
_damon=${_damon-}
@@ -641,8 +641,8 @@ prepare() {
echo "Enable THP always..."
scripts/config --disable TRANSPARENT_HUGEPAGE_MADVISE \
--enable TRANSPARENT_HUGEPAGE_ALWAYS \
- elif [ "$_hugepage" = "madivse" ]; then
- echo "Enable THP madivse..."
+ elif [ "$_hugepage" = "madvise" ]; then
+ echo "Enable THP madvise..."
scripts/config --disable TRANSPARENT_HUGEPAGE_ALWAYS \
--enable TRANSPARENT_HUGEPAGE_MADVISE
else