机能分析
vmstat
虚拟内存统计
用法
- Usage:
- vmstat [options] [delay [count]]
- Options:
- -a, --active active/inactive memory
- -f, --forks number of forks since boot
- -m, --slabs slabinfo
- -n, --one-header do not redisplay header
- -s, --stats event counter statistics
- -d, --disk disk statistics
- -D, --disk-sum summarize disk statistics
- -p, --partition <dev> partition specific statistics
- -S, --unit <char> define display unit
- -w, --wide wide output
- -t, --timestamp show timestamp
- -h, --help display this help and exit
- -V, --version output version information and exit
示例
- [root@localhost ~]# vmstat
- 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 71256 92720 0 565120 0 0 1 115 22 36 1 0 99 0 0
个中
- r : 运行和等待 CPU 时光片的过程数。若该值大年夜于体系 CPU 个数,则解释 CPU 不足
- b : 表示等待资本的过程数
- swpd : 切换到内存交换区的内存大年夜小(单位 KB)
- free: 余暇的物理内存的大年夜小,我的机械内存总共2G,残剩92M。
- buff: Linux/Unix体系是用来存储,目次琅绫擎有什么内容,权限等的缓存
- cache:直接用来记忆我们打开的文件,给文件做缓冲,把余暇的物理内存的一部分拿来做文件和目次的缓存,是为了进步 法度榜样履行的机能,当法度榜样应用内存时,buffer/cached会很快地被应用
- si:每秒大年夜磁盘读入虚拟内存的大年夜小,如不雅这个值大年夜于0,表示物理内存不敷用或者内存泄漏了,要查找耗内存过程解决掉落。
- so:每秒虚拟内存写入磁盘的大年夜小,如不雅这个值大年夜于0,同上。
- bi:块设备每秒接收的块数量(读磁盘)(kb/s)
- bo:块设备每秒发送的块数量(写磁盘)(kb/s)
- in:每秒CPU的中断次数,包含时光中断
- cs:每秒高低文切换次数。
推荐阅读
每年的三月莅临月,都是雇用岑岭,除了大年夜量的应届卒业生涌入社会之外,还有一些工作了一两年尚未找到稳定归属感的人,也会开端送达简历(没错,根本都是在拿了年关奖之后)。作为前端技>>>详细阅读
本文标题:Linux常用性能分析命令
地址:http://www.17bianji.com/lsqh/35783.html
1/2 1