Skip to content

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

Bring back vma flag

Piotr Gorskicca13393c678
diff --git a/linux-bore/.SRCINFO b/linux-bore/.SRCINFO
index 41362162..7ca0f334 100644
--- a/linux-bore/.SRCINFO
+++ b/linux-bore/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Wed Dec 28 19:47:59 UTC 2022
pkgbase = linux-bore
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.1.1
diff --git a/linux-bore/PKGBUILD b/linux-bore/PKGBUILD
index 3ad22259..c2cb7846 100644
--- a/linux-bore/PKGBUILD
+++ b/linux-bore/PKGBUILD
@@ -97,6 +97,13 @@ _kyber_disable=${_kyber_disable-y}
# 'none' - disable multigenerational LRU
_lru_config=${_lru_config-'standard'}
+### Enable per-VMA locking
+# ATTENTION - one of three predefined values should be selected!
+# 'standard' - enable per-VMA locking
+# 'stats' - enable per-VMA locking with stats
+# 'none' - disable per-VMA locking
+_vma_config=${_vma_config-'standard'}
+
### Transparent Hugepages
# ATTENTION - one of two predefined values should be selected!
# 'always' - always enable THP
@@ -500,7 +507,7 @@ prepare() {
scripts/config --set-val NR_CPUS "$_nr_cpus"
else
echo "Setting default NR_CPUS..."
- scripts/config --set-val NR_CPUS 320
+ scripts/config --set-val NR_CPUS 128
fi
### Disable MQ Deadline I/O scheduler
@@ -636,6 +643,28 @@ prepare() {
exit
fi
+ ### Select VMA config
+ if [ "$_vma_config" = "standard" ]; then
+ echo "Enabling per-VMA locking..."
+ scripts/config --enable PER_VMA_LOCK \
+ --disable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "stats" ]; then
+ echo "Enabling per-VMA locking with stats..."
+ scripts/config --enable PER_VMA_LOCK \
+ --enable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "none" ]; then
+ echo "Disabling per-VMA locking..."
+ scripts/config --disable PER_VMA_LOCK
+ else
+ if [ -n "$_vma_config" ]; then
+ error "The value $_vma_config is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Enabling per-VMA locking failed!"
+ exit
+ fi
+
### Select THP
if [ "$_hugepage" = "always" ]; then
echo "Enable THP always..."
diff --git a/linux-cachyos-bmq/.SRCINFO b/linux-cachyos-bmq/.SRCINFO
index 7150e0e7..3a61aa8b 100644
--- a/linux-cachyos-bmq/.SRCINFO
+++ b/linux-cachyos-bmq/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Wed Dec 28 19:48:24 UTC 2022
pkgbase = linux-cachyos-bmq
pkgdesc = Linux BMQ scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.1.1
diff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILD
index a15723be..92d22924 100644
--- a/linux-cachyos-bmq/PKGBUILD
+++ b/linux-cachyos-bmq/PKGBUILD
@@ -97,6 +97,13 @@ _kyber_disable=${_kyber_disable-y}
# 'none' - disable multigenerational LRU
_lru_config=${_lru_config-'standard'}
+### Enable per-VMA locking
+# ATTENTION - one of three predefined values should be selected!
+# 'standard' - enable per-VMA locking
+# 'stats' - enable per-VMA locking with stats
+# 'none' - disable per-VMA locking
+_vma_config=${_vma_config-'standard'}
+
### Transparent Hugepages
# ATTENTION - one of two predefined values should be selected!
# 'always' - always enable THP
@@ -500,7 +507,7 @@ prepare() {
scripts/config --set-val NR_CPUS "$_nr_cpus"
else
echo "Setting default NR_CPUS..."
- scripts/config --set-val NR_CPUS 320
+ scripts/config --set-val NR_CPUS 128
fi
### Disable MQ Deadline I/O scheduler
@@ -636,6 +643,28 @@ prepare() {
exit
fi
+ ### Select VMA config
+ if [ "$_vma_config" = "standard" ]; then
+ echo "Enabling per-VMA locking..."
+ scripts/config --enable PER_VMA_LOCK \
+ --disable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "stats" ]; then
+ echo "Enabling per-VMA locking with stats..."
+ scripts/config --enable PER_VMA_LOCK \
+ --enable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "none" ]; then
+ echo "Disabling per-VMA locking..."
+ scripts/config --disable PER_VMA_LOCK
+ else
+ if [ -n "$_vma_config" ]; then
+ error "The value $_vma_config is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Enabling per-VMA locking failed!"
+ exit
+ fi
+
### Select THP
if [ "$_hugepage" = "always" ]; then
echo "Enable THP always..."
diff --git a/linux-cachyos-bore/.SRCINFO b/linux-cachyos-bore/.SRCINFO
index 4614d311..193e52b2 100644
--- a/linux-cachyos-bore/.SRCINFO
+++ b/linux-cachyos-bore/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Wed Dec 28 19:48:37 UTC 2022
pkgbase = linux-cachyos-bore
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.1.1
diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILD
index 99e3e186..3825b307 100644
--- a/linux-cachyos-bore/PKGBUILD
+++ b/linux-cachyos-bore/PKGBUILD
@@ -97,6 +97,13 @@ _kyber_disable=${_kyber_disable-y}
# 'none' - disable multigenerational LRU
_lru_config=${_lru_config-'standard'}
+### Enable per-VMA locking
+# ATTENTION - one of three predefined values should be selected!
+# 'standard' - enable per-VMA locking
+# 'stats' - enable per-VMA locking with stats
+# 'none' - disable per-VMA locking
+_vma_config=${_vma_config-'standard'}
+
### Transparent Hugepages
# ATTENTION - one of two predefined values should be selected!
# 'always' - always enable THP
@@ -500,7 +507,7 @@ prepare() {
scripts/config --set-val NR_CPUS "$_nr_cpus"
else
echo "Setting default NR_CPUS..."
- scripts/config --set-val NR_CPUS 320
+ scripts/config --set-val NR_CPUS 128
fi
### Disable MQ Deadline I/O scheduler
@@ -636,6 +643,28 @@ prepare() {
exit
fi
+ ### Select VMA config
+ if [ "$_vma_config" = "standard" ]; then
+ echo "Enabling per-VMA locking..."
+ scripts/config --enable PER_VMA_LOCK \
+ --disable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "stats" ]; then
+ echo "Enabling per-VMA locking with stats..."
+ scripts/config --enable PER_VMA_LOCK \
+ --enable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "none" ]; then
+ echo "Disabling per-VMA locking..."
+ scripts/config --disable PER_VMA_LOCK
+ else
+ if [ -n "$_vma_config" ]; then
+ error "The value $_vma_config is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Enabling per-VMA locking failed!"
+ exit
+ fi
+
### Select THP
if [ "$_hugepage" = "always" ]; then
echo "Enable THP always..."
diff --git a/linux-cachyos-cacule/.SRCINFO b/linux-cachyos-cacule/.SRCINFO
index fd9ada6f..90f13610 100644
--- a/linux-cachyos-cacule/.SRCINFO
+++ b/linux-cachyos-cacule/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Wed Dec 28 19:48:49 UTC 2022
pkgbase = linux-cachyos-cacule
pkgdesc = Linux cacULE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.1.1
diff --git a/linux-cachyos-cacule/PKGBUILD b/linux-cachyos-cacule/PKGBUILD
index 965d33d9..ad24ee8e 100644
--- a/linux-cachyos-cacule/PKGBUILD
+++ b/linux-cachyos-cacule/PKGBUILD
@@ -97,6 +97,13 @@ _kyber_disable=${_kyber_disable-y}
# 'none' - disable multigenerational LRU
_lru_config=${_lru_config-'standard'}
+### Enable per-VMA locking
+# ATTENTION - one of three predefined values should be selected!
+# 'standard' - enable per-VMA locking
+# 'stats' - enable per-VMA locking with stats
+# 'none' - disable per-VMA locking
+_vma_config=${_vma_config-'standard'}
+
### Transparent Hugepages
# ATTENTION - one of two predefined values should be selected!
# 'always' - always enable THP
@@ -500,7 +507,7 @@ prepare() {
scripts/config --set-val NR_CPUS "$_nr_cpus"
else
echo "Setting default NR_CPUS..."
- scripts/config --set-val NR_CPUS 320
+ scripts/config --set-val NR_CPUS 128
fi
### Disable MQ Deadline I/O scheduler
@@ -636,6 +643,28 @@ prepare() {
exit
fi
+ ### Select VMA config
+ if [ "$_vma_config" = "standard" ]; then
+ echo "Enabling per-VMA locking..."
+ scripts/config --enable PER_VMA_LOCK \
+ --disable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "stats" ]; then
+ echo "Enabling per-VMA locking with stats..."
+ scripts/config --enable PER_VMA_LOCK \
+ --enable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "none" ]; then
+ echo "Disabling per-VMA locking..."
+ scripts/config --disable PER_VMA_LOCK
+ else
+ if [ -n "$_vma_config" ]; then
+ error "The value $_vma_config is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Enabling per-VMA locking failed!"
+ exit
+ fi
+
### Select THP
if [ "$_hugepage" = "always" ]; then
echo "Enable THP always..."
diff --git a/linux-cachyos-cfs/.SRCINFO b/linux-cachyos-cfs/.SRCINFO
index 2bf63766..cc33bfd8 100644
--- a/linux-cachyos-cfs/.SRCINFO
+++ b/linux-cachyos-cfs/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Wed Dec 28 19:49:00 UTC 2022
pkgbase = linux-cachyos-cfs
pkgdesc = Linux CFS scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.1.1
diff --git a/linux-cachyos-cfs/PKGBUILD b/linux-cachyos-cfs/PKGBUILD
index 05612392..45e5fd16 100644
--- a/linux-cachyos-cfs/PKGBUILD
+++ b/linux-cachyos-cfs/PKGBUILD
@@ -97,6 +97,13 @@ _kyber_disable=${_kyber_disable-y}
# 'none' - disable multigenerational LRU
_lru_config=${_lru_config-'standard'}
+### Enable per-VMA locking
+# ATTENTION - one of three predefined values should be selected!
+# 'standard' - enable per-VMA locking
+# 'stats' - enable per-VMA locking with stats
+# 'none' - disable per-VMA locking
+_vma_config=${_vma_config-'standard'}
+
### Transparent Hugepages
# ATTENTION - one of two predefined values should be selected!
# 'always' - always enable THP
@@ -500,7 +507,7 @@ prepare() {
scripts/config --set-val NR_CPUS "$_nr_cpus"
else
echo "Setting default NR_CPUS..."
- scripts/config --set-val NR_CPUS 320
+ scripts/config --set-val NR_CPUS 128
fi
### Disable MQ Deadline I/O scheduler
@@ -636,6 +643,28 @@ prepare() {
exit
fi
+ ### Select VMA config
+ if [ "$_vma_config" = "standard" ]; then
+ echo "Enabling per-VMA locking..."
+ scripts/config --enable PER_VMA_LOCK \
+ --disable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "stats" ]; then
+ echo "Enabling per-VMA locking with stats..."
+ scripts/config --enable PER_VMA_LOCK \
+ --enable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "none" ]; then
+ echo "Disabling per-VMA locking..."
+ scripts/config --disable PER_VMA_LOCK
+ else
+ if [ -n "$_vma_config" ]; then
+ error "The value $_vma_config is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Enabling per-VMA locking failed!"
+ exit
+ fi
+
### Select THP
if [ "$_hugepage" = "always" ]; then
echo "Enable THP always..."
diff --git a/linux-cachyos-hardened/.SRCINFO b/linux-cachyos-hardened/.SRCINFO
index 84934e60..226208a1 100644
--- a/linux-cachyos-hardened/.SRCINFO
+++ b/linux-cachyos-hardened/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Wed Dec 28 19:49:14 UTC 2022
pkgbase = linux-cachyos-hardened
pkgdesc = Linux hardenened BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.1.1
diff --git a/linux-cachyos-hardened/PKGBUILD b/linux-cachyos-hardened/PKGBUILD
index 10b53725..080535ac 100644
--- a/linux-cachyos-hardened/PKGBUILD
+++ b/linux-cachyos-hardened/PKGBUILD
@@ -97,6 +97,13 @@ _kyber_disable=${_kyber_disable-y}
# 'none' - disable multigenerational LRU
_lru_config=${_lru_config-'standard'}
+### Enable per-VMA locking
+# ATTENTION - one of three predefined values should be selected!
+# 'standard' - enable per-VMA locking
+# 'stats' - enable per-VMA locking with stats
+# 'none' - disable per-VMA locking
+_vma_config=${_vma_config-'standard'}
+
### Transparent Hugepages
# ATTENTION - one of two predefined values should be selected!
# 'always' - always enable THP
@@ -504,7 +511,7 @@ prepare() {
scripts/config --set-val NR_CPUS "$_nr_cpus"
else
echo "Setting default NR_CPUS..."
- scripts/config --set-val NR_CPUS 320
+ scripts/config --set-val NR_CPUS 128
fi
### Disable MQ Deadline I/O scheduler
@@ -640,6 +647,28 @@ prepare() {
exit
fi
+ ### Select VMA config
+ if [ "$_vma_config" = "standard" ]; then
+ echo "Enabling per-VMA locking..."
+ scripts/config --enable PER_VMA_LOCK \
+ --disable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "stats" ]; then
+ echo "Enabling per-VMA locking with stats..."
+ scripts/config --enable PER_VMA_LOCK \
+ --enable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "none" ]; then
+ echo "Disabling per-VMA locking..."
+ scripts/config --disable PER_VMA_LOCK
+ else
+ if [ -n "$_vma_config" ]; then
+ error "The value $_vma_config is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Enabling per-VMA locking failed!"
+ exit
+ fi
+
### Select THP
if [ "$_hugepage" = "always" ]; then
echo "Enable THP always..."
diff --git a/linux-cachyos-pds/.SRCINFO b/linux-cachyos-pds/.SRCINFO
index fb7ed000..b5bb9a85 100644
--- a/linux-cachyos-pds/.SRCINFO
+++ b/linux-cachyos-pds/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Wed Dec 28 19:49:26 UTC 2022
pkgbase = linux-cachyos-pds
pkgdesc = Linux PDS scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.1.1
diff --git a/linux-cachyos-pds/PKGBUILD b/linux-cachyos-pds/PKGBUILD
index a088ac6f..54f8b6ad 100644
--- a/linux-cachyos-pds/PKGBUILD
+++ b/linux-cachyos-pds/PKGBUILD
@@ -97,6 +97,13 @@ _kyber_disable=${_kyber_disable-y}
# 'none' - disable multigenerational LRU
_lru_config=${_lru_config-'standard'}
+### Enable per-VMA locking
+# ATTENTION - one of three predefined values should be selected!
+# 'standard' - enable per-VMA locking
+# 'stats' - enable per-VMA locking with stats
+# 'none' - disable per-VMA locking
+_vma_config=${_vma_config-'standard'}
+
### Transparent Hugepages
# ATTENTION - one of two predefined values should be selected!
# 'always' - always enable THP
@@ -500,7 +507,7 @@ prepare() {
scripts/config --set-val NR_CPUS "$_nr_cpus"
else
echo "Setting default NR_CPUS..."
- scripts/config --set-val NR_CPUS 320
+ scripts/config --set-val NR_CPUS 128
fi
### Disable MQ Deadline I/O scheduler
@@ -636,6 +643,28 @@ prepare() {
exit
fi
+ ### Select VMA config
+ if [ "$_vma_config" = "standard" ]; then
+ echo "Enabling per-VMA locking..."
+ scripts/config --enable PER_VMA_LOCK \
+ --disable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "stats" ]; then
+ echo "Enabling per-VMA locking with stats..."
+ scripts/config --enable PER_VMA_LOCK \
+ --enable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "none" ]; then
+ echo "Disabling per-VMA locking..."
+ scripts/config --disable PER_VMA_LOCK
+ else
+ if [ -n "$_vma_config" ]; then
+ error "The value $_vma_config is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Enabling per-VMA locking failed!"
+ exit
+ fi
+
### Select THP
if [ "$_hugepage" = "always" ]; then
echo "Enable THP always..."
diff --git a/linux-cachyos-rc/.SRCINFO b/linux-cachyos-rc/.SRCINFO
index 600f0172..0f0941a3 100644
--- a/linux-cachyos-rc/.SRCINFO
+++ b/linux-cachyos-rc/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by makepkg 6.0.2
-# Tue Dec 27 20:04:30 UTC 2022
+# Wed Dec 28 19:50:22 UTC 2022
pkgbase = linux-cachyos-rc
pkgdesc = Linux BORE scheduler Kernel by CachyOS and with some other patches and other improvements
pkgver = 6.2.rc1
diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILD
index 304fbda4..8f921bb2 100644
--- a/linux-cachyos-rc/PKGBUILD
+++ b/linux-cachyos-rc/PKGBUILD
@@ -97,6 +97,13 @@ _kyber_disable=${_kyber_disable-y}
# 'none' - disable multigenerational LRU
_lru_config=${_lru_config-'standard'}
+### Enable per-VMA locking
+# ATTENTION - one of three predefined values should be selected!
+# 'standard' - enable per-VMA locking
+# 'stats' - enable per-VMA locking with stats
+# 'none' - disable per-VMA locking
+_vma_config=${_vma_config-'standard'}
+
### Transparent Hugepages
# ATTENTION - one of two predefined values should be selected!
# 'always' - always enable THP
@@ -500,7 +507,7 @@ prepare() {
scripts/config --set-val NR_CPUS "$_nr_cpus"
else
echo "Setting default NR_CPUS..."
- scripts/config --set-val NR_CPUS 320
+ scripts/config --set-val NR_CPUS 128
fi
### Disable MQ Deadline I/O scheduler
@@ -636,6 +643,28 @@ prepare() {
exit
fi
+ ### Select VMA config
+ if [ "$_vma_config" = "standard" ]; then
+ echo "Enabling per-VMA locking..."
+ scripts/config --enable PER_VMA_LOCK \
+ --disable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "stats" ]; then
+ echo "Enabling per-VMA locking with stats..."
+ scripts/config --enable PER_VMA_LOCK \
+ --enable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "none" ]; then
+ echo "Disabling per-VMA locking..."
+ scripts/config --disable PER_VMA_LOCK
+ else
+ if [ -n "$_vma_config" ]; then
+ error "The value $_vma_config is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Enabling per-VMA locking failed!"
+ exit
+ fi
+
### Select THP
if [ "$_hugepage" = "always" ]; then
echo "Enable THP always..."
diff --git a/linux-cachyos-tt/.SRCINFO b/linux-cachyos-tt/.SRCINFO
index 547511d8..f87d966b 100644
--- a/linux-cachyos-tt/.SRCINFO
+++ b/linux-cachyos-tt/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Wed Dec 28 19:50:33 UTC 2022
pkgbase = linux-cachyos-tt
pkgdesc = Linux TT scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.1.1
diff --git a/linux-cachyos-tt/PKGBUILD b/linux-cachyos-tt/PKGBUILD
index 4000c635..ea7df669 100644
--- a/linux-cachyos-tt/PKGBUILD
+++ b/linux-cachyos-tt/PKGBUILD
@@ -97,6 +97,13 @@ _kyber_disable=${_kyber_disable-y}
# 'none' - disable multigenerational LRU
_lru_config=${_lru_config-'standard'}
+### Enable per-VMA locking
+# ATTENTION - one of three predefined values should be selected!
+# 'standard' - enable per-VMA locking
+# 'stats' - enable per-VMA locking with stats
+# 'none' - disable per-VMA locking
+_vma_config=${_vma_config-'standard'}
+
### Transparent Hugepages
# ATTENTION - one of two predefined values should be selected!
# 'always' - always enable THP
@@ -500,7 +507,7 @@ prepare() {
scripts/config --set-val NR_CPUS "$_nr_cpus"
else
echo "Setting default NR_CPUS..."
- scripts/config --set-val NR_CPUS 320
+ scripts/config --set-val NR_CPUS 128
fi
### Disable MQ Deadline I/O scheduler
@@ -636,6 +643,28 @@ prepare() {
exit
fi
+ ### Select VMA config
+ if [ "$_vma_config" = "standard" ]; then
+ echo "Enabling per-VMA locking..."
+ scripts/config --enable PER_VMA_LOCK \
+ --disable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "stats" ]; then
+ echo "Enabling per-VMA locking with stats..."
+ scripts/config --enable PER_VMA_LOCK \
+ --enable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "none" ]; then
+ echo "Disabling per-VMA locking..."
+ scripts/config --disable PER_VMA_LOCK
+ else
+ if [ -n "$_vma_config" ]; then
+ error "The value $_vma_config is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Enabling per-VMA locking failed!"
+ exit
+ fi
+
### Select THP
if [ "$_hugepage" = "always" ]; then
echo "Enable THP always..."
diff --git a/linux-cachyos/.SRCINFO b/linux-cachyos/.SRCINFO
index 6019bd15..09e195ca 100644
--- a/linux-cachyos/.SRCINFO
+++ b/linux-cachyos/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Wed Dec 28 19:48:11 UTC 2022
pkgbase = linux-cachyos
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.1.1
diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILD
index 0a8495c7..b94d5b31 100644
--- a/linux-cachyos/PKGBUILD
+++ b/linux-cachyos/PKGBUILD
@@ -97,6 +97,13 @@ _kyber_disable=${_kyber_disable-y}
# 'none' - disable multigenerational LRU
_lru_config=${_lru_config-'standard'}
+### Enable per-VMA locking
+# ATTENTION - one of three predefined values should be selected!
+# 'standard' - enable per-VMA locking
+# 'stats' - enable per-VMA locking with stats
+# 'none' - disable per-VMA locking
+_vma_config=${_vma_config-'standard'}
+
### Transparent Hugepages
# ATTENTION - one of two predefined values should be selected!
# 'always' - always enable THP
@@ -500,7 +507,7 @@ prepare() {
scripts/config --set-val NR_CPUS "$_nr_cpus"
else
echo "Setting default NR_CPUS..."
- scripts/config --set-val NR_CPUS 320
+ scripts/config --set-val NR_CPUS 128
fi
### Disable MQ Deadline I/O scheduler
@@ -636,6 +643,28 @@ prepare() {
exit
fi
+ ### Select VMA config
+ if [ "$_vma_config" = "standard" ]; then
+ echo "Enabling per-VMA locking..."
+ scripts/config --enable PER_VMA_LOCK \
+ --disable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "stats" ]; then
+ echo "Enabling per-VMA locking with stats..."
+ scripts/config --enable PER_VMA_LOCK \
+ --enable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "none" ]; then
+ echo "Disabling per-VMA locking..."
+ scripts/config --disable PER_VMA_LOCK
+ else
+ if [ -n "$_vma_config" ]; then
+ error "The value $_vma_config is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Enabling per-VMA locking failed!"
+ exit
+ fi
+
### Select THP
if [ "$_hugepage" = "always" ]; then
echo "Enable THP always..."
diff --git a/linux-cacule-rdb/.SRCINFO b/linux-cacule-rdb/.SRCINFO
index b26afb0c..026c1502 100644
--- a/linux-cacule-rdb/.SRCINFO
+++ b/linux-cacule-rdb/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Wed Dec 28 19:50:58 UTC 2022
pkgbase = linux-cacule-rdb
pkgdesc = Linux cacULE-RDB scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.1.1
diff --git a/linux-cacule-rdb/PKGBUILD b/linux-cacule-rdb/PKGBUILD
index 6aabfb8c..a6619f97 100644
--- a/linux-cacule-rdb/PKGBUILD
+++ b/linux-cacule-rdb/PKGBUILD
@@ -97,6 +97,13 @@ _kyber_disable=${_kyber_disable-y}
# 'none' - disable multigenerational LRU
_lru_config=${_lru_config-'standard'}
+### Enable per-VMA locking
+# ATTENTION - one of three predefined values should be selected!
+# 'standard' - enable per-VMA locking
+# 'stats' - enable per-VMA locking with stats
+# 'none' - disable per-VMA locking
+_vma_config=${_vma_config-'standard'}
+
### Transparent Hugepages
# ATTENTION - one of two predefined values should be selected!
# 'always' - always enable THP
@@ -500,7 +507,7 @@ prepare() {
scripts/config --set-val NR_CPUS "$_nr_cpus"
else
echo "Setting default NR_CPUS..."
- scripts/config --set-val NR_CPUS 320
+ scripts/config --set-val NR_CPUS 128
fi
### Disable MQ Deadline I/O scheduler
@@ -636,6 +643,28 @@ prepare() {
exit
fi
+ ### Select VMA config
+ if [ "$_vma_config" = "standard" ]; then
+ echo "Enabling per-VMA locking..."
+ scripts/config --enable PER_VMA_LOCK \
+ --disable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "stats" ]; then
+ echo "Enabling per-VMA locking with stats..."
+ scripts/config --enable PER_VMA_LOCK \
+ --enable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "none" ]; then
+ echo "Disabling per-VMA locking..."
+ scripts/config --disable PER_VMA_LOCK
+ else
+ if [ -n "$_vma_config" ]; then
+ error "The value $_vma_config is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Enabling per-VMA locking failed!"
+ exit
+ fi
+
### Select THP
if [ "$_hugepage" = "always" ]; then
echo "Enable THP always..."
diff --git a/linux-cacule/.SRCINFO b/linux-cacule/.SRCINFO
index e2178286..d96089b7 100644
--- a/linux-cacule/.SRCINFO
+++ b/linux-cacule/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Wed Dec 28 19:50:46 UTC 2022
pkgbase = linux-cacule
pkgdesc = Linux cacULE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.1.1
diff --git a/linux-cacule/PKGBUILD b/linux-cacule/PKGBUILD
index 1acc246a..f224ef12 100644
--- a/linux-cacule/PKGBUILD
+++ b/linux-cacule/PKGBUILD
@@ -97,6 +97,13 @@ _kyber_disable=${_kyber_disable-y}
# 'none' - disable multigenerational LRU
_lru_config=${_lru_config-'standard'}
+### Enable per-VMA locking
+# ATTENTION - one of three predefined values should be selected!
+# 'standard' - enable per-VMA locking
+# 'stats' - enable per-VMA locking with stats
+# 'none' - disable per-VMA locking
+_vma_config=${_vma_config-'standard'}
+
### Transparent Hugepages
# ATTENTION - one of two predefined values should be selected!
# 'always' - always enable THP
@@ -500,7 +507,7 @@ prepare() {
scripts/config --set-val NR_CPUS "$_nr_cpus"
else
echo "Setting default NR_CPUS..."
- scripts/config --set-val NR_CPUS 320
+ scripts/config --set-val NR_CPUS 128
fi
### Disable MQ Deadline I/O scheduler
@@ -636,6 +643,28 @@ prepare() {
exit
fi
+ ### Select VMA config
+ if [ "$_vma_config" = "standard" ]; then
+ echo "Enabling per-VMA locking..."
+ scripts/config --enable PER_VMA_LOCK \
+ --disable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "stats" ]; then
+ echo "Enabling per-VMA locking with stats..."
+ scripts/config --enable PER_VMA_LOCK \
+ --enable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "none" ]; then
+ echo "Disabling per-VMA locking..."
+ scripts/config --disable PER_VMA_LOCK
+ else
+ if [ -n "$_vma_config" ]; then
+ error "The value $_vma_config is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Enabling per-VMA locking failed!"
+ exit
+ fi
+
### Select THP
if [ "$_hugepage" = "always" ]; then
echo "Enable THP always..."
diff --git a/linux-tt/.SRCINFO b/linux-tt/.SRCINFO
index b527ef9a..3c4591bc 100644
--- a/linux-tt/.SRCINFO
+++ b/linux-tt/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.2
+# Wed Dec 28 19:51:14 UTC 2022
pkgbase = linux-tt
pkgdesc = Linux TT scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.1.1
diff --git a/linux-tt/PKGBUILD b/linux-tt/PKGBUILD
index 1646f990..9b091b71 100644
--- a/linux-tt/PKGBUILD
+++ b/linux-tt/PKGBUILD
@@ -97,6 +97,13 @@ _kyber_disable=${_kyber_disable-y}
# 'none' - disable multigenerational LRU
_lru_config=${_lru_config-'standard'}
+### Enable per-VMA locking
+# ATTENTION - one of three predefined values should be selected!
+# 'standard' - enable per-VMA locking
+# 'stats' - enable per-VMA locking with stats
+# 'none' - disable per-VMA locking
+_vma_config=${_vma_config-'standard'}
+
### Transparent Hugepages
# ATTENTION - one of two predefined values should be selected!
# 'always' - always enable THP
@@ -500,7 +507,7 @@ prepare() {
scripts/config --set-val NR_CPUS "$_nr_cpus"
else
echo "Setting default NR_CPUS..."
- scripts/config --set-val NR_CPUS 320
+ scripts/config --set-val NR_CPUS 128
fi
### Disable MQ Deadline I/O scheduler
@@ -636,6 +643,28 @@ prepare() {
exit
fi
+ ### Select VMA config
+ if [ "$_vma_config" = "standard" ]; then
+ echo "Enabling per-VMA locking..."
+ scripts/config --enable PER_VMA_LOCK \
+ --disable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "stats" ]; then
+ echo "Enabling per-VMA locking with stats..."
+ scripts/config --enable PER_VMA_LOCK \
+ --enable PER_VMA_LOCK_STATS
+ elif [ "$_vma_config" = "none" ]; then
+ echo "Disabling per-VMA locking..."
+ scripts/config --disable PER_VMA_LOCK
+ else
+ if [ -n "$_vma_config" ]; then
+ error "The value $_vma_config is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Enabling per-VMA locking failed!"
+ exit
+ fi
+
### Select THP
if [ "$_hugepage" = "always" ]; then
echo "Enable THP always..."