How To Tweak the Linux CPU Scheduler For Better Responsiveness

Subscribers:
12,300
Published on ● Video Link: https://www.youtube.com/watch?v=Zopm2tG8H9Y



Category:
Tutorial
Duration: 2:42
3,183 views
131


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




Other Videos By Intelligent Gaming


2022-06-17"My Linux Journey" Podcast Episode 19: Linux Newbie
2022-06-06"Steam Proton Controller Setup: Configuring and Using Controllers On Linux"
2022-03-05"My Linux Journey" Podcast Episode 18: The Steam Deck Cometh - Feat. Gardotd426
2022-01-08"My Linux Journey" Podcast Episode 17: Linux Needs A Makeover
2021-12-11"How to Limit Game Framerate on Linux: Step-by-Step Guide"
2021-12-05Intelligent Gaming - Linux, Tutorials & Gameplay Live Stream - Test Stream
2021-12-05How To Install & Play Doom Eternal on Linux
2021-12-02Three Reasons Why Linux Is Better Than Windows & Three Reasons Why It Is Not
2021-12-01"My Linux Journey" Podcast Episode 16: Linux Is Only For Developers?
2021-11-29How To Install & Play Fallout 3 on Windows 11
2021-11-26How To Tweak the Linux CPU Scheduler For Better Responsiveness
2021-11-25What Are The Best Linux Distributions For Gaming With AMD Or Nvidia GPUs?
2021-11-22How To Fix Counter Strike Global Offensive (CSGO) Game Crash On Ubuntu Linux Based Distributions
2021-11-22What Is The Steam Proton Compatibility Layer? And How Do You Use It?
2021-11-20"How To Dual Boot Pop!_OS and Windows 10 or 11 - Step-by-Step Tutorial"
2021-11-19"My Linux Journey" Podcast Episode 15: Tech Journalists & Piracy Sucks
2021-11-11"Step-by-Step Guide: Installing and Playing Age of Empires IV on Linux"
2021-11-11"Gnome vs KDE Plasma - Choosing the Best Desktop Environment for Gaming on Linux"
2021-11-03"Step-by-Step: Downloading and Playing Epic Games on Windows 11 - Complete Guide"
2021-10-30"My Linux Journey" Podcast Episode 14: The Linux Challenge
2021-10-25How To Install & Play Command & Conquer: Red Alert 2 On Linux



Tags:
linux
kernel
performance
cpu
cfs
tweak
how to
tutorial
increase
desktop
responsiveness
scheduler
heavy
load
ubuntu
fedora
debian
arch
opensuse