by tamrix · 5y ago · 0 comments
The CPU itself can change frequencies much faster on its own instead of the software based speedstep which programs like this controlled.
This eliminates the need for an on-battery or plugged-in performance mode because it changes frequencies so fast, you're no longer losing performance by waiting for the software to speed up the cpu. So you can keep it on all the time.
For these CPUs, all this is in the kernel and enabled by default.
Here's my /etc/rc.d/rc.local script:
#!/bin/sh
for policy in /sys/devices/system/cpu/cpufreq/policy*
do
echo "power" > "$policy"/energy_performance_preference
done
Here's available preferences: $ cat /sys/devices/system/cpu/cpufreq/policy0/energy_performance_available_preferences
default performance balance_performance balance_power power
Basically I can choose between "performance" and "power" (low performance) modes. I'm choosing power, so my fans are silent. And they're silent indeed, no matter the load. echo power | tee /sys/devices/system/cpu/cpufreq/policy*/energy_performance_preferenceFound that one way later than I'd care to admit. I use tee $FILE > /dev/null <EOF quite often in some situations where redirects get ugly, and sponge is a nice util to tidy up the invocation.
https://www.ipwatchdog.com/2020/10/09/centripetal-networks-a...
"AMD’s Ryzen 9 3900X also has the new Collaborative Power Performance Control 2 (CPPC2) feature, which manipulates Ryzen 3000's power states from within the operating system. This is similar to Intel's Speed Shift technology and reduces power state transition latency. Ultimately, that results in a more efficient processor during all facets of operation."
Though that seems to be about boosting clocks higher clocks when it can.
https://www.amd.com/en/technologies/smartshift
Again does seem to focus upon boosting performance
So no clear-cut stand-out answer, but does seem some level of OS interaction is required, I couldn't say with 100% certainty.