linux内存buff参数解释,求教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      0 1996612  78784 907068    0    0     0     4    3   10  0  0 100  0  0

请高手解释一下,si,so,bi,bo,in,cs,us,sy,id,wa,st的含义。

另外buff,cache有什么区别呢?

|

Procs:

r:处于runnable 队列中的进程数。

b:处于blocked 队列中的不可中断的进程数。

Memory:

Swpd:虚拟内存使用量,单位:KB

Free:空闲的内存,单位KB

Buff:被用来做为文件系统数据结构缓存的内存数,单位:KB

cache:被用来做块设备缓冲的内存,单位:KB

Swap:

Si:从磁盘交换到内存的交换页数量,单位:KB/秒

So:从内存交换到磁盘的交换页数量,单位:KB/秒

IO:

Bi:发送到块设备的块数,单位:块/秒

Bo:从块设备接收到的块数,单位:块/秒

System:

In:每秒的中断数,包括时钟中断

Cs:每秒的上下文切换次数

CPU:(按CPU  的总使用百分比来显示)

Us:处于用户模式的时间百分比

Sy:处于内核模式的时间百分比

Id:空闲时间百分比,在.5.41 版本以前,等待IO 的时间也计算在内

wa:等待IO 的时间百分比

st:还未理解到

|

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)

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, included in idle.

st: Time stolen from a virtual machine. Prior to Linux 2.6.11, unknown.

建议多使用man,很好用的帮助文档

一般说cache是指cpu的cache,使用的是比内存还快的静态RAM,其速度接近cpu,buff是程序中预设的缓存区间,一般在内存中

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值