LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-18-2016, 06:29 AM   #1
pingu_penguin
Member
 
Registered: Aug 2004
Location: pune
Distribution: Slackware
Posts: 351

Rep: Reputation: 60
vmstat query.


Hi,

Is there any benefit in using "vmstat 2 5" or similar over say "vmstat -w 1" which would print every second ?

I see a lot of admins doing this, not sure why.

Any insights appreciated.
 
Old 11-18-2016, 03:26 PM   #2
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
Vmstat 2 5 is good for giving an average over 10 seconds (good if incorporated into scripts)

vmstat -w 1 runs until terminated
 
Old 11-19-2016, 02:19 AM   #3
pingu_penguin
Member
 
Registered: Aug 2004
Location: pune
Distribution: Slackware
Posts: 351

Original Poster
Rep: Reputation: 60
I do know how to use vmstat , but I used to observe the change in resource utilization triggered by load every second, to see the values go up/down gradually.

I guess the 2 second interval clutters the screen less and gives you a bit more time to conclude safely which element is within bounds. sounds good.

Thanks anyway.
 
  


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
Different results from vmstat and ps alburdet619 Linux - Newbie 11 06-28-2010 11:03 AM
Different results from vmstat and ps alburdet619 Linux - General 1 06-25-2010 12:08 PM
vmstat lucifer_smiles Linux - Server 1 01-29-2008 06:09 PM
vmstat vs. sar danieldinu Solaris / OpenSolaris 10 10-27-2006 04:07 PM
vmstat UltraSoul Solaris / OpenSolaris 9 07-14-2006 10:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:45 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
Open Source Consulting | Domain Registration