Skip to content

Commit

Permalink
docs: cpu scaling governor knowledgebase
Browse files Browse the repository at this point in the history
Add docs on setting cpu scaling governor across all CPUs.

Thanks to @nberlee for the [suggestion](#4508 (comment))

Signed-off-by: Noel Georgi <[email protected]>
  • Loading branch information
frezbo committed Sep 14, 2022
1 parent 7b270ff commit 9380901
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions website/content/v1.2/learn-more/knowledge-base.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,20 @@ promtail:
host: ${HOSTNAME}
__path__: /var/log/audit/kube/*.log
```
## Setting CPU scaling governer
While its possible to set [CPU scaling governer](https://kernelnewbies.org/Linux_5.9#CPU_Frequency_scaling) via `.machine.sysfs` it's sometimes cumbersome to set it for all CPU's individually.
A more elegant approach would be set it via a kernel commandline parameter.
This also means that the options are applied way early in the boot process.

This can be set in the machineconfig via the snippet below:

```yaml
machine:
install:
extraKernelArgs:
- cpufreq.default_governor=performance
```

> Note: Talos needs to be upgraded for the `extraKernelArgs` to take effect.
17 changes: 17 additions & 0 deletions website/content/v1.3/learn-more/knowledge-base.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,20 @@ promtail:
host: ${HOSTNAME}
__path__: /var/log/audit/kube/*.log
```
## Setting CPU scaling governer
While its possible to set [CPU scaling governer](https://kernelnewbies.org/Linux_5.9#CPU_Frequency_scaling) via `.machine.sysfs` it's sometimes cumbersome to set it for all CPU's individually.
A more elegant approach would be set it via a kernel commandline parameter.
This also means that the options are applied way early in the boot process.

This can be set in the machineconfig via the snippet below:

```yaml
machine:
install:
extraKernelArgs:
- cpufreq.default_governor=performance
```

> Note: Talos needs to be upgraded for the `extraKernelArgs` to take effect.

0 comments on commit 9380901

Please sign in to comment.