LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-14-2012, 03:40 AM   #1
graziano1968
Member
 
Registered: Sep 2004
Posts: 223

Rep: Reputation: 30
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

Last edited by graziano1968; 03-14-2012 at 03:43 AM.
 
Old 03-14-2012, 03:56 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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.
 
Old 03-14-2012, 03:57 AM   #3
graziano1968
Member
 
Registered: Sep 2004
Posts: 223

Original Poster
Rep: Reputation: 30
I need this info to save them on a chart . Top is interactive I can't use it.
 
Old 03-14-2012, 04:09 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I would suggest you also read the manpage for "top".
 
Old 03-14-2012, 04:58 AM   #5
graziano1968
Member
 
Registered: Sep 2004
Posts: 223

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by syg00 View Post
I would suggest you also read the manpage for "top".
ok I have seen -n
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] kill all idle user processes jasonws Linux - General 3 02-19-2015 04:45 AM
[SOLVED] How to know whether a Linux box in a network is Idle or some user is using that Jhinukk Linux - General 2 01-11-2012 11:24 AM
Problem Disconnecting Idle User kaplan71 Linux - Security 5 05-18-2008 12:32 PM
kill idle user ust Linux - Software 3 08-31-2004 02:19 PM
who idle user how to kill saavik Linux - Networking 1 03-04-2004 10:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration