* kernel-2.6.25-rc2, CPU C state "active state" always remain C0 unchangeable by cat 'proc/'
@ 2008-02-21 7:01 youquan_song
2008-02-21 20:24 ` Pallipadi, Venkatesh
0 siblings, 1 reply; 2+ messages in thread
From: youquan_song @ 2008-02-21 7:01 UTC (permalink / raw)
To: linux-kernel; +Cc: youquan.song
On Fedora9 Alpha with kernel-2.6.25-rc2,
I run " watch -n 0.1 "cat /proc/acpi/processor/CPU*/power | grep 'active
state'" ", I find that the CPU C state information "active state" remain
at "C0" and it do not change any time. The same issue also exit on
2.6.24-rc2 kernel.
But with RHEL5.1 kernel-2.6.18 the CPU C state information is normal.
Every 0.1s: cat /proc/acpi/processor/CPU*/power | grep 'active state'
Thu Feb 21 09:44:33 2008
active state: C0
active state: C0
active state: C0
active state: C0
active state: C0
active state: C0
active state: C0
active state: C0
On RHEL5.1 kernel-2.6.18-53.el5
[root@localhost ~]# cat /proc/acpi/processor/CPU*/power | grep 'active state'
active state: C2
active state: C2
active state: C2
active state: C2
active state: C2
active state: C3
active state: C2
active state: C3
The hardware platform: bensley and santarosa.
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: kernel-2.6.25-rc2, CPU C state "active state" always remain C0 unchangeable by cat 'proc/'
2008-02-21 7:01 kernel-2.6.25-rc2, CPU C state "active state" always remain C0 unchangeable by cat 'proc/' youquan_song
@ 2008-02-21 20:24 ` Pallipadi, Venkatesh
0 siblings, 0 replies; 2+ messages in thread
From: Pallipadi, Venkatesh @ 2008-02-21 20:24 UTC (permalink / raw)
To: youquan_song, linux-kernel; +Cc: Song, Youquan
>-----Original Message-----
>From: linux-kernel-owner@vger.kernel.org
>[mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of
>youquan_song@linux.intel.com
>Sent: Wednesday, February 20, 2008 11:01 PM
>To: linux-kernel@vger.kernel.org
>Cc: Song, Youquan
>Subject: kernel-2.6.25-rc2, CPU C state "active state" always
>remain C0 unchangeable by cat 'proc/'
>
>On Fedora9 Alpha with kernel-2.6.25-rc2,
>I run " watch -n 0.1 "cat /proc/acpi/processor/CPU*/power |
>grep 'active
>state'" ", I find that the CPU C state information "active
>state" remain
>at "C0" and it do not change any time. The same issue also exit on
>2.6.24-rc2 kernel.
>But with RHEL5.1 kernel-2.6.18 the CPU C state information is normal.
>
>
>Every 0.1s: cat /proc/acpi/processor/CPU*/power | grep 'active
>state'
>
>
>Thu Feb 21 09:44:33 2008
>
>active state: C0
>active state: C0
>active state: C0
>active state: C0
>active state: C0
>active state: C0
>active state: C0
>active state: C0
>
>On RHEL5.1 kernel-2.6.18-53.el5
>[root@localhost ~]# cat /proc/acpi/processor/CPU*/power | grep
>'active state'
>active state: C2
>active state: C2
>active state: C2
>active state: C2
>active state: C2
>active state: C3
>active state: C2
>active state: C3
>
>The hardware platform: bensley and santarosa.
>
I am not sure active state gives a lot of information about C-state. And
I really hate to see code waking up every .1 sec to check the active
state :-).
/proc/acpi/processor/*/power is marked deprecated upstream and if you
really want this field, you will have to disable CONFIG_CPU_IDLE in
upstream kernel. With CPU_IDLE you will get more detailed information
about all C-states entry counts and residencies under
/sys/devices/system/cpu/cpu*/cpuidle/
Thanks,
Venki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-02-21 20:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-21 7:01 kernel-2.6.25-rc2, CPU C state "active state" always remain C0 unchangeable by cat 'proc/' youquan_song
2008-02-21 20:24 ` Pallipadi, Venkatesh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox