LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-22-2007, 04:11 AM   #1
3ttt
LQ Newbie
 
Registered: May 2007
Posts: 18

Rep: Reputation: 0
Smile How to measure and get CPU & I/O utilization?


Hi Everybody

*Can anybody explain me how to get %user, %nice, %sys and %iowait (in the way iostat) from /proc/stat?

e.g. "cat /proc/stat" from SuSe Linux 2.6.13-15-default
cpu 36074 365 31552 298360 28847 971 144 0
cpu0 36074 365 31552 298360 28847 971 144 0
intr 1270582 990729 2952 0 6737 1 1 52 1 2 10113 519 182058 115 0 43644 33658 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ctxt 1635334
btime 1179832166
processes 9658
procs_running 3
procs_blocked 0

*Is it possible to compute "CPU Utilization" as
CPU Utilization = %user + %sys ?

* What does %nice represent for?

*Is it possible to imply "%iowait" for "I/O utilization"?
If not how to measure and to get the value of "I/O utilization" for the whole system, which include mouse/storages (local and perepheral)/USB devices/CDRom/...?

Thank you very much for your help.

3TTT
 
Old 05-22-2007, 04:47 AM   #2
biniou
Member
 
Registered: Feb 2007
Location: Belgium
Distribution: Ubuntu (7.04), (B)LFS (6.2), ...
Posts: 105

Rep: Reputation: 15
Hello !

You can use "top" in a console ...

Regards,
Biniou
 
Old 05-22-2007, 05:05 AM   #3
3ttt
LQ Newbie
 
Registered: May 2007
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks your reply, Biniou :-)

yes, there are many tools to monitor such top, iostat, mpstat, ...
However I really want to know how to get "CPU utilization" and "I/O utilization" for the whole system?
 
  


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
Thread CPU Utilization frakman1 Programming 3 01-20-2006 01:27 PM
per process cpu utilization kunal_patel22 Linux - Software 1 05-19-2005 10:26 AM
getting total cpu utilization using c theog Programming 2 03-19-2005 04:41 PM
CPU & memory utilization rgerhards Linux - Newbie 2 12-03-2003 11:24 AM
100 % CPU utilization Ganesh Kamat Linux - General 14 04-18-2003 01:34 PM


All times are GMT -5. The time now is 10:40 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration