Skip to contentSkip to conversation

logging server C-state time?

DISCUSSION Chris Snook 2 participants 2 messages Nov 3, 2008

lore
Share & tools
lore
#0 lore raw

Hey folks --

I'm interested in logging the amount of time that server CPUs spend in various C-states over the course of a complicated job, ideally in a manner I could sync up with output from sysstat tools. So far all the tools I've seen for power monitoring seem to be targeted to laptops and interactive use, but I'm looking for something that's scriptable and doesn't need ACPI battery information, even if that means relying on indirect measurements of power use like C-states. Any suggestions?

-- Chris

#1 lore raw
Quoted 10 lines · On Mon, 03 Nov 2008 14:47:52 -0500 Chris Snook <[email protected]> wrote:

Hey folks --

I'm interested in logging the amount of time that server CPUs spend in various C-states over the course of a complicated job, ideally in a manner I could sync up with output from sysstat tools. So far all the tools I've seen for power monitoring seem to be targeted to laptops and interactive use, but I'm looking for something that's scriptable and doesn't need ACPI battery information, even if that means relying on indirect measurements of power use like C-states. Any suggestions?

powertop gives you the C state information accumulated over time... just look at the code how it does that ;)

Signature · 3 lines
Arjan van de Ven 	Intel Open Source Technology Centre
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org