Freitag, 19. März 2010

Disable CPU Throttling for a faster result

Just noticed that CentOS has the “cpuspeed” service that throttles the CPU and causes my pages to parse 2X slow.

# service cpuspeed status
Frequency scaling enabled using ondemand governor

# cat /proc/cpuinfo

model name : Intel(R) Xeon(R) CPU X5570 @ 2.93GHz
stepping : 5
cpu MHz : 1600.000

and to disable it

# service cpuspeed stop
Disabling ondemand cpu frequency scaling: [ OK ]
# chkconfig cpuspeed off

# cat /proc/cpuinfo

model name : Intel(R) Xeon(R) CPU X5570 @ 2.93GHz
stepping : 5
cpu MHz : 2934.000

page generations and mysql queries are 2X faster now.