LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   iowait, Idle and user (https://www.linuxquestions.org/questions/linux-server-73/iowait-idle-and-user-934361/)

graziano1968 03-14-2012 03:40 AM

iowait, Idle and user
 
Hello

how to get from linux console current (not the average data), used by
iowait, Idle and user , without using top ?

For example now top is returning this
Cpu(s): 11.0%us, 2.7%sy, 0.3%ni, 82.8%id, 3.0%wa, 0.0%hi, 0.2%si, 0.0%st

Where to get 11.0%us , 82.8%id and 3.0%wa without using top ?
I suppose I should grep some data in /proc/ but where exactly.

Thank you
Graziano

syg00 03-14-2012 03:56 AM

There is no such "current" data. Look at the manpage for proc, entry /proc/stat.
You can do all the math yourself, but believe me, "top" makes it easier.

graziano1968 03-14-2012 03:57 AM

I need this info to save them on a chart . Top is interactive I can't use it.

syg00 03-14-2012 04:09 AM

I would suggest you also read the manpage for "top".

graziano1968 03-14-2012 04:58 AM

Quote:

Originally Posted by syg00 (Post 4626409)
I would suggest you also read the manpage for "top".

ok I have seen -n


All times are GMT -5. The time now is 08:30 AM.