Absurd Minds

More than 100 years without a motto.
It is currently 24 Nov 2024 12:23

All times are UTC-04:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: 03 Jul 2013 10:51 
Offline
User avatar

Joined: 25 Feb 2012 19:18
Posts: 908
Location: Ontario, Canada
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

_________________
Image


Last edited by jero on 03 Jul 2013 10:56, edited 4 times in total.

Top
   
PostPosted: 03 Jul 2013 10:53 
Offline
User avatar

Joined: 25 Mar 2010 19:07
Posts: 8392
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.

_________________
Server list
Donate


Top
   
PostPosted: 03 Sep 2013 06:23 
Offline
User avatar

Joined: 25 Mar 2010 19:07
Posts: 8392
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?

_________________
Server list
Donate


Top
   
PostPosted: 03 Sep 2013 06:35 
Offline
User avatar

Joined: 25 Mar 2010 19:07
Posts: 8392
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?

_________________
Server list
Donate


Top
   
PostPosted: 03 Sep 2013 18:36 
Offline
User avatar

Joined: 25 Feb 2012 19:18
Posts: 908
Location: Ontario, Canada
I set the minimum frequency the governor can use to 3.3Ghz
Code:
cpufreq-set -r -d 3.30Ghz

_________________
Image


Top
   
PostPosted: 05 Sep 2013 17:59 
Offline
User avatar

Joined: 25 Mar 2010 19:07
Posts: 8392
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.

_________________
Server list
Donate


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 posts ] 

All times are UTC-04:00


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited