LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 912|回复: 1

vmstat命令查看到的几个数据,大家帮我分析一下吧

[复制链接]
发表于 2007-4-27 15:21:40 | 显示全部楼层 |阅读模式
procs          -----------memory----------            ---swap--    -----io----     --system--       ----cpu----
r b              swpd   free   buff   cache          si      so    bi    bo      in       cs      us  sy   id     wa
5 0        0 237124 44724 728516      0       0  124   625    558    339    14  6    75     5
2 0        0 228508 44756 736804      0       0    8     382    1586  3585  74  17   8      0
1 0        0 183004 44840 781180      0       0  88     88      1522  1943  54  10  34     1
5 0        0 233860 44872 729928      0       0   22   14704  2130  6171  62   27  7      4
6 0        0 226460 44896 735884      0       0  18       4      1478  3268  65  17  17     1
1 1        0 185244 45052 775768      0       0 980   12516  2192  2487  59   16   0     25
7 0        0 217172 45188 740792      0       0 4274  262    1527  2997   44   21  8      28
0 2        0 217300 45228 742052      0       0 682      4      1621  3939  58  19   3      20
1 2        0 212452 45280 745120      0       0 1448 14764 2034  2155   13    7    24   55
3 1        0 209124 45280 747460      0       0 936      58    1676  3353  52  10  10     28
1 1        0 205668 45292 750308      0       0 1216    72    1641  2682  47  19   5      28


查看的机器是用来做网站的服务器的(测试用)
cs,in的值是不是太高了?bo是什么,为什么变化那么大,从4变到一万多了.
什么原因会导致cs,in的值变高.
发表于 2007-4-27 23:46:07 | 显示全部楼层
info vmstat 片段:

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)
       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.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表