LinuxQuestions.org
Review your favorite Linux distribution.
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, 07:29 AM   #1
pingu_penguin
Member
 
Registered: Aug 2004
Distribution: mostly ubuntu , but want to migrate strongly to slack.
Posts: 280

Rep: Reputation: 56
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, 04:26 PM   #2
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 97
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, 03:19 AM   #3
pingu_penguin
Member
 
Registered: Aug 2004
Distribution: mostly ubuntu , but want to migrate strongly to slack.
Posts: 280

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

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

All times are GMT -5. The time now is 09:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration