vmstat  n m  :每隔n秒钟刷新,抓取m次数后退出。

[oracle@sor-sys properties]$ vmstat 2 3
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 0  0     96 655968 278912 2117884    0    0     0    10    1    1 18  2 80  0  0
 1  0     96 655968 278912 2117884    0    0     0     0 1011  694  0  0 100  0  0
 0  0     96 655968 278912 2117884    0    0     0    34 1013  338  0  0 100  0  0

FIELD DESCRIPTION FOR VM MODE

   Procs
        r : The number of processes waiting for run time.          处于 运行队列中的内核线程数目(进程数)。
        b : The number of processes in uninterruptible sleep.   置于等待队列(等待资源、等待输入/输出)的内核线程数目。 处于block队列中不可中断的进程数

 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).         从磁盘到内存的交换页数目 (单位/S) 
       so: Amount of memory swapped to disk (/s).                 从交换内存到磁盘的交换页数目(单位/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.              CPU空闲时间        空闲时间百分比
       wa: Time spent waiting for IO. Prior to Linux 2.5.41, included in idle.            CPU 空闲时间,在此期间系统有未完成的磁盘/NFS I/O 请求
       st: Time stolen from a virtual machine. Prior to Linux 2.6.11, unknown.         来自于虚拟机偷取的CPU所占的百分比   (这个不会翻译...)

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

----------------------------------------------------------------------------------------------------------

NOTICE:

  procs r: 运行的进程比较多,系统很繁忙

  bi/bo: 磁盘写的数据量稍大,如果是大文件的写,10M以内基本不用担心,如果是小文件写2M以内基本正常

  cpu us: 持续大于50%,服务高峰期可以接受, 如果长期大于50 ,可以考虑优化

cpu sy: 现实内核进程所占的百分比,这里us + sy的参考值为80%,如果us+sy 大于 80%说明可能存在CPU不足。

  cpu wa: 列显示了IO等待所占用的CPU时间的百分比。这里wa的参考值为30%,如果wa超过30%,说明IO等待严重,这可能是磁盘大量随机访问造成的, 也可能磁盘或者磁盘访问控制器的带宽瓶颈造成的(主要是块操作)。

cpu id:  CPU 空闲时所占百分比  平常持续小于50,服务高峰期可以接受。

vmstat 命令参数详解相关推荐

  1. linux下top命令参数详解

    linux下top命令参数详解 top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,类似于Windows的任务管理器.下面详细介绍它的使用方法. 内存信息.内容如下: ...

  2. oracle imp 1403,Oracle中用exp/imp命令参数详解【转】

    Oracle中用exp/imp命令参数详解 [用 exp 数 据 导 出]: 1  将数据库TEST完全导出,用户名system 密码manager 导出到D:daochu.dmp中 expsyste ...

  3. shell编程系列23--shell操作数据库实战之mysql命令参数详解

    shell编程系列23--shell操作数据库实战之mysql命令参数详解mysql命令参数详解-u 用户名-p 用户密码-h 服务器ip地址-D 连接的数据库-N 不输出列信息-B 使用tab键代替 ...

  4. linux :Tar 命令参数详解

    linux Tar 命令参数详解 tar命令 1. 作用 tar命令是Unix/Linux系统中备份文件的可靠方法,几乎可以工作于任何环境中,它的使用权限是所有用户. 2. 格式 tar [主选项+辅 ...

  5. java ext.dirs_关于-Djava.ext.dirs使用及JAVA 命令参数详解System.setProperty

    大家在linux环境下使用命令行执行java程序时,经常要使用到大量外部的jar包或class文件,一般我们有哪些方式可以用呢? -classpath,命令格式:# java -classpath , ...

  6. Windows 运行chkdsk磁盘修复工具命令参数详解

    Windows 运行chkdsk磁盘修复工具命令参数详解 chkdsk是Windows系统自带的磁盘修复工具,通常在电脑非正常关机之后再开机,系统就会自动调用chkdsk工具进行磁盘扫描和修复.同时, ...

  7. Mount 命令参数详解

    Mount 命令参数详解 mount是Linux下的一个命令,它可以将分区挂接到Linux的一个文件夹下,从而将分区和该文件夹关联起来,因此只要访问这个文件夹,就相当于访问该分区了. 目前mount已 ...

  8. 【WINDOWS / DOS 批处理】dir命令参数详解(二)

    dir命令参数详解(一) dir命令参数详解(二) 命令格式 DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] ...

  9. 【WINDOWS / DOS 批处理】if命令参数详解(一)

    if命令参数详解(一) if命令参数详解(二) 命令格式 在CMD.EXE禁用命令扩展模式下,IF 命令可以使用以下三种格式: [格式一]IF [NOT] ERRORLEVEL number comm ...

最新文章

  1. Linux下golang开发环境搭建
  2. No module named 'torch._C'
  3. 经典算法题每日演练——第三题 猴子吃桃
  4. 编写Controller方法
  5. form、document.all[].value的数字处理
  6. c语言数据结构将链串里所有值为x的字符删除_redis数据结构与对象到底长什么样?...
  7. EYQiPa,梦开始的地方
  8. STL —— STL六大组件
  9. golang CI: Use result of type assertion to simplify cases SCC-S1034
  10. mysql索引优化笔试题_索引优化策略面试题
  11. One River CEO:从长远来看比特币可能达到每枚50万美元
  12. 深入分析Android Binder 驱动
  13. python3.7安装tensorflow-gpu_tensorflow-gpu安装的常见问题及解决方案
  14. 找到Linux共享文件夹的实际位置
  15. 怎么通过服务器性能计算tpmc,如何对服务器性能计算的公式参考(tpmc-tpcc)...pdf
  16. GlusterFS企业级功能之EC纠删码
  17. android iphone 开发者选项,手机开发者选项中的妙用,让你的安卓系统流畅如iOS
  18. 词云生成库WordCloud详解(一):概述、ImageColorGenerator类
  19. 用maya API删除动画曲线多余的关键帧——掐头去尾删帧
  20. Arduino and the SPI bus

热门文章

  1. 【ccf2021训练赛】图书推荐算法赛道(SASRec序列推荐模型 | 序列推荐模型分类)
  2. 前端培训-javascript 的垃圾回收机制
  3. Vue3中reactive的理解
  4. Python基础——数据类型—集合
  5. Java中的各种锁和数据库中的锁
  6. 如何在C ++中解析文件
  7. 【如何开发小程序】自己如何开发小程序?
  8. 推挽输出、开漏输出和悬空输入等
  9. Java 实现连连看算法
  10. excel切片器_大部分人都不知道Excel切片器还能这么用,建议收藏