Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

cpu throttling and frequency check

1 view
Skip to first unread message

pkajak

unread,
Jul 4, 2008, 3:54:42 AM7/4/08
to
Hello,

I do "echo -n 1 > throttling" in /proc/acpi/processor/CPU1 and CPU2 and
then check /proc/acpi/processor/CPU0/throttling. It looks like this:

state count: 8
active state: T1
states:
T0: 00%
*T1: 12%
T2: 25%
T3: 37%
T4: 50%
T5: 62%
T6: 75%
T7: 87%

So I presume that current CPU frequency should be 12% of 2.4GHz but in
/proc/cpuinfo I see:

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
stepping : 6
cpu MHz : 2400.239
cache size : 4096 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes

Do you have any suggestions how to make it work properly?

Regards PKajak

Grant

unread,
Jul 4, 2008, 4:28:20 AM7/4/08
to

I think you'll find that throttling is a percentage on/off state setting,
not percent of speed setting. Thus the speed setting is correctly shown
at the full rate. IOW the CPU goes full speed at the throttled rate in
time --> 12.5 percent being 1/8 go and 7/8 stop.

Grant.
--
http://bugsplatter.mine.nu/

Sylvain Robitaille

unread,
Jul 4, 2008, 11:02:53 AM7/4/08
to
Grant wrote:

>>states:
>> T0: 00%
>> *T1: 12%
>> T2: 25%
>> T3: 37%
>> T4: 50%
>> T5: 62%
>> T6: 75%
>> T7: 87%
>

> ... the CPU goes full speed at the throttled rate in

> time --> 12.5 percent being 1/8 go and 7/8 stop.

I'm pretty sure it's the other way around, though: "throttled 12% of the
time". Else "T0" (which appears to be the default on several systems
I've checked) would amount to "the CPU is running 0% of the time". I'm
pretty sure that isn't the case on my systems. ;-)

--
----------------------------------------------------------------------
Sylvain Robitaille s...@alcor.concordia.ca

Systems and Network analyst Concordia University
Instructional & Information Technology Montreal, Quebec, Canada
----------------------------------------------------------------------

Grant

unread,
Jul 4, 2008, 4:17:53 PM7/4/08
to
On Fri, 4 Jul 2008 15:02:53 +0000 (UTC), Sylvain Robitaille <s...@alcor.concordia.ca> wrote:

>Grant wrote:
>
>>>states:
>>> T0: 00%
>>> *T1: 12%
>>> T2: 25%
>>> T3: 37%
>>> T4: 50%
>>> T5: 62%
>>> T6: 75%
>>> T7: 87%
>>
>> ... the CPU goes full speed at the throttled rate in
>> time --> 12.5 percent being 1/8 go and 7/8 stop.
>
>I'm pretty sure it's the other way around, though: "throttled 12% of the
>time". Else "T0" (which appears to be the default on several systems
>I've checked) would amount to "the CPU is running 0% of the time". I'm
>pretty sure that isn't the case on my systems. ;-)

Yeah, I'm easily confused :o) Of course T0 is throttled 0% of the time...

Grant.
--
http://bugsplatter.mine.nu/

0 new messages