The cpuidle subsystem
The cpuidle subsystem
Posted Apr 27, 2010 20:15 UTC (Tue) by nix (subscriber, #2304)In reply to: The cpuidle subsystem by intgr
Parent article: The cpuidle subsystem
Prior to that, powertop had to read the data itself by making ACPI calls. I suppose this is less likely to work on non-laptops, even when C-states are available, because it's depending on the BIOS vendor doing the right thing (and we know how often *that* happens).
So, upgrade powertop and/or upgrade the kernel?
(You can't count C-state counters in software because when the CPU is in a C state it is not executing instructions. That's the whole point.)
Posted Apr 27, 2010 20:53 UTC (Tue)
by intgr (subscriber, #39733)
[Link] (4 responses)
> You can't count C-state counters in software because when the CPU is in
Posted Apr 27, 2010 21:23 UTC (Tue)
by nix (subscriber, #2304)
[Link] (3 responses)
I suspect it needs some word-wrapping: the 'available' has been overwritten by the P-state heading :)
Posted Apr 28, 2010 11:53 UTC (Wed)
by nye (subscriber, #51576)
[Link] (2 responses)
Since it always says that, no matter how wide the terminal in which it's run, you'd think somebody who knows that the message has been truncated would have noticed at some point and fixed it. I just assumed it was a message in some arcane code known to those deeply involved in power usage monitoring :P.
Anyway it's unfortunate that desktop CPUs don't support this - even the Atom (D510) I bought a month ago only supports C0 and C1, and I don't know if it's possible to tell how long it's spending in what state. It seems you need CPUs designed specifically for battery-powered devices if you want anything more.
Posted Apr 28, 2010 12:16 UTC (Wed)
by hmh (subscriber, #3838)
[Link] (1 responses)
Posted Apr 28, 2010 14:11 UTC (Wed)
by nye (subscriber, #51576)
[Link]
However, if even brand new all-in-one Atom systems don't support this - given that they're targetted specifically at low-power uses - it doesn't seem to be a stretch to conclude that this is something that manufacturers basically don't care about.
The cpuidle subsystem
Indeed, I pasted that from an older installation. Up-to-date computers give me this ever-confusing message:
"< Detailed C-state information is not P-states (frequencies)"
I guess since this is Intel's software, they don't pay much attention to how it looks like on AMD processors. :)
> a C state it is not executing instructions.
But you can record timestamps before entering and after leaving the sleep state. Is that too expensive?
The cpuidle subsystem
The cpuidle subsystem
The cpuidle subsystem
The cpuidle subsystem