Re: Getting CPU load (from /proc/?)
Arcady Genkin wrote:
>
> How would I get a real-time CPU load information? I found
> /proc/loadavg, but that's not what I need, since it only gives average
> load values.
though i dont know how to interpet it look at /proc/stat. i found it by
running top and running lsof to see what top was using:
top 30949 root 3r REG 0,1 0 3
/proc/uptime
top 30949 root 4r REG 0,1 0 17
/proc/stat
top 30949 root 5r REG 0,1 0 4
/proc/meminfo
top 30949 root 6r REG 0,1 0 2
/proc/loadavg
looking at the source for top may help ..
nate
--
:::
ICQ: 75132336
http://www.aphroland.org/
http://www.linuxpowered.net/
aphro@aphroland.org
Reply to: