chore: better knowledge in the quest for power efficiency

This commit is contained in:
Michele Cereda
2024-01-12 20:53:50 +01:00
parent dd5bea1cfc
commit 1ad0a14648
6 changed files with 186 additions and 27 deletions

View File

@@ -0,0 +1,31 @@
# Set the _ondemand_ CPU governor to not rise the frequencies for niced loads
## Table of contents <!-- omit in toc -->
1. [TL;DR](#tldr)
1. [Further readings](#further-readings)
## TL;DR
```sh
sudo cpupower frequency-set --governor 'ondemand'
echo 1 | sudo tee '/sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load'
# set this on boot
echo "w /sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load - - - - 1" | sudo tee '/etc/tmpfiles.d/ondemand-ignore-nice.conf'
```
## Further readings
- [`cpupower`][cpupower]
- [Laptop overheating and battery duration reduction]
<!--
References
-->
<!-- Knowledge base -->
[cpupower]: cpupower.md
<!-- Others -->
[laptop overheating and battery duration reduction]: https://wiki.archlinux.org/?title=BOINC#Laptop_overheating_and_battery_duration_reduction