drunkahol
23rd February 2006, 08:09 AM
Does anyone know where to get good up to date information on the data in /proc/stat.
I ask because all the information I find shows that the cpu lines should have 7 numbers after the cpu identifier. But I see 8 numbers. What's the 8th number representing? Has the ordering of the numbers been changed?
[duncan@thinkpad ~]$ cat /proc/stat
cpu 16569 0 5951 225720 10482 714 0 0
cpu0 16569 0 5951 225720 10482 714 0 0
intr 1066973 648559 1691 0 3 8 3 7 4 1 4387 3 164527 205580 0 20261 21939 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 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
ctxt 872060
btime 1140679430
processes 3379
procs_running 3
procs_blocked 0
I've written monitoring stuff that parses the /proc/stat file for lines matching "cpu?" followed by 7 numbers, then end of line. This extra number won't be difficult to code around, but I'd like to know what it is first.
Cheers
Duncan
I ask because all the information I find shows that the cpu lines should have 7 numbers after the cpu identifier. But I see 8 numbers. What's the 8th number representing? Has the ordering of the numbers been changed?
[duncan@thinkpad ~]$ cat /proc/stat
cpu 16569 0 5951 225720 10482 714 0 0
cpu0 16569 0 5951 225720 10482 714 0 0
intr 1066973 648559 1691 0 3 8 3 7 4 1 4387 3 164527 205580 0 20261 21939 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 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
ctxt 872060
btime 1140679430
processes 3379
procs_running 3
procs_blocked 0
I've written monitoring stuff that parses the /proc/stat file for lines matching "cpu?" followed by 7 numbers, then end of line. This extra number won't be difficult to code around, but I'd like to know what it is first.
Cheers
Duncan