Subject: | individual cpu logging missing |
Date: | Mon, 9 Oct 2006 10:55:58 +0200 |
To: | <bug-Linux-Statistics [...] rt.cpan.org> |
From: | Morten Bjørnsvik <morten.bjornsvik [...] experian-scorex.no> |
I see ProcStats only include the cpu summary, it should have a device-list cpu0, cpu1 etc.
If you have a uniprocessor machine, or not hyperthreaded this does not show up.
'ProcStats' => {
'Total' => 100,
'New' => 1,
'System' => 0,
'IOWait' => 0,
'User' => '100.00',
'Idle' => 0,
'Nice' => 0
}
%cat /proc/stat
cpu 40510 2740 12904 1538920 6878 455 235 0
cpu0 19587 1652 8209 766350 4897 455 186 0
cpu1 20923 1088 4694 772569 1980 0 49 0
intr 2602130 2003180 11725 0 5 4 0 9 0 2 1 0 0 282345 0 44704 70744 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 53339 0 0 0 0 0 0 0 136071 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ctxt 6045869
btime 1160375333
processes 8914
procs_running 2
procs_blocked 0
Thanks
--
Morten Bjørnsvik