CPU Scaling
I don't like hot CPU's so when I install Linux I usually setup and install cpupower on it.
It's dead easy. Check this:
And this is what you should see after starting the service/rebooting:
To check if the CPU Governor is really running and reducing speed when idle we can use cpupower too:
It's dead easy. Check this:
pacman -S cpupower
cat /etc/systemd/system/cpuscaling.service
[Unit]
Description=change cpu governor
[Service]
User=root
Type=oneshot
ExecStart=/usr/bin/cpupower frequency-set -g ondemand
[Install]
WantedBy=multi-user.target
systemctl enable cpuscaling.service
systemctl start cpuscaling.service
And this is what you should see after starting the service/rebooting:
systemctl status cpuscaling.service
* cpuscaling.service - Change CPU Governor
Loaded: loaded (/etc/systemd/system/cpuscaling.service; enabled)
Active: inactive (dead) since Tue 2014-08-19 06:07:54 UTC; 40s ago
Process: 2250 ExecStart=/usr/bin/cpupower frequency-set -g ondemand (code=exited, status=0/SUCCESS)
Main PID: 2250 (code=exited, status=0/SUCCESS)
Aug 19 06:07:54 alarm cpupower[2250]: Setting cpu: 0
Aug 19 06:07:54 alarm systemd[1]: Started Change CPU Governor.
To check if the CPU Governor is really running and reducing speed when idle we can use cpupower too:
cpupower frequency-info
analyzing CPU 0:
driver: kirkwood-cpufreq
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 5.0 us.
hardware limits: 400 MHz - 1.20 GHz
available frequency steps: 1.20 GHz, 400 MHz
available cpufreq governors: ondemand, performance
current policy: frequency should be within 400 MHz and 1.20 GHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency is 1.20 GHz (asserted by call to hardware).
cpufreq stats: 1.20 GHz:0.06%, 400 MHz:99.94% (296)
Comments
Post a Comment