Archlinux Kernel based on different schedulers and some other performance improvements.
Shell archlinuxbaby-schedcachycachy-schedulercachyoscacule-schedkernellinux-kernelperformanceperformance-tuning
Improve _nr_cpus flag
Piotr Gorski711788546a80
diff --git a/linux-bore/.SRCINFO b/linux-bore/.SRCINFOindex a0bd897c..35222160 100644--- a/linux-bore/.SRCINFO+++ b/linux-bore/.SRCINFO@@ -1,3 +1,5 @@+# Generated by makepkg 6.0.2+# Fri Feb 10 20:19:10 UTC 2023pkgbase = linux-borepkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.11diff --git a/linux-bore/PKGBUILD b/linux-bore/PKGBUILDindex 83ee174a..4f51bdfa 100644--- a/linux-bore/PKGBUILD+++ b/linux-bore/PKGBUILD@@ -398,12 +398,14 @@ prepare() {fi### Setting NR_CPUS- if [ -n "$_nr_cpus" ]; then+ if [[ "$_nr_cpus" -ge 2 && "$_nr_cpus" -le 512 ]]; thenecho "Setting custom NR_CPUS..."scripts/config --set-val NR_CPUS "$_nr_cpus"- else+ elif [ -z "$_nr_cpus" ]; thenecho "Setting default NR_CPUS..."scripts/config --set-val NR_CPUS 320+ else+ _die "The value '$_nr_cpus' is invalid. Please select a numerical value from 2 to 512..."fi### Disable MQ Deadline I/O schedulerdiff --git a/linux-cachyos-bmq/.SRCINFO b/linux-cachyos-bmq/.SRCINFOindex a04819c5..8ef9b02b 100644--- a/linux-cachyos-bmq/.SRCINFO+++ b/linux-cachyos-bmq/.SRCINFO@@ -1,3 +1,5 @@+# Generated by makepkg 6.0.2+# Fri Feb 10 20:19:35 UTC 2023pkgbase = linux-cachyos-bmqpkgdesc = Linux BMQ scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.11diff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILDindex 89149b8d..bde6706e 100644--- a/linux-cachyos-bmq/PKGBUILD+++ b/linux-cachyos-bmq/PKGBUILD@@ -398,12 +398,14 @@ prepare() {fi### Setting NR_CPUS- if [ -n "$_nr_cpus" ]; then+ if [[ "$_nr_cpus" -ge 2 && "$_nr_cpus" -le 512 ]]; thenecho "Setting custom NR_CPUS..."scripts/config --set-val NR_CPUS "$_nr_cpus"- else+ elif [ -z "$_nr_cpus" ]; thenecho "Setting default NR_CPUS..."scripts/config --set-val NR_CPUS 320+ else+ _die "The value '$_nr_cpus' is invalid. Please select a numerical value from 2 to 512..."fi### Disable MQ Deadline I/O schedulerdiff --git a/linux-cachyos-bore/.SRCINFO b/linux-cachyos-bore/.SRCINFOindex cbd668ea..d4547732 100644--- a/linux-cachyos-bore/.SRCINFO+++ b/linux-cachyos-bore/.SRCINFO@@ -1,3 +1,5 @@+# Generated by makepkg 6.0.2+# Fri Feb 10 20:19:48 UTC 2023pkgbase = linux-cachyos-borepkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.11diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILDindex 5f5145af..d9583826 100644--- a/linux-cachyos-bore/PKGBUILD+++ b/linux-cachyos-bore/PKGBUILD@@ -398,12 +398,14 @@ prepare() {fi### Setting NR_CPUS- if [ -n "$_nr_cpus" ]; then+ if [[ "$_nr_cpus" -ge 2 && "$_nr_cpus" -le 512 ]]; thenecho "Setting custom NR_CPUS..."scripts/config --set-val NR_CPUS "$_nr_cpus"- else+ elif [ -z "$_nr_cpus" ]; thenecho "Setting default NR_CPUS..."scripts/config --set-val NR_CPUS 320+ else+ _die "The value '$_nr_cpus' is invalid. Please select a numerical value from 2 to 512..."fi### Disable MQ Deadline I/O schedulerdiff --git a/linux-cachyos-cfs/.SRCINFO b/linux-cachyos-cfs/.SRCINFOindex 5247d4df..79fb0cb0 100644--- a/linux-cachyos-cfs/.SRCINFO+++ b/linux-cachyos-cfs/.SRCINFO@@ -1,3 +1,5 @@+# Generated by makepkg 6.0.2+# Fri Feb 10 20:20:00 UTC 2023pkgbase = linux-cachyos-cfspkgdesc = Linux CFS scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.11diff --git a/linux-cachyos-cfs/PKGBUILD b/linux-cachyos-cfs/PKGBUILDindex 8e4ebba5..d2cf93e3 100644--- a/linux-cachyos-cfs/PKGBUILD+++ b/linux-cachyos-cfs/PKGBUILD@@ -398,12 +398,14 @@ prepare() {fi### Setting NR_CPUS- if [ -n "$_nr_cpus" ]; then+ if [[ "$_nr_cpus" -ge 2 && "$_nr_cpus" -le 512 ]]; thenecho "Setting custom NR_CPUS..."scripts/config --set-val NR_CPUS "$_nr_cpus"- else+ elif [ -z "$_nr_cpus" ]; thenecho "Setting default NR_CPUS..."scripts/config --set-val NR_CPUS 320+ else+ _die "The value '$_nr_cpus' is invalid. Please select a numerical value from 2 to 512..."fi### Disable MQ Deadline I/O schedulerdiff --git a/linux-cachyos-hardened/.SRCINFO b/linux-cachyos-hardened/.SRCINFOindex 86180232..68511a4a 100644--- a/linux-cachyos-hardened/.SRCINFO+++ b/linux-cachyos-hardened/.SRCINFO@@ -1,5 +1,5 @@# Generated by makepkg 6.0.2-# Thu Feb 9 12:01:54 UTC 2023+# Fri Feb 10 20:21:23 UTC 2023pkgbase = linux-cachyos-hardenedpkgdesc = Linux hardenened BORE scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.11diff --git a/linux-cachyos-hardened/PKGBUILD b/linux-cachyos-hardened/PKGBUILDindex cd705543..e42ca508 100644--- a/linux-cachyos-hardened/PKGBUILD+++ b/linux-cachyos-hardened/PKGBUILD@@ -398,12 +398,14 @@ prepare() {fi### Setting NR_CPUS- if [ -n "$_nr_cpus" ]; then+ if [[ "$_nr_cpus" -ge 2 && "$_nr_cpus" -le 512 ]]; thenecho "Setting custom NR_CPUS..."scripts/config --set-val NR_CPUS "$_nr_cpus"- else+ elif [ -z "$_nr_cpus" ]; thenecho "Setting default NR_CPUS..."scripts/config --set-val NR_CPUS 320+ else+ _die "The value '$_nr_cpus' is invalid. Please select a numerical value from 2 to 512..."fi### Disable MQ Deadline I/O schedulerdiff --git a/linux-cachyos-pds/.SRCINFO b/linux-cachyos-pds/.SRCINFOindex d50b5b70..1fbd168d 100644--- a/linux-cachyos-pds/.SRCINFO+++ b/linux-cachyos-pds/.SRCINFO@@ -1,3 +1,5 @@+# Generated by makepkg 6.0.2+# Fri Feb 10 20:20:12 UTC 2023pkgbase = linux-cachyos-pdspkgdesc = Linux PDS scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.11diff --git a/linux-cachyos-pds/PKGBUILD b/linux-cachyos-pds/PKGBUILDindex 2773ee77..df730e78 100644--- a/linux-cachyos-pds/PKGBUILD+++ b/linux-cachyos-pds/PKGBUILD@@ -398,12 +398,14 @@ prepare() {fi### Setting NR_CPUS- if [ -n "$_nr_cpus" ]; then+ if [[ "$_nr_cpus" -ge 2 && "$_nr_cpus" -le 512 ]]; thenecho "Setting custom NR_CPUS..."scripts/config --set-val NR_CPUS "$_nr_cpus"- else+ elif [ -z "$_nr_cpus" ]; thenecho "Setting default NR_CPUS..."scripts/config --set-val NR_CPUS 320+ else+ _die "The value '$_nr_cpus' is invalid. Please select a numerical value from 2 to 512..."fi### Disable MQ Deadline I/O schedulerdiff --git a/linux-cachyos-rc/.SRCINFO b/linux-cachyos-rc/.SRCINFOindex 53430a6b..d75885de 100644--- a/linux-cachyos-rc/.SRCINFO+++ b/linux-cachyos-rc/.SRCINFO@@ -1,3 +1,5 @@+# Generated by makepkg 6.0.2+# Fri Feb 10 20:20:26 UTC 2023pkgbase = linux-cachyos-rcpkgdesc = Linux BORE scheduler Kernel by CachyOS and with some other patches and other improvementspkgver = 6.2.rc7diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILDindex 851d0377..b996cf64 100644--- a/linux-cachyos-rc/PKGBUILD+++ b/linux-cachyos-rc/PKGBUILD@@ -398,12 +398,14 @@ prepare() {fi### Setting NR_CPUS- if [ -n "$_nr_cpus" ]; then+ if [[ "$_nr_cpus" -ge 2 && "$_nr_cpus" -le 512 ]]; thenecho "Setting custom NR_CPUS..."scripts/config --set-val NR_CPUS "$_nr_cpus"- else+ elif [ -z "$_nr_cpus" ]; thenecho "Setting default NR_CPUS..."scripts/config --set-val NR_CPUS 320+ else+ _die "The value '$_nr_cpus' is invalid. Please select a numerical value from 2 to 512..."fi### Disable MQ Deadline I/O schedulerdiff --git a/linux-cachyos-server/.SRCINFO b/linux-cachyos-server/.SRCINFOindex 6dd02b05..57724acd 100644--- a/linux-cachyos-server/.SRCINFO+++ b/linux-cachyos-server/.SRCINFO@@ -1,3 +1,5 @@+# Generated by makepkg 6.0.2+# Fri Feb 10 20:21:10 UTC 2023pkgbase = linux-cachyos-serverpkgdesc = Linux CFS scheduler Kernel by CachyOS targeted for Serverspkgver = 6.1.11diff --git a/linux-cachyos-server/PKGBUILD b/linux-cachyos-server/PKGBUILDindex ca73084f..9d289a41 100644--- a/linux-cachyos-server/PKGBUILD+++ b/linux-cachyos-server/PKGBUILD@@ -398,12 +398,14 @@ prepare() {fi### Setting NR_CPUS- if [ -n "$_nr_cpus" ]; then+ if [[ "$_nr_cpus" -ge 2 && "$_nr_cpus" -le 512 ]]; thenecho "Setting custom NR_CPUS..."scripts/config --set-val NR_CPUS "$_nr_cpus"- else+ elif [ -z "$_nr_cpus" ]; thenecho "Setting default NR_CPUS..."scripts/config --set-val NR_CPUS 320+ else+ _die "The value '$_nr_cpus' is invalid. Please select a numerical value from 2 to 512..."fi### Disable MQ Deadline I/O schedulerdiff --git a/linux-cachyos-tt/.SRCINFO b/linux-cachyos-tt/.SRCINFOindex 47ff56b9..328bd127 100644--- a/linux-cachyos-tt/.SRCINFO+++ b/linux-cachyos-tt/.SRCINFO@@ -1,3 +1,5 @@+# Generated by makepkg 6.0.2+# Fri Feb 10 20:20:40 UTC 2023pkgbase = linux-cachyos-ttpkgdesc = Linux TT scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.11diff --git a/linux-cachyos-tt/PKGBUILD b/linux-cachyos-tt/PKGBUILDindex 3a95b841..114bdf16 100644--- a/linux-cachyos-tt/PKGBUILD+++ b/linux-cachyos-tt/PKGBUILD@@ -398,12 +398,14 @@ prepare() {fi### Setting NR_CPUS- if [ -n "$_nr_cpus" ]; then+ if [[ "$_nr_cpus" -ge 2 && "$_nr_cpus" -le 512 ]]; thenecho "Setting custom NR_CPUS..."scripts/config --set-val NR_CPUS "$_nr_cpus"- else+ elif [ -z "$_nr_cpus" ]; thenecho "Setting default NR_CPUS..."scripts/config --set-val NR_CPUS 320+ else+ _die "The value '$_nr_cpus' is invalid. Please select a numerical value from 2 to 512..."fi### Disable MQ Deadline I/O schedulerdiff --git a/linux-cachyos/.SRCINFO b/linux-cachyos/.SRCINFOindex fd96a1e4..ac86668c 100644--- a/linux-cachyos/.SRCINFO+++ b/linux-cachyos/.SRCINFO@@ -1,3 +1,5 @@+# Generated by makepkg 6.0.2+# Fri Feb 10 20:19:23 UTC 2023pkgbase = linux-cachyospkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.11diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILDindex 4f65e09d..fe72b34a 100644--- a/linux-cachyos/PKGBUILD+++ b/linux-cachyos/PKGBUILD@@ -398,12 +398,14 @@ prepare() {fi### Setting NR_CPUS- if [ -n "$_nr_cpus" ]; then+ if [[ "$_nr_cpus" -ge 2 && "$_nr_cpus" -le 512 ]]; thenecho "Setting custom NR_CPUS..."scripts/config --set-val NR_CPUS "$_nr_cpus"- else+ elif [ -z "$_nr_cpus" ]; thenecho "Setting default NR_CPUS..."scripts/config --set-val NR_CPUS 320+ else+ _die "The value '$_nr_cpus' is invalid. Please select a numerical value from 2 to 512..."fi### Disable MQ Deadline I/O schedulerdiff --git a/linux-tt/.SRCINFO b/linux-tt/.SRCINFOindex 5ea66bef..f119a169 100644--- a/linux-tt/.SRCINFO+++ b/linux-tt/.SRCINFO@@ -1,3 +1,5 @@+# Generated by makepkg 6.0.2+# Fri Feb 10 20:20:55 UTC 2023pkgbase = linux-ttpkgdesc = Linux TT scheduler Kernel by CachyOS with other patches and improvementspkgver = 6.1.11diff --git a/linux-tt/PKGBUILD b/linux-tt/PKGBUILDindex 63b8d71b..309a9955 100644--- a/linux-tt/PKGBUILD+++ b/linux-tt/PKGBUILD@@ -398,12 +398,14 @@ prepare() {fi### Setting NR_CPUS- if [ -n "$_nr_cpus" ]; then+ if [[ "$_nr_cpus" -ge 2 && "$_nr_cpus" -le 512 ]]; thenecho "Setting custom NR_CPUS..."scripts/config --set-val NR_CPUS "$_nr_cpus"- else+ elif [ -z "$_nr_cpus" ]; thenecho "Setting default NR_CPUS..."scripts/config --set-val NR_CPUS 320+ else+ _die "The value '$_nr_cpus' is invalid. Please select a numerical value from 2 to 512..."fi### Disable MQ Deadline I/O scheduler