Frequency Scaling on Intel Core 2 Duo Processors
Hi,
I am working on a research in real-time systems. If I want to change the frequency of the system as rapidly as possible, what is the best method ? At the moment I write MSR_IA32_PERF_CTL, MSR directly with the pre-found(calculated, encoded) values** for different frequencies. I found the entire transition (latency) takes multiple milliseconds to complete; however, I want some faster method to change the CPU frequency.
Thank you in advance.
-Pradeep
** Initially I change the CPU frequency by some other method, such as methods provided by an available user-space governor, and record the MSR_IA32_PERF_STATUS values corresponding to that frequency. Later, I change the relevant bits of MSR_IA32_PERF_CTL, with the values I got previously, to achieve the relevant anticipated speed.
Quoted 9 lines · pradeep hettiarachchi
Hi,
I am working on a research in real-time systems. If I want to change the frequency of the system as rapidly as possible, what is the best method ? At the moment I write
MSR_IA32_PERF_CTL, MSR directly with the pre-found(calculated, encoded) values** for different frequencies. I found the entire transition (latency) takes multiple milliseconds to complete; however, I want some faster method to change the CPU frequency.
You're going to have a hard time making it switch any faster than the value listed in /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_transition_latency though I admit I'm not awake enough yet to be sure what the units of that file are...