Hi Greg,
The author responded:
The latency to switch P-state depends on the processor. You can look at the latency value on your particular processor by
#cat /proc/acpi/processor/CPU*/performance
## Note this may need some particular kernel configuration
Typically this value is 10uS or 100uS. Ondemand, by default, does the monitoring based on this latency. Default sampling interval of ondemand is 1000 times this latency. So, if you have a CPU with latency 100uS, ondemand is already polling at 100 mS (10 times per sec). You may see freq changing lesser number of times than that. But, that will be because thats when CPU load actually changed and not because ondemand is polling once per second. On all Intel systems I have seen ondemand samples atleast 9 times per second.
You can check ondemand sampling value and increase/decrease it by looking at the tunables in
/sys/devices/system/cpu/cpu*/cpufreq/ondemand/ directory.
Regards,
Lexi S.
Intel(R) Software Network Support
http://www.intel.com/software
email: ISN.support@intel.com
Intel is a registered trademark of Intel Corporation or its subsidiaries in the United States and other countries.