Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Improved CPU Scheduler Latency Configuration docs #115

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ Each child element of a profile defines th process(es) to assign to the profile.

## CPU Scheduler Latency Configurations

System76 Scheduler switches between these profiles depending on whether the computer is plugged into AC power. `default` is used when on battery, `responsive` on AC power.

To check which one is currently in use run `journalctl -u com.system76.Scheduler` and look for lines like:

```bash
Starting com.system76.Scheduler.service - Automatically configure CPU scheduler for responsiveness on AC.
```

To switch between profiles manually ... WHAT SHOULD GO HERE? ...

### Default

The default settings for CFS by the Linux kernel. Achieves a high level of throughput for CPU-bound tasks at the cost of increased latency for inputs. This setting is ideal for servers and laptops on battery, because low-latency scheduling sacrifices some energy efficiency for improved responsiveness.
Expand Down
2 changes: 2 additions & 0 deletions data/config.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ autogroup-enabled false
// Latency profiles the kernel's Completely Fair Scheduler
cfs-profiles enable=true {
// The kernel-default values which are ideal for battery life and servers
// Selected automatically when the computer is on battery
default latency=6 nr-latency=8 wakeup-granularity=1.0 bandwidth-size=5 preempt="voluntary"

// Zen CFS parameters that make the desktop more responsive
// Selected automatically when the computer is on AC power
responsive latency=4 nr-latency=10 wakeup-granularity=0.5 bandwidth-size=3 preempt="full"
}

Expand Down