Let's say we wish to keep our desktop, which runs Debian stable (with some minor upgrades from snapshots), relatively cool (e.g. because the machine has only passive cooling) by limiting the machine speed. I see two ways:
Install TLP and put
CPU_SCALING_GOVERNOR_ON_AC=powersave CPU_SCALING_GOVERNOR_ON_BAT=powersave CPU_SCALING_MAX_FREQ_ON_AC=1200000 CPU_SCALING_MAX_FREQ_ON_BAT=1200000into /etc/tlp.conf or
Install sysfsutils and put
devices/system/cpu/cpu0/cpufreq/scaling_governor = powersave…
devices/system/cpu/cpu11/cpufreq/scaling_governor = powersave devices/system/cpu/cpu0/cpufreq/scaling_max_freq = 1200000…
devices/system/cpu/cpu11/cpufreq/scaling_max_freq = 1200000into /etc/sysfs.conf (our processor has 12 cores).
Which way to go? Or both? Or would they get in each other's way? On the one hand, TLP seems to have additional power-related options (DISK_SPINDOWN_TIMEOUT_ON_AC, SATA_LINKPWR_ON_AC), and our desktop is similar to a laptop insofar that it often goes into sleep (and wake up from it days later), and the speed limits have to survive sleeps. On the other hand, the documentation of TLP says it's for laptops (whereas the machine in question is a stationary desktop).