Skip to content

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

Add nr_cpus flag

Piotr Gorski3e8a9f65e108
diff --git a/linux-bore/.SRCINFO b/linux-bore/.SRCINFO
index a3bc17f8..578ab70a 100644
--- a/linux-bore/.SRCINFO
+++ b/linux-bore/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.1
+# Tue Sep 20 13:47:46 UTC 2022
pkgbase = linux-bore
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.19.10
diff --git a/linux-bore/PKGBUILD b/linux-bore/PKGBUILD
index 9a43ec89..7eaaa7a0 100644
--- a/linux-bore/PKGBUILD
+++ b/linux-bore/PKGBUILD
@@ -61,6 +61,9 @@ _use_current=
### Enable KBUILD_CFLAGS -O3
_cc_harder=y
+### Set this to your number of threads you have in your machine otherwise it will default to 128
+_nr_cpus=
+
### Set performance governor as default
_per_gov=y
@@ -421,6 +424,15 @@ prepare() {
--disable NEED_MULTIPLE_NODES
fi
+ ### Setting NR_CPUS
+ if [ -n "$_nr_cpus" ]; then
+ echo "Setting custom NR_CPUS..."
+ scripts/config --set-val NR_CPUS "$_nr_cpus"
+ else
+ echo "Setting default NR_CPUS..."
+ scripts/config --set-val NR_CPUS 128
+ fi
+
### Disable MQ Deadline I/O scheduler
if [ -n "$_mq_deadline_disable" ]; then
echo "Disabling MQ-Deadline I/O scheduler..."
diff --git a/linux-cachyos-bmq/.SRCINFO b/linux-cachyos-bmq/.SRCINFO
index 32a3c903..8ab8fd0e 100644
--- a/linux-cachyos-bmq/.SRCINFO
+++ b/linux-cachyos-bmq/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.1
+# Tue Sep 20 13:50:36 UTC 2022
pkgbase = linux-cachyos-bmq
pkgdesc = Linux BMQ scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.19.10
diff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILD
index f07589d4..5e0a2499 100644
--- a/linux-cachyos-bmq/PKGBUILD
+++ b/linux-cachyos-bmq/PKGBUILD
@@ -61,6 +61,9 @@ _use_current=
### Enable KBUILD_CFLAGS -O3
_cc_harder=y
+### Set this to your number of threads you have in your machine otherwise it will default to 128
+_nr_cpus=
+
### Set performance governor as default
_per_gov=y
@@ -421,6 +424,15 @@ prepare() {
--disable NEED_MULTIPLE_NODES
fi
+ ### Setting NR_CPUS
+ if [ -n "$_nr_cpus" ]; then
+ echo "Setting custom NR_CPUS..."
+ scripts/config --set-val NR_CPUS "$_nr_cpus"
+ else
+ echo "Setting default NR_CPUS..."
+ scripts/config --set-val NR_CPUS 128
+ fi
+
### Disable MQ Deadline I/O scheduler
if [ -n "$_mq_deadline_disable" ]; then
echo "Disabling MQ-Deadline I/O scheduler..."
diff --git a/linux-cachyos-bore/.SRCINFO b/linux-cachyos-bore/.SRCINFO
index fd96c81c..e86105af 100644
--- a/linux-cachyos-bore/.SRCINFO
+++ b/linux-cachyos-bore/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.1
+# Tue Sep 20 13:51:41 UTC 2022
pkgbase = linux-cachyos-bore
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.19.10
diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILD
index 8d7d5ea9..f15b6745 100644
--- a/linux-cachyos-bore/PKGBUILD
+++ b/linux-cachyos-bore/PKGBUILD
@@ -61,6 +61,9 @@ _use_current=
### Enable KBUILD_CFLAGS -O3
_cc_harder=y
+### Set this to your number of threads you have in your machine otherwise it will default to 128
+_nr_cpus=
+
### Set performance governor as default
_per_gov=y
@@ -421,6 +424,15 @@ prepare() {
--disable NEED_MULTIPLE_NODES
fi
+ ### Setting NR_CPUS
+ if [ -n "$_nr_cpus" ]; then
+ echo "Setting custom NR_CPUS..."
+ scripts/config --set-val NR_CPUS "$_nr_cpus"
+ else
+ echo "Setting default NR_CPUS..."
+ scripts/config --set-val NR_CPUS 128
+ fi
+
### Disable MQ Deadline I/O scheduler
if [ -n "$_mq_deadline_disable" ]; then
echo "Disabling MQ-Deadline I/O scheduler..."
diff --git a/linux-cachyos-cacule/.SRCINFO b/linux-cachyos-cacule/.SRCINFO
index f517bfa9..9eaff26d 100644
--- a/linux-cachyos-cacule/.SRCINFO
+++ b/linux-cachyos-cacule/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.1
+# Tue Sep 20 13:53:08 UTC 2022
pkgbase = linux-cachyos-cacule
pkgdesc = Linux cacULE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.19.10
diff --git a/linux-cachyos-cacule/PKGBUILD b/linux-cachyos-cacule/PKGBUILD
index 377de2b5..3b49fc69 100644
--- a/linux-cachyos-cacule/PKGBUILD
+++ b/linux-cachyos-cacule/PKGBUILD
@@ -61,6 +61,9 @@ _use_current=
### Enable KBUILD_CFLAGS -O3
_cc_harder=y
+### Set this to your number of threads you have in your machine otherwise it will default to 128
+_nr_cpus=
+
### Set performance governor as default
_per_gov=y
@@ -421,6 +424,15 @@ prepare() {
--disable NEED_MULTIPLE_NODES
fi
+ ### Setting NR_CPUS
+ if [ -n "$_nr_cpus" ]; then
+ echo "Setting custom NR_CPUS..."
+ scripts/config --set-val NR_CPUS "$_nr_cpus"
+ else
+ echo "Setting default NR_CPUS..."
+ scripts/config --set-val NR_CPUS 128
+ fi
+
### Disable MQ Deadline I/O scheduler
if [ -n "$_mq_deadline_disable" ]; then
echo "Disabling MQ-Deadline I/O scheduler..."
diff --git a/linux-cachyos-cfs/.SRCINFO b/linux-cachyos-cfs/.SRCINFO
index 90bb710c..4023f833 100644
--- a/linux-cachyos-cfs/.SRCINFO
+++ b/linux-cachyos-cfs/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.1
+# Tue Sep 20 13:54:32 UTC 2022
pkgbase = linux-cachyos-cfs
pkgdesc = Linux CFS scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.19.10
diff --git a/linux-cachyos-cfs/PKGBUILD b/linux-cachyos-cfs/PKGBUILD
index 17d61264..0baaf483 100644
--- a/linux-cachyos-cfs/PKGBUILD
+++ b/linux-cachyos-cfs/PKGBUILD
@@ -61,6 +61,9 @@ _use_current=
### Enable KBUILD_CFLAGS -O3
_cc_harder=y
+### Set this to your number of threads you have in your machine otherwise it will default to 128
+_nr_cpus=
+
### Set performance governor as default
_per_gov=y
@@ -421,6 +424,15 @@ prepare() {
--disable NEED_MULTIPLE_NODES
fi
+ ### Setting NR_CPUS
+ if [ -n "$_nr_cpus" ]; then
+ echo "Setting custom NR_CPUS..."
+ scripts/config --set-val NR_CPUS "$_nr_cpus"
+ else
+ echo "Setting default NR_CPUS..."
+ scripts/config --set-val NR_CPUS 128
+ fi
+
### Disable MQ Deadline I/O scheduler
if [ -n "$_mq_deadline_disable" ]; then
echo "Disabling MQ-Deadline I/O scheduler..."
diff --git a/linux-cachyos-hardened/.SRCINFO b/linux-cachyos-hardened/.SRCINFO
index 4b841704..0baf10a2 100644
--- a/linux-cachyos-hardened/.SRCINFO
+++ b/linux-cachyos-hardened/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.1
+# Tue Sep 20 13:55:32 UTC 2022
pkgbase = linux-cachyos-hardened
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.19.10
diff --git a/linux-cachyos-hardened/PKGBUILD b/linux-cachyos-hardened/PKGBUILD
index e76bc1c7..7b98b551 100644
--- a/linux-cachyos-hardened/PKGBUILD
+++ b/linux-cachyos-hardened/PKGBUILD
@@ -61,6 +61,9 @@ _use_current=
### Enable KBUILD_CFLAGS -O3
_cc_harder=y
+### Set this to your number of threads you have in your machine otherwise it will default to 128
+_nr_cpus=
+
### Set performance governor as default
_per_gov=y
@@ -425,6 +428,15 @@ prepare() {
--disable NEED_MULTIPLE_NODES
fi
+ ### Setting NR_CPUS
+ if [ -n "$_nr_cpus" ]; then
+ echo "Setting custom NR_CPUS..."
+ scripts/config --set-val NR_CPUS "$_nr_cpus"
+ else
+ echo "Setting default NR_CPUS..."
+ scripts/config --set-val NR_CPUS 128
+ fi
+
### Disable MQ Deadline I/O scheduler
if [ -n "$_mq_deadline_disable" ]; then
echo "Disabling MQ-Deadline I/O scheduler..."
diff --git a/linux-cachyos-pds/.SRCINFO b/linux-cachyos-pds/.SRCINFO
index fcdd9a68..edf693e1 100644
--- a/linux-cachyos-pds/.SRCINFO
+++ b/linux-cachyos-pds/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.1
+# Tue Sep 20 13:56:21 UTC 2022
pkgbase = linux-cachyos-pds
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.19.10
diff --git a/linux-cachyos-pds/PKGBUILD b/linux-cachyos-pds/PKGBUILD
index 8ee3be34..13555450 100644
--- a/linux-cachyos-pds/PKGBUILD
+++ b/linux-cachyos-pds/PKGBUILD
@@ -61,6 +61,9 @@ _use_current=
### Enable KBUILD_CFLAGS -O3
_cc_harder=y
+### Set this to your number of threads you have in your machine otherwise it will default to 128
+_nr_cpus=
+
### Set performance governor as default
_per_gov=y
@@ -421,6 +424,15 @@ prepare() {
--disable NEED_MULTIPLE_NODES
fi
+ ### Setting NR_CPUS
+ if [ -n "$_nr_cpus" ]; then
+ echo "Setting custom NR_CPUS..."
+ scripts/config --set-val NR_CPUS "$_nr_cpus"
+ else
+ echo "Setting default NR_CPUS..."
+ scripts/config --set-val NR_CPUS 128
+ fi
+
### Disable MQ Deadline I/O scheduler
if [ -n "$_mq_deadline_disable" ]; then
echo "Disabling MQ-Deadline I/O scheduler..."
diff --git a/linux-cachyos-rc/.SRCINFO b/linux-cachyos-rc/.SRCINFO
index f12daccf..77a07406 100644
--- a/linux-cachyos-rc/.SRCINFO
+++ b/linux-cachyos-rc/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.1
+# Tue Sep 20 13:58:28 UTC 2022
pkgbase = linux-cachyos-rc
pkgdesc = Linux BORE scheduler Kernel by CachyOS and with some other patches and other improvements
pkgver = 6.0.rc6
diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILD
index 4c3643c6..deefa919 100644
--- a/linux-cachyos-rc/PKGBUILD
+++ b/linux-cachyos-rc/PKGBUILD
@@ -49,6 +49,12 @@ _localmodcfg=
# a new kernel is released, but again, convenient for package bumps.
_use_current=
+### Enable KBUILD_CFLAGS -O3
+_cc_harder=y
+
+### Set this to your number of threads you have in your machine otherwise it will default to 128
+_nr_cpus=
+
### Set performance governor as default
_per_gov=y
@@ -441,6 +447,15 @@ prepare() {
--disable NEED_MULTIPLE_NODES
fi
+ ### Setting NR_CPUS
+ if [ -n "$_nr_cpus" ]; then
+ echo "Setting custom NR_CPUS..."
+ scripts/config --set-val NR_CPUS "$_nr_cpus"
+ else
+ echo "Setting default NR_CPUS..."
+ scripts/config --set-val NR_CPUS 128
+ fi
+
### Disable MQ Deadline I/O scheduler
if [ -n "$_mq_deadline_disable" ]; then
echo "Disabling MQ-Deadline I/O scheduler..."
diff --git a/linux-cachyos-tt/.SRCINFO b/linux-cachyos-tt/.SRCINFO
index e3278e47..3270aad0 100644
--- a/linux-cachyos-tt/.SRCINFO
+++ b/linux-cachyos-tt/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.1
+# Tue Sep 20 13:59:14 UTC 2022
pkgbase = linux-cachyos-tt
pkgdesc = Linux TT scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.19.10
diff --git a/linux-cachyos-tt/PKGBUILD b/linux-cachyos-tt/PKGBUILD
index 85d7797f..e34a4224 100644
--- a/linux-cachyos-tt/PKGBUILD
+++ b/linux-cachyos-tt/PKGBUILD
@@ -61,6 +61,9 @@ _use_current=
### Enable KBUILD_CFLAGS -O3
_cc_harder=y
+### Set this to your number of threads you have in your machine otherwise it will default to 128
+_nr_cpus=
+
### Set performance governor as default
_per_gov=y
@@ -421,6 +424,15 @@ prepare() {
--disable NEED_MULTIPLE_NODES
fi
+ ### Setting NR_CPUS
+ if [ -n "$_nr_cpus" ]; then
+ echo "Setting custom NR_CPUS..."
+ scripts/config --set-val NR_CPUS "$_nr_cpus"
+ else
+ echo "Setting default NR_CPUS..."
+ scripts/config --set-val NR_CPUS 128
+ fi
+
### Disable MQ Deadline I/O scheduler
if [ -n "$_mq_deadline_disable" ]; then
echo "Disabling MQ-Deadline I/O scheduler..."
diff --git a/linux-cachyos/.SRCINFO b/linux-cachyos/.SRCINFO
index 0f7079da..f1217c34 100644
--- a/linux-cachyos/.SRCINFO
+++ b/linux-cachyos/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.1
+# Tue Sep 20 13:49:23 UTC 2022
pkgbase = linux-cachyos
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.19.10
diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILD
index 359b4faf..7d3830ce 100644
--- a/linux-cachyos/PKGBUILD
+++ b/linux-cachyos/PKGBUILD
@@ -61,6 +61,9 @@ _use_current=
### Enable KBUILD_CFLAGS -O3
_cc_harder=y
+### Set this to your number of threads you have in your machine otherwise it will default to 128
+_nr_cpus=
+
### Set performance governor as default
_per_gov=y
@@ -421,6 +424,15 @@ prepare() {
--disable NEED_MULTIPLE_NODES
fi
+ ### Setting NR_CPUS
+ if [ -n "$_nr_cpus" ]; then
+ echo "Setting custom NR_CPUS..."
+ scripts/config --set-val NR_CPUS "$_nr_cpus"
+ else
+ echo "Setting default NR_CPUS..."
+ scripts/config --set-val NR_CPUS 128
+ fi
+
### Disable MQ Deadline I/O scheduler
if [ -n "$_mq_deadline_disable" ]; then
echo "Disabling MQ-Deadline I/O scheduler..."
diff --git a/linux-cacule-rdb/.SRCINFO b/linux-cacule-rdb/.SRCINFO
index 87426d53..6b230311 100644
--- a/linux-cacule-rdb/.SRCINFO
+++ b/linux-cacule-rdb/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.1
+# Tue Sep 20 14:00:45 UTC 2022
pkgbase = linux-cacule-rdb
pkgdesc = Linux cacULE-RDB scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.19.10
diff --git a/linux-cacule-rdb/PKGBUILD b/linux-cacule-rdb/PKGBUILD
index a0e19849..b16c7bcb 100644
--- a/linux-cacule-rdb/PKGBUILD
+++ b/linux-cacule-rdb/PKGBUILD
@@ -61,6 +61,9 @@ _use_current=
### Enable KBUILD_CFLAGS -O3
_cc_harder=y
+### Set this to your number of threads you have in your machine otherwise it will default to 128
+_nr_cpus=
+
### Set performance governor as default
_per_gov=y
@@ -421,6 +424,15 @@ prepare() {
--disable NEED_MULTIPLE_NODES
fi
+ ### Setting NR_CPUS
+ if [ -n "$_nr_cpus" ]; then
+ echo "Setting custom NR_CPUS..."
+ scripts/config --set-val NR_CPUS "$_nr_cpus"
+ else
+ echo "Setting default NR_CPUS..."
+ scripts/config --set-val NR_CPUS 128
+ fi
+
### Disable MQ Deadline I/O scheduler
if [ -n "$_mq_deadline_disable" ]; then
echo "Disabling MQ-Deadline I/O scheduler..."
diff --git a/linux-cacule/.SRCINFO b/linux-cacule/.SRCINFO
index 8a08f5e7..8b1cafd0 100644
--- a/linux-cacule/.SRCINFO
+++ b/linux-cacule/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.1
+# Tue Sep 20 14:00:00 UTC 2022
pkgbase = linux-cacule
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.19.10
diff --git a/linux-cacule/PKGBUILD b/linux-cacule/PKGBUILD
index 52232156..7b420c02 100644
--- a/linux-cacule/PKGBUILD
+++ b/linux-cacule/PKGBUILD
@@ -61,6 +61,9 @@ _use_current=
### Enable KBUILD_CFLAGS -O3
_cc_harder=y
+### Set this to your number of threads you have in your machine otherwise it will default to 128
+_nr_cpus=
+
### Set performance governor as default
_per_gov=y
@@ -421,6 +424,15 @@ prepare() {
--disable NEED_MULTIPLE_NODES
fi
+ ### Setting NR_CPUS
+ if [ -n "$_nr_cpus" ]; then
+ echo "Setting custom NR_CPUS..."
+ scripts/config --set-val NR_CPUS "$_nr_cpus"
+ else
+ echo "Setting default NR_CPUS..."
+ scripts/config --set-val NR_CPUS 128
+ fi
+
### Disable MQ Deadline I/O scheduler
if [ -n "$_mq_deadline_disable" ]; then
echo "Disabling MQ-Deadline I/O scheduler..."
diff --git a/linux-tt/.SRCINFO b/linux-tt/.SRCINFO
index 11eef600..515535e7 100644
--- a/linux-tt/.SRCINFO
+++ b/linux-tt/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by makepkg 6.0.1
+# Tue Sep 20 14:01:33 UTC 2022
pkgbase = linux-tt
pkgdesc = Linux TT scheduler Kernel by CachyOS with other patches and improvements
pkgver = 5.19.10
diff --git a/linux-tt/PKGBUILD b/linux-tt/PKGBUILD
index 4a0a9d2b..30dfede8 100644
--- a/linux-tt/PKGBUILD
+++ b/linux-tt/PKGBUILD
@@ -61,6 +61,9 @@ _use_current=
### Enable KBUILD_CFLAGS -O3
_cc_harder=y
+### Set this to your number of threads you have in your machine otherwise it will default to 128
+_nr_cpus=
+
### Set performance governor as default
_per_gov=y
@@ -421,6 +424,15 @@ prepare() {
--disable NEED_MULTIPLE_NODES
fi
+ ### Setting NR_CPUS
+ if [ -n "$_nr_cpus" ]; then
+ echo "Setting custom NR_CPUS..."
+ scripts/config --set-val NR_CPUS "$_nr_cpus"
+ else
+ echo "Setting default NR_CPUS..."
+ scripts/config --set-val NR_CPUS 128
+ fi
+
### Disable MQ Deadline I/O scheduler
if [ -n "$_mq_deadline_disable" ]; then
echo "Disabling MQ-Deadline I/O scheduler..."