Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I learnt that we can change P-state governors with the command echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/current_governor

How dooes one change the C state governor ?

share|improve this question
up vote 1 down vote accepted

it can be changed by going into /sys/devices/system/cpu/cpuidle directory and changing the file scaling_governor from ladder to menu (say)

share|improve this answer

I don't believe that you can govern the C state from the OS.

If the CPU supports it, then it will enter lower powered states automatically, BIOS permitting.

But it doesn't make so much sense applying a governor to it in the same way that you control how P states ramp up and down depending on active usage.

share|improve this answer
I have heard of ladder governors and menu governors that govern C states. So i was curious to know how to change the current governor from ladder governor to menu governor – kashyapa Nov 3 '09 at 16:02

Check out this article on C,P, and T-states for power/cpu frequency scaling management.

The long and short of it is from the article is

* cd /sys/devices/system/cpu
* ls -L
* cd cpux/cpufreq
* cat scaling_available_frequencies
* echo -n xxxxx > scaling_max_freq
* echo -n yyyyy > scaling_min_freq

share|improve this answer
What I wanted to know was actually this : If my current C-state governor is ladder governor, How do you change settings so that my C-state governor shall be menu governor (say) – kashyapa Nov 3 '09 at 15:50
Sorry about that, I missed what you were getting at somehow, even though its clear. I am pretty sure that the c state governor is only a compile time option in the Linux kernel. If anyone knows differently I would be interested to hear it. :) – MattyB Nov 3 '09 at 16:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.