[kanchilug] 1 Day 1 Command

  • From: Dhana Sekar <tkdhanasekar@xxxxxxxxx>
  • To: ILUG-C <ilugc@xxxxxxxxxxxxx>, kanchilug@xxxxxxxxxxxxx
  • Date: Mon, 17 Jun 2013 12:24:38 +0530

Hi all

Starting a Series of 1 Day 1 Command for beginners
starts with vmstat command

command: vmstat
purpose:  Reports virtual memory statistics.

syntax: vmstat [ -f ] [ -i ] [ -s ] [ -I ] [ -t ] [ -v ] [ -w] [ -l ] [ {
-p | -P } pagesize | ALL ] ALL ] [ PhysicalVolume ... ] [
Interval [ Count ] ]

The vmstat command reports statistics about kernel threads, virtual memory,
disks,
traps and pocessor activity. Reports generated by the vmstat command can be
used
to balance system load activity

examples:

1.  To display a summary of the statistics since boot, enter:
     # vmstat
2.  To display five summaries at 2-second intervals, enter:
     # vmstat 2 5
3.  To display a summary of the statistics since boot including statistics
for logical disks scdisk1 and
     scdisk2, enter:
     # vmstat scdisk1 scdisk2
4.  To display fork statistics, enter:
     # vmstat -f
5.  To display the count of various events, enter:
     # vmstat -s
6.  To display time-stamp next to each column of output of vmstat, enter:
     # vmstat -t
7.  To display the I/O oriented view with an alternative set of columns,
enter
     # vmstat -I
8.  To display the VMM statistics for all page sizes that are supported on
the system, enter:
     # vmstat -p ALL
9.  To display all the VMM statistics available, enter:
     # vmstat -vs

file: /usr/bin/vmstat contains the vmstat command

it is a performance tuning command

regards,
dhanasekar

Other related posts: