Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Child Fund

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 87 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

vmstat



SYNOPSIS

       vmstat [-a] [-n] [delay [ count]]
       vmstat [-f] [-s] [-m]
       vmstat [-S unit]
       vmstat [-d]
       vmstat [-V]


DESCRIPTION

       vmstat  reports  information about processes, memory, pag­
       ing, block IO, traps, and cpu activity.

       The first report produced gives averages  since  the  last
       reboot.  Additional reports give information on a sampling
       period of length delay.  The process  and  memory  reports
       are instantaneous in either case.

   Options
       The  -a  switch  displays  active/inactive memory, given a
       2.5.41 kernel or better.

       The -f switch displays the number  of  forks  since  boot.
       This includes the fork, vfork, and clone system calls, and
       is equivalent to the total number of tasks  created.  Each
       process  is represented by one or more tasks, depending on
       thread usage.  This display does not repeat.

       The -m displays slabinfo.

       The -n switch causes the header to be displayed only  once
       rather than periodically.

       The  -s  switch displays a table of various event counters
       and memory statistics. This display does not repeat.

       delay is the delay between  updates  in  seconds.   If  no
       delay  is  specified,  only one report is printed with the
       average values since boot.

       count is the number of updates.  If no count is  specified
       and delay is defined, count defaults to infinity.

       The -d reports disk statistics (2.5.70 or above required)

       The  -S  followed  by  k  or  K or m or M switches outputs
       between 1000, 1024, 1000000, or 1048576 bytes

       The -V switch results in displaying version information.


FIELD DESCRIPTION FOR VM MODE

   Procs
       si: Amount of memory swapped in from disk (/s).
       so: Amount of memory swapped to disk (/s).

   IO
       bi: Blocks received from a block device (blocks/s).
       bo: Blocks sent to a block device (blocks/s).

   System
       in: The number of interrupts per second, including the clock.
       cs: The number of context switches per second.

   CPU
       These are percentages of total CPU time.
       us: Time spent running non-kernel code. (user time, including nice time)
       sy: Time spent running kernel code. (system time)
       id: Time spent idle. Prior to Linux 2.5.41, this includes IO-wait time.
       wa: Time spent waiting for IO. Prior to Linux 2.5.41, shown as zero.


FIELD DESCRIPTION FOR DISK MODE

   Reads
       total: Total reads completed successfully
       merged: grouped reads (resulting in one I/O)
       sectors: Sectors read successfully
       ms: milliseconds spent reading

   Writes
       total: Total writes completed successfully
       merged: grouped writes (resulting in one I/O)
       sectors: Sectors written successfully
       ms: milliseconds spent writing

   IO
       cur: I/O in progress
       s: seconds spent for I/O


FIELD DESCRIPTION FOR SLAB MODE

       cache: Cache name
       num: Number of currently active objects
       total: Total number of available objects
       size: Size of each object
       pages: Number of pages with at least one active object
       totpages: Total number of allocated pages
       pslab: Number of pages per slab

       vmstat uses slabinfo 1.1    FIXME


FILES

       /proc/meminfo
       /proc/stat
       /proc/*/stat


SEE ALSO

       iostat(1), sar(1), mpstat(1), ps(1), top(1), free(1)


BUGS

       Does not tabulate the block io per  device  or  count  the
       number of system calls.


AUTHORS

       Written by Henry Ware <al172@yfn.ysu.edu>.
       Diskstat,slab mode and some improvements by Fabian Frederick <fabian.frederick@gmx.fr>

Throatwobbler Ginkgo Labs 27 July 1994                  VMSTAT(8)
  




Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
You can get all the latest Site and Linux news by checking out our news page.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.11 Seconds