blog.up-link.ro android bsd linux unix & open-source world

18Jun/102

UNIX Tools: vmstat – report virtual memory statistics

WP Greet Box icon
Hello there! If you are new here, you might want to subscribe to the RSS feed or subscribe via E-mail for updates on this topic.

vmstat is a computer system monitor tool that collects and displays summary information about operating system memory, processes, interrupts, paging and block I/O information.

vmstat

vmstat sample output

vmstat usage:

vmstat [-V] [-n] [delay [count]]

-V prints version.
-n causes the headers not to be reprinted regularly.
-a print inactive/active page stats.
-d prints disk statistics
-D prints disk table
-p prints disk partition statistics
-s prints vm table
-m prints slabinfo
-S unit size
delay is the delay between updates in seconds.
unit size k:1000 K:1024 m:1000000 M:1048576 (default is K)
count is the number of updates.

To display memory utilization slabinfo, enter:

vmstat -m

To display disk statistics, enter:

vmstat -d

To get information about active / inactive memory pages, enter:

vmstat -a
Print This Post Print This Post
Comments (2) Trackbacks (1)
  1. it was very interesting to read.
    I want to quote your post in my blog. It can?
    And you et an account on Twitter?

  2. Pechenie, you can quote my post on your blog if you specify my blog as source.


Leave a comment


*