LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-28-2005, 11:35 PM   #1
blurblur
LQ Newbie
 
Registered: Apr 2005
Posts: 4

Rep: Reputation: 0
Difference between Sar and Vmstat


Hello,

I have a question regarding vmstat and sar -B. When I run vmstat , it shows value of zero for si and so parameter (under swap). But when I run sar -B, the pgpgin/s and pgpgout/s are showing values.

Si and So measure the memory being page in and page out , right? Kind of confuse here. Arent' they suppose to match the pgpgin/s and pgpgout/s shown in sar?

Please advise.
Thanks alot.
BlurBlur
 
Old 05-02-2005, 04:26 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I suppose it depends on how sar is run in general ...

If you just run "sar -B" as such it will get the information
from the most recently written to file, while vmstat will give
you in-situ stats ...



Cheers,
Tink
 
Old 05-03-2005, 09:54 PM   #3
blurblur
LQ Newbie
 
Registered: Apr 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Hello Tink,

Thanks! But can you elaborate more as to what you mean by "most recently written to file" and "in-situ stats"?

How can I run sar such that it will show the same information as vmstat then?

Cheers,
Blur
 
Old 05-03-2005, 10:14 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
sar -B 1

Read the manpage ;}

"In situ" means "right now".


Cheers,
Tink
 
  


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
vmstat shows swpd as 0 Skazi Linux - General 4 03-11-2005 04:39 AM
how to install iostat, mpstat, vmstat commands in RHEL 3.0 kgvs_prasad Linux - Enterprise 2 02-08-2005 01:02 PM
vmstat segmentation fault mbeason Debian 0 09-07-2004 06:35 PM
Vmstat and hit rates kiwi_bloke Linux - General 0 08-29-2004 07:44 PM
sar - utility bktpv Linux - Networking 1 01-05-2002 05:33 PM


All times are GMT -5. The time now is 01:07 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration