When I run the top
command, the third line is;
Cpu(s): 0.3%us, 0.3%sy, 0.0%ni, 99.2%id, 0.1%wa, 0.0%hi, 0.0%si, 0.1%st
From where does top command get this data? Does it get from /proc
?, if yes, what is the exact location?
linuxtop
When I run the top
command, the third line is;
Cpu(s): 0.3%us, 0.3%sy, 0.0%ni, 99.2%id, 0.1%wa, 0.0%hi, 0.0%si, 0.1%st
From where does top command get this data? Does it get from /proc
?, if yes, what is the exact location?
Best Answer
You are questioning for the exact location of the CPU usage. This is
/proc/stat
:The format is explained in the Kernel Documentation (
filesystems/proc.txt
); I bolded thetop
abbreviations:General informations about your CPU you can get from
/proc/cpuinfo
, but this is not related to the CPU usage.