Absurd Minds
http://forums.absurdminds.net/

Fixing CPU Governor on Ubuntu 13.04
http://forums.absurdminds.net/viewtopic.php?f=18&t=1929
Page 1 of 1

Author:  jero [ 03 Jul 2013 10:51 ]
Post subject:  Fixing CPU Governor on Ubuntu 13.04

I am sure there is a better way to do this but since I was impatient.

Confirm that your Cores are set too low
Code:
cat /proc/cpuinfo |grep "MHz"
Output:
cpu MHz : 1600.000
cpu MHz : 1600.000
cpu MHz : 1600.000
cpu MHz : 1600.000
cpu MHz : 1600.000
cpu MHz : 1600.000
cpu MHz : 1600.000
cpu MHz : 1600.000



Install CPUFreq Untilities
Code:
sudo apt-get install cpufrequtils
Attempt to set the governor to "Performance", which in theory should maximize the cores.
Code:
sudo cpufreq-set -r -g performance
Check
Code:
cat /proc/cpuinfo |grep "MHz"
If Successful, then you are done. If not you may have to set the core speed manually.
Print Supported CPU Steps
Code:
cpufreq-info|grep "stats"
Manually set each core to the highest step (3.30Ghz in our case) -c is the thread we are changing, -f is the frequency.
Code:
sudo cpufreq-set -c 0 -f 3.30Ghz
Code:
sudo cpufreq-set -c 1 -f 3.30Ghz
Code:
sudo cpufreq-set -c 2 -f 3.30Ghz
Code:
sudo cpufreq-set -c 3 -f 3.30Ghz
Code:
sudo cpufreq-set -c 4 -f 3.30Ghz
Code:
sudo cpufreq-set -c 5 -f 3.30Ghz
Code:
sudo cpufreq-set -c 6 -f 3.30Ghz
Code:
sudo cpufreq-set -c 7 -f 3.30Ghz
Check
Code:
cat /proc/cpuinfo |grep "MHz"
Output:
cpu MHz : 3300.000
cpu MHz : 3300.000
cpu MHz : 3300.000
cpu MHz : 3300.000
cpu MHz : 3300.000
cpu MHz : 3300.000
cpu MHz : 3300.000
cpu MHz : 3300.000

Author:  Amaroq [ 03 Jul 2013 10:53 ]
Post subject:  Re: Fixing CPU Governor on Ubuntu 13.04

If any of you have recently switched to running your CS:GO servers on Ubuntu 13.04 and have noticed drastically lessened server performance and high variance rates, this is a fix you should implement. Running this fix allowed my servers to go from >4.0 variance with only 20 (128-tick) slots full to having <1.0 variance with 80 (128-tick) slots full.

Author:  Amaroq [ 03 Sep 2013 06:23 ]
Post subject:  Re: Fixing CPU Governor on Ubuntu 13.04

Some how our servers reset themselves to 1600 Mhz.

Apparently, restarting the server machine sets the MHz back to 1600. It just so happens that the other day I realized the server wasn't restarting nightly as suspected, and I fixed that, and inadvertantly broke our servers.

Any idea how to make it happen on restart? Do I just need to add those six commands for @reboot?

Author:  Amaroq [ 03 Sep 2013 06:35 ]
Post subject:  Re: Fixing CPU Governor on Ubuntu 13.04

I attempted @reboot root cpufreq-set -r -g performance (as that command was working fine with sudo), with no luck.

I attempted @reboot root cpufreq-set -c 0 -f 3.30Ghz. This also did not work.

Any advice on reinitializing these commands on reboot?

Author:  jero [ 03 Sep 2013 18:36 ]
Post subject:  Re: Fixing CPU Governor on Ubuntu 13.04

I set the minimum frequency the governor can use to 3.3Ghz
Code:
cpufreq-set -r -d 3.30Ghz

Author:  Amaroq [ 05 Sep 2013 17:59 ]
Post subject:  Re: Fixing CPU Governor on Ubuntu 13.04

Some how it got reset today. Even though I restarted it a couple times after you made the fix, today it is back to running at 1.6GHz.

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/