The default CPU scheduler in the mainline Linux kernel is Completely_Fair_Scheduler (CFS).
The upstream default settings are tweaked for high throughput which make the desktop applications unresponsive under heavy CPU loads. This project contains a script that sets the CFS to use same settings as the linux-zen kernel does.
Runtime dependencies:
- bash
- gawk
- systemd (for systemd unit)
Build dependencies:
- cmake
Available on AUR.
Also see releases page for built RPM and DEB packages.
You can also build from source using cmake build system.
Tweaks can be applied on boot using provided systemd unit.
systemctl enable --now set-cfs-tweaks.service
If you have Secure Boot the script might not be able to run. See this thread for directions.
- 1.3.0
- Add support for EEVDF scheduler from kernel 6.6
- 1.2.0
- Fixed SELinux preventing systemd unit to run on Fedora (now script resides in
/usr/sbin
directory) - Gave unique name to script. (now is called
set-cfs-zen-tweaks.bash
)
- Fixed SELinux preventing systemd unit to run on Fedora (now script resides in
- 1.1.1
- Fixed systemd unit not applying tweaks after suspend or hibernate
- 1.1.0
- Added support for kernels before version 5.13
- 1.0.0
- Initial Release
This project is licensed under the GPL-2.0-only License - see the COPYING file for details