Linux Performance Monitoring with Vmstat and Iostat Commands

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators

Ravi Saive

Simple Word a Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux.

Your name can also be listed here. Work as a Paid freelancer/writer at TecMint.

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Ubuntu Linux Toolbox: 1000+ Commands

You may also like...

13 Responses

  1. Raghu says:

    what does iostat -k 10 means, and please any body let me know

  2. Markus Aurelius says:

    You wrote :

    Free – Amount of free/idle memory spaces.

    But can you tell me what exactly you mean by “Amount”?

    Is it COUNT OF TOTAL FREE PAGE BLOCKS (In most case 1 Page Block = 4096 Bits)

    or measured in MBytes or Mbits Or KByes or Kbits ??

    Please clarify?

    How would your calculate free memory in Mega Bits?
    Replay Must.

  3. Amar Tiwari says:

    Hello Sir,

    I want to know that how can we know bottelneck by looking these output. Please tell me according to CPU, Memory and HDD.

    Thanks for reply.

  4. Krishna says:

    Just to mention, vmstat is not from package sysstat, it is from procps

  5. Pavan says:

    Can we show only vmstat cpu? If so, how?

  6. Mark says:

    I have a question.
    I wanted to print vmstat with timestamp on LinuxMint 13 with bash shell but seems your
    command

    vmstat -t

    does not works. It says there is no such argument as -t.
    Is there other command for vmstat on OS like Linux Mint/Ubuntu which i can use to print vmstat with Timestamp.

    I know it works for AIX but not for LM/Ubuntu. :S

  7. quydo says:

    @YM:

    iostat -d 5 | tee -a monitor.txt

    Log will appear in screen and save to monitor.txt simultaneously :D

  8. YM says:

    Thank you.

    Was able to write io logs, but when tried the same, i get “netstat: extra arguements”, but when tried netstat -a, logs were written into a file.

    Please advice me on how to overcome this?

    Thanks in advance.

  9. YM says:

    i need to monitor iostat and netstat for the app server, i need to monitor it for a particular time period with a time interval of 5 sec and write these logs to a particular file. am not sure of how do i do that. please gice suggestions.

    • Ravi Saive says:

      Do that this way, The below command append output to file “monitor.txt” every 5 seconds.

      # iostat -d 5 >> monitor.txt
      

      Same way do it for netstat.

  10. asd says:

    you made a mistake

    si – Swaped in every second from disk in Kilo Bytes.
    si – Swaped out every second to disk in Kilo Bytes.

    (i think you meant so second time)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Join Over 62000+ Linux Users
  1. 46679
  2. 2055
  3. 10101

Enter your email to get latest Linux Howto's