How To Tweak the Linux CPU Scheduler For Better Responsiveness
In this video I cover a method of increasing desktop responsiveness when your system is under heavy CPU load by applying the CFS patches found in the Linux-Zen kernel.
https://en.wikipedia.org/wiki/Completely_Fair_Scheduler
By default, Linux uses a CPU scheduler called Completely Fair Scheduler (CFS) which is designed to offer high throughput at the cost of potentially making desktop applications unresponsive when your CPU is under heavy load.
Alternatively you can use a custom kernel such as Linux-Zen or Liquorix for Arch and Debian based distributions respectively, however, it is possible to apply these performance tweaks to your existing kernel.
https://github.com/igo95862/cfs-zen-tweaks
One such project that does that is CFS Zen Tweaks which aims to take the same CFS settings applied by the Linux-Zen project and apply it your existing kernel, without installing a new one.
Step 1. Installation.
https://github.com/igo95862/cfs-zen-tweaks/releases
You can install the latest version of CFS Zen Tweaks from the releases page, where they are prebuilt installation packages for Fedora, OpenSUSE and Debian based distributions such as Ubuntu.
Alternatively for Arch based distributions, you can install it from the AUR.
In fact the, only hard requirement is that you need to be using a distribution with Systemd.
Step 2. Run At Boot.
Once installed, the patches will be applied immediately but will be removed on reboot, so make the changes permanent, open a Terminal window and execute the following command.
systemctl enable --now set-cfs-tweaks.service
This will set up a service to run at boot which applies the patches.
But if you need to remove this service, then run the following command.
systemctl disable --now set-cfs-tweaks.service
#linux #tweak #cfs