vmstat输出项


vmstat输出项
 
# vmstat 1   
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----  
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa  
 1  0    252 1566792 310940 5117772    0    0     2   101    1   11  2  0 97  0  
 0  0    252 1566784 310940 5117776    0    0     0     0 4836 10015  1  0 100  0  
 0  0    252 1566784 310940 5117776    0    0     0     0 4880 10070  0  0 100  0  
 0  0    252 1566784 310940 5117776    0    0     0     0 4952 10137  0  0 100  0  
 1  0    252 1566784 310940 5117776    0    0     0    36 5056 10222  0  0 100  0  
 0  0    252 1566784 310940 5117776    0    0     0     0 4996 10220  0  0 100  0  
 0  0    252 1566784 310940 5117776    0    0     0     0 5128 10443  0  1 99  0  
 0  0    252 1566784 310940 5117776    0    0     0     0 5150 10368  0  0 100  0  
 0  0    252 1566784 310940 5117776    0    0     0     0 5132 10423  0  1 100  0  
 0  0    252 1566784 310940 5117776    0    0     0     0 5127 10380  0  0 100  0  
 0  0    252 1566784 310940 5117776    0    0     0     4 5212 10485  0  0 100  0  
 1  0    252 1566784 310940 5117776    0    0     0    16 5270 10530  0  0 99  1  
 1  0    252 1566784 310940 5117780    0    0     0     0 5329 10615  0  0 100  0  
 1  0    252 1566784 310940 5117800    0    0     0     0 4998 10316  1  0 99  0  
 1  0    252 1566784 310940 5117800    0    0     0     0 5013 10213  0  0 100  0</span>  
 
man vmstat:
 
[cpp]
<span style="font-size:18px;">FIELD DESCRIPTION FOR VM MODE  
   Procs  
       r: The number of processes waiting for run time.(运行进程数)  
       b: The number of processes in uninterruptible sleep.(阻塞进程数)  
  
   Memory  
       swpd: the amount of virtual memory used.  
       free: the amount of idle memory.  
       buff: the amount of memory used as buffers.(用于写操作的虚拟内存)  
       cache: the amount of memory used as cache.  (用于读操作的虚拟内存)  
       inact: the amount of inactive memory. (-a option)  
       active: the amount of active memory. (-a option)  
  
   Swap  
       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)(用户占用CPU)  
       sy: Time spent running kernel code. (system time)(系统占用CPU)  
       id: Time spent idle. Prior to Linux 2.5.41, this includes IO-wait time.(空闲CPU)  
       wa: Time spent waiting for IO. Prior to Linux 2.5.41, included in idle. (等待I/O所花的时间)  
       st: Time stolen from a virtual machine. Prior to Linux 2.6.11, unknown.  
  
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 DISK PARTITION MODE  
       reads: Total number of reads issued to this partition  
       read sectors: Total read sectors for partition  
       writes : Total number of writes issued to this partition  
       requested writes: Total number of write requests made for partition  
  
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  
  
NOTES  
       vmstat does not require special permissions.  
  
       These reports are intended to help identify system bottlenecks.  Linux vmstat does not count itself as a running process.  
  
       All linux blocks are currently 1024 bytes. Old kernels may report blocks as 512 bytes, 2048 bytes, or 4096 bytes.  
  
       Since procps 3.1.9, vmstat lets you choose units (k, K, m, M) default is K (1024 bytes) in the default mode  
  
       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>.  
       Fabian Frederick <ffrederick@users.sourceforge.net> (diskstat, slab, partitions...)  
  
Throatwobbler Ginkgo Labs  </span>                                           

相关内容

    暂无相关文章