Você está questionando a localização exata do uso da CPU. Isso é /proc/stat
:
$ head -n 3 /proc/stat
cpu 1751981 185577 398478 28868975 69445 32 27028 0 0 0
cpu0 954878 88888 186567 14433502 19750 0 600 0 0 0
cpu1 797103 96688 211911 14435473 49694 31 26428 0 0 0
O formato é explicado na Documentação do Kernel ( filesystems/proc.txt
); Coloquei em negrito as abreviaturas top
:
The very first "cpu" line aggregates the numbers in all of the other "cpuN" lines. These numbers identify the amount of time the CPU has spent performing different kinds of work. Time units are in USER_HZ (typically hundredths of a second). The meanings of the columns are as follows, from left to right:
- user: normal processes executing in user mode
- nice: niced processes executing in user mode
- system: processes executing in kernel mode
- idle: twiddling thumbs
- iowait: waiting for I/O to complete
- irq: servicing interrupts [hard interrupts hi]
- softirq: servicing softirqs [soft interrupts si]
- steal: involuntary wait
- guest: running a normal guest
- guest_nice: running a niced guest
Informações gerais sobre sua CPU podem ser obtidas de /proc/cpuinfo
, mas isso não está relacionado ao uso da CPU.