LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-30-2007, 05:41 AM   #1
brettcarr
LQ Newbie
 
Registered: Nov 2007
Posts: 1

Rep: Reputation: 0
difference between sar and vmstat


With regard to cpu usage and idle I was under the impression that sar and vmstat get their info from the same place, however please find some figures below all taken from the same system:

sar shows no idle and loads of system but vmstat shows plenty of idle
so why the difference, I tend to believe vmstat as the machine does not feel sluggish. top also shows all cpu's have plenty of idle but there are process within top showing 90-100% usage.

sar -u 1 5
Linux 2.6.9-42.0.2.ELhugemem (apps906-p.lvt.us.ml.com) 11/30/2007

11:34:42 AM CPU %user %nice %system %iowait %idle
11:34:43 AM all 7.53 0.00 92.47 0.00 0.00
11:34:44 AM all 3.23 0.00 96.77 0.00 0.00
11:34:45 AM all 1.12 1.12 97.75 0.00 0.00
11:34:46 AM all 2.38 0.00 97.62 0.00 0.00
11:34:47 AM all 1.98 0.00 98.02 0.00 0.00
Average: all 3.26 0.22 96.52 0.00 0.00

vmstat 1 5
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
1 0 0 6184392 342536 7616324 0 0 0 22 0 0 4 12 84 0
1 0 0 6184328 342536 7616324 0 0 0 0 1491 946 0 23 77 0
0 0 0 6184520 342536 7616324 0 0 0 0 1373 581 1 21 78 0
1 0 0 6184520 342536 7616324 0 0 0 0 1417 791 0 18 82 0
2 0 0 6184528 342536 7616324 0 0 0 856 1253 334 0 21 80 0
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sar iostat sadf mpstat ? vmstat ? for Cent OS 4.2 rafiqul Linux - Newbie 6 07-16-2013 02:29 PM
Difference in SAR and TOP result ImranAthar Linux - General 0 08-29-2007 09:04 AM
vmstat vs. sar danieldinu Solaris / OpenSolaris 10 10-27-2006 04:07 PM
Difference between Sar and Vmstat blurblur Linux - Newbie 3 05-03-2005 09:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:32 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