• Stars
    star
    173
  • Rank 220,124 (Top 5 %)
  • Language
    Shell
  • License
    GNU General Publi...
  • Created about 3 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Tweak Linux CPU scheduler for desktop responsiveness

CFS ZEN tweaks

Description

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.

Getting Started

Dependencies

Runtime dependencies:

  • bash
  • gawk
  • systemd (for systemd unit)

Build dependencies:

  • cmake

Installing

Available on AUR.

Also see releases page for built RPM and DEB packages.

You can also build from source using cmake build system.

Enabling systemd unit

Tweaks can be applied on boot using provided systemd unit.

systemctl enable --now set-cfs-tweaks.service

Secure Boot

If you have Secure Boot the script might not be able to run. See this thread for directions.

Version History

  • 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)
  • 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

License

This project is licensed under the GPL-2.0-only License - see the COPYING file for details