Skip to content

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

updated readme

P. Jung6effd9b1507f
diff --git a/README.md b/README.md
index 4437e882..f2d016ed 100644
--- a/README.md
+++ b/README.md
@@ -1,55 +1,65 @@
-# <center>Linux Kernel With CacULE Scheduler, Several Other Patches &amp; Improvements</center>
+# <center>Linux Kernel with several sccheduler and other improvements</center>
## General Informations
-The CacULE CPU Scheduler is a improved alternative to CFS Patch-set which is based on interactivity score mechanism. The interactivity score is inspired by the ULE Scheduler (FreeBSD Scheduler). The goal of this scheduler is to enhance system performance, responsiveness and latency.g
+The CachyOS are improved kernels which improve the performance and other improvements.
+Following Scheduler are supported:
+
+- Standard Kernel Completely Fair Scheduler (CFS) - linux-cachyos
+- CacULE and CacULE-RDB created from Hamad Marri, maintained by CachyOS - linux-cachyos-bmq
+- BitMap Queue (BMQ) Alfred Chen Scheduler - linux-cachyos-bmq
+- Priority and Deadline based Skiplist multiple queue scheduler (PDS) - Alfred Chen Scheduler » linux-cachyos-pds
+
+All kernels are prebuilt in two different march versions (x86_64 and x86_64_v3) and also with the lto enabled kernels in the cachyos repo.
## Features
-- At the time of compiling you can set several features which you want to use
-- GCC/CLANG Optimization with Auto CPU Optimization
-- Choose between LLVM/LTO or GCC
-- Choose between 500Hz, , 750 Hz, 1000Hz (default), 2000Hz
-- Improved BFQ Scheduler
-- Latest LRU Patch-set
-- BBRv2 tcp_congestion_control
-- LLVM FULL LTO provided with *-llvm Kernel (in the repo)
-- LRNG Framework (default)
-- FUTEX, WINESYNC & FUTEX2 patch-set
-- Android ANBOX patch-set
-- Latest Paragon NTFS3 driver support
-- Latest & improved ZSTD patch-set
-- Latest BTRFS improvements & fixes
-- KSMBD Module for Samba3 Server
-- Protection of clean file pages (page cache) may be used to prevent thrashing, reducing I/O under memory pressure, avoid high latency and prevent livelock in near OOM (Out Of Memory) conditions
-
-## CacULE Tips & Tricks (Sysctl Values)
+- Very customizable PKGBUILD with many features and improvements
+- 5 Different scheduler are supported, CacULE-,CFS-,baby-,bmq- and pds scheduler
+- GCC/CLANG Optimization with automatically found cpu arch or also selectable cpu arch
+- Choose between LLVM/LTO or GCC
+- Choose between 500Hz, , 750 Hz (defaut), 1000Hz, 2000Hz
+- Improved BFQ Scheduler
+- Latest LRU Patch-set
+- BBRv2 tcp_congestion_control
+- LLVM Thin LTO provided with \*-lto Kernel (in the cahchyos-repo)
+- LRNG Framework (default)
+- FUTEX, WINESYNC & FUTEX2 patch-set
+- Android ANBOX patch-set
+- Latest Paragon NTFS3 driver support
+- Latest & improved ZSTD patch-set
+- Latest BTRFS improvements & fixes
+- KSMBD Module for Samba3 Server
+- Protection of clean file pages (page cache) may be used to prevent thrashing, reducing I/O under memory pressure, avoid high latency and prevent livelock in near OOM (Out Of Memory) conditions
+- AMD PSTATEv2 Driver
+- Control Flow Integrity (CFI) slectable when using LLVM
+- experimental PGO building selectable
+
+## Some Tips & Tricks
You can tune the scheduler by setting these sysctl values
-```
-net.core.netdev_max_backlog = 16384
-net.core.somaxconn = 8192
-net.core.rmem_default = 1048576
-net.core.rmem_max = 16777216
-net.core.wmem_default = 1048576
-net.core.wmem_max = 16777216
-net.core.optmem_max = 65536
-net.ipv4.tcp_rmem = 4096 1048576 2097152
-net.ipv4.tcp_wmem = 4096 65536 16777216
-net.ipv4.udp_rmem_min = 8192
-net.ipv4.udp_wmem_min = 8192
-net.ipv4.tcp_fastopen = 3
-net.ipv4.tcp_keepalive_time = 60
-net.ipv4.tcp_keepalive_intvl = 10
-net.ipv4.tcp_keepalive_probes = 6
-net.ipv4.conf.default.log_martians = 1
-net.ipv4.conf.all.log_martians = 1
-net.ipv4.tcp_mtu_probing = 1
-net.ipv4.tcp_syncookies = 1
-net.core.default_qdisc = cake
-net.ipv4.tcp_congestion_control = bbr2
-```
+ net.core.netdev_max_backlog = 16384
+ net.core.somaxconn = 8192
+ net.core.rmem_default = 1048576
+ net.core.rmem_max = 16777216
+ net.core.wmem_default = 1048576
+ net.core.wmem_max = 16777216
+ net.core.optmem_max = 65536
+ net.ipv4.tcp_rmem = 4096 1048576 2097152
+ net.ipv4.tcp_wmem = 4096 65536 16777216
+ net.ipv4.udp_rmem_min = 8192
+ net.ipv4.udp_wmem_min = 8192
+ net.ipv4.tcp_fastopen = 3
+ net.ipv4.tcp_keepalive_time = 60
+ net.ipv4.tcp_keepalive_intvl = 10
+ net.ipv4.tcp_keepalive_probes = 6
+ net.ipv4.conf.default.log_martians = 1
+ net.ipv4.conf.all.log_martians = 1
+ net.ipv4.tcp_mtu_probing = 1
+ net.ipv4.tcp_syncookies = 1
+ net.core.default_qdisc = cake
+ net.ipv4.tcp_congestion_control = bbr2
## We are providing a [repo](https://mirror.cachyos.org/) which includes all kernels in generic-v3 and generic and more optimized packages
@@ -57,58 +67,83 @@ net.ipv4.tcp_congestion_control = bbr2
**Just run following command:**
---------------------------------------------------------------------------------
+## **automatic march detection and changing the pacman.conf:**
+
+ wget https://mirror.cachyos.org/cachyos-repo.tar.xz
+ tar xvf cachyos-repo.tar.xz
+ cd repo
+ sudo ./cachyos-repo.sh
+
+* * *
+
+\--
+
+## **manually**:
+
-```
-wget https://mirror.cachyos.org/cachyos-repo.tar.xz
-tar xvf cachyos-repo.tar.xz
-cd repo
-sudo ./cachyos-repo.sh
-```
+ sudo pacman-key --recv-keys F3B607488DB35A47 --keyserver keyserver.ubuntu.com
---------------------------------------------------------------------------------
+ sudo pacman-key --lsign-key F3B607488DB35A47
-```
-This script will also backup your old pacman.conf.
+ sudo pacman -U 'https://build.cachyos.org/repo/x86_64/cachyos/cachyos-keyring-2-1-any.pkg.tar.zst' 'https://build.cachyos.org/repo/x86_64/cachyos/cachyos-mirrorlist-5-1-any.pkg.tar.zst' 'https://build.cachyos.org/repo/x86_64/cachyos/cachyos-v3-mirrorlist-5-1-any.pkg.tar.zst'
-This script will auto-detect you architecture, if your CPU have x86-64-v3 support, it will automatically use the repos which are optimized with this flag and some other flags.
+ **Checking x86_64_v3 cpu support:**
-Also all provided Kernels, Browsers, ... are optimized and compiled.
+ /lib/ld-linux-x86-64.so.2 --help | grep "x86-64-v3 (supported, searched)"
-## How to Backup the config and use the native Arch Packages
+ if you get an output change at the /etc/pacman.conf following:
+ ```
+ #Architecture = auto
+ Architecture = x86_64 x86_64_v3
+ ```
+ add following under the arch repos the "-v3" repos only if they are supported:
+ ```
+ # cachyos repos
+ [cachyos-desktop-v3]
+ Include = /etc/pacman.d/cachyos-v3-mirrorlist
+ [cachyos-v3]
+ Include = /etc/pacman.d/cachyos-v3-mirrorlist
+ [cachyos-desktop]
+ Include = /etc/pacman.d/cachyos-mirrorlist
+ [cachyos]
+ Include = /etc/pacman.d/cachyos-mirrorlist
+ ``\`
-- Remove or Backup the config located at /etc/pacman.conf
-- then run `sudo mv /etc/pacman.conf.bak /etc/pacman.conf`
-- Then run following command to switch the packages to the default arch packages `sudo pacman -Suuy`
+* * *
+ This script will also backup your old pacman.conf.
-More information's you will find here [CachyOS](https://gitlab.com/cachyos) or [Discord](https://discord.gg/k39qfrxPNa)
-```
+ This script will auto-detect you architecture, if your CPU have x86-64-v3 support, it will automatically use the repos which are optimized with this flag and some other flags.
+
+ Also all provided Kernels, Browsers, ... are optimized and compiled.
+
+ ## How to Backup the config and use the native Arch Packages
+
+ - Remove or Backup the config located at /etc/pacman.conf
+ - then run `sudo mv /etc/pacman.conf.bak /etc/pacman.conf`
+ - Then run following command to switch the packages to the default arch packages `sudo pacman -Suuy`
+
+
+ More information's you will find here [CachyOS](https://github.com/cachyos) or [Discord](https://discord.gg/k39qfrxPNa)
## How to use CLANG/LLVM/LTO compiled Kernels on Nvidia driver with DKMS:
There is mostly an easy workaround, but be aware, if you install a Kernel and have those parameters still in, the GCC Compiled Kernel will fail. Also some modules which uses DKMS needs to recompiled with CLANG/LLVM. I just compile the backup kernel LINUX-LTS also with CLANG, so i got no problems anymore.
-- Just do following:
+- Just do following:
- ```
- sudo nano /etc/dkms/framework.conf
- and add following entrys on the bottom of the file:
- export LLVM=1
- export CC=clang
- ```
+ sudo nano /etc/dkms/framework.conf
+ and add following entrys on the bottom of the file:
+ export LLVM=1
+ export CC=clang
-- If you have this done, just reinstall or install the kernel which is compiled with LLVM/LTO and DKMS wont fail anymore.
+- If you have this done, just reinstall or install the kernel which is compiled with LLVM/LTO and DKMS wont fail anymore.
If you got questions, just hit me up!
## Donations are welcome for the compile server for the repo or a cup of coffee for maintain this repo
-<https://paypal.me/pttrr?locale.x=de_DE>
-
-### More Informations for the CacULE Scheduler
-
-Here you find more information from the [repo](https://github.com/cachyos/cacule-cpu-scheduler)
+<https://paypal.me/pttrr>
### Valueable Contributors
diff --git a/linux-cachyos-baby/.SRCINFO b/linux-cachyos-baby/.SRCINFO
index 3ec1eca8..5c416bc4 100644
--- a/linux-cachyos-baby/.SRCINFO
+++ b/linux-cachyos-baby/.SRCINFO
@@ -1,7 +1,7 @@
-pkgbase = linux-cachyos-baby-dl-lto
+pkgbase = linux-cachyos-baby-dl
pkgdesc = Linux-baby Kernel by CachyOS and with some other patches and other improvements
pkgver = 5.14.11
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/CachyOS/linux-cachyos
arch = x86_64
arch = x86_64_v3
@@ -22,7 +22,6 @@ pkgbase = linux-cachyos-baby-dl-lto
source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.14.11.tar.xz
source = config
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/arch-patches-v10/0001-arch-patches.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/0001-CK-TIMER.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/misc/amd/0006-amd-cppc.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/misc/0008-remove-LightNVM.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/ll-patches/0003-sched-core-nr_migrate-256-increases-number-of-tasks-.patch
@@ -55,7 +54,6 @@ pkgbase = linux-cachyos-baby-dl-lto
md5sums = 0eba0d3a75f56ddbbb0f4265b35724c3
md5sums = d93835cc970f8c135609081fec836139
md5sums = 581faf85cd625c41bbdd0cadbd0e451e
- md5sums = 04c5865e765e07cff0649824c2a8d810
md5sums = 430972ae1e936f99d8dc2a1f4fdaf774
md5sums = eb39a5681a153f5a1f5a67e8b9e957a5
md5sums = af7328eb8c72c754e5bc8c7be1ca2f1c
@@ -86,7 +84,7 @@ pkgbase = linux-cachyos-baby-dl-lto
md5sums = 21c98f19e883879dd3336c1fa143fd31
md5sums = 63ee6ec75b8867b24a573bbb5e413623
-pkgname = linux-cachyos-baby-dl-lto
+pkgname = linux-cachyos-baby-dl
pkgdesc = The Linux-baby Kernel by CachyOS and with some other patches and other improvements kernel and modules
depends = coreutils
depends = kmod
@@ -97,7 +95,7 @@ pkgname = linux-cachyos-baby-dl-lto
provides = VIRTUALBOX-GUEST-MODULES
provides = WIREGUARD-MODULE
-pkgname = linux-cachyos-baby-dl-lto-headers
+pkgname = linux-cachyos-baby-dl-headers
pkgdesc = Headers and scripts for building modules for the Linux-baby Kernel by CachyOS and with some other patches and other improvements
- depends = linux-cachyos-baby-dl-lto=5.14.11
+ depends = linux-cachyos-baby-dl=5.14.11
depends = pahole
diff --git a/linux-cachyos-baby/PKGBUILD b/linux-cachyos-baby/PKGBUILD
index f573ec04..c8e8d97c 100644
--- a/linux-cachyos-baby/PKGBUILD
+++ b/linux-cachyos-baby/PKGBUILD
@@ -137,7 +137,7 @@ elif [ "$_cpusched" = "rdb" ]; then
pkgbase=linux-cachyos-cacule-rdb
fi
pkgver=5.14.11
-pkgrel=2
+pkgrel=3
arch=(x86_64 x86_64_v3)
pkgdesc='Linux-baby Kernel by CachyOS and with some other patches and other improvements'
#_gittag=v${pkgver%.*}-${pkgver##*.}
@@ -155,7 +155,7 @@ source=("https://cdn.kernel.org/pub/linux/kernel/v${pkgver:0:1}.x/linux-${pkgver
"config"
# "${_patchsource}/arch-patches/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch"
"${_patchsource}/arch-patches-v10/0001-arch-patches.patch"
- "${_patchsource}/0001-CK-TIMER.patch"
+# "${_patchsource}/0001-CK-TIMER.patch"
"${_patchsource}/misc/amd/0006-amd-cppc.patch"
"${_patchsource}/misc/0008-remove-LightNVM.patch"
"${_patchsource}/ll-patches/0003-sched-core-nr_migrate-256-increases-number-of-tasks-.patch"
@@ -671,7 +671,6 @@ _package-headers() {
md5sums=('0eba0d3a75f56ddbbb0f4265b35724c3'
'd93835cc970f8c135609081fec836139'
'581faf85cd625c41bbdd0cadbd0e451e'
- '04c5865e765e07cff0649824c2a8d810'
'430972ae1e936f99d8dc2a1f4fdaf774'
'eb39a5681a153f5a1f5a67e8b9e957a5'
'af7328eb8c72c754e5bc8c7be1ca2f1c'
diff --git a/linux-cachyos-bmq/.SRCINFO b/linux-cachyos-bmq/.SRCINFO
index 84df6969..c8501151 100644
--- a/linux-cachyos-bmq/.SRCINFO
+++ b/linux-cachyos-bmq/.SRCINFO
@@ -23,7 +23,7 @@ pkgbase = linux-cachyos-bmq
source = config
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/arch-patches-v10/0001-arch-patches.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/0009-prjc_v5.14-r3.patch
- source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/misc/0006-amd-cppc.patch
+ source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/misc/amd/0006-amd-cppc.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/misc/0008-remove-LightNVM.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/ll-patches/0001-LL-kconfig-add-750Hz-timer-interrupt-kernel-config-o.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/ll-patches/0003-sched-core-nr_migrate-256-increases-number-of-tasks-.patch
diff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILD
index a465a827..f1f989fc 100644
--- a/linux-cachyos-bmq/PKGBUILD
+++ b/linux-cachyos-bmq/PKGBUILD
@@ -133,7 +133,7 @@ source=("https://cdn.kernel.org/pub/linux/kernel/v${pkgver:0:1}.x/linux-${pkgver
# "${_patchsource}/arch-patches/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch"
"${_patchsource}/arch-patches-v10/0001-arch-patches.patch"
"${_patchsource}/0009-prjc_v5.14-r3.patch"
- "${_patchsource}/misc/0006-amd-cppc.patch"
+ "${_patchsource}/misc/amd/0006-amd-cppc.patch"
"${_patchsource}/misc/0008-remove-LightNVM.patch"
# "${_patchsource}/0001-CK-TIMER.patch"
"${_patchsource}/ll-patches/0001-LL-kconfig-add-750Hz-timer-interrupt-kernel-config-o.patch"