免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: wpbh
打印 上一主题 下一主题

[SCO UNIX] 求教unix中vmstat中的参数含义 [复制链接]

blzfg 该用户已被删除
11 [报告]
发表于 2005-07-30 19:38 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
12 [报告]
发表于 2005-08-01 11:00 |只看该作者

求教unix中vmstat中的参数含义

再顶一下,怎么没人给解释呀?

论坛徽章:
0
13 [报告]
发表于 2005-08-01 17:23 |只看该作者

求教unix中vmstat中的参数含义

又下去了,唉!

论坛徽章:
0
14 [报告]
发表于 2005-08-02 16:46 |只看该作者

求教unix中vmstat中的参数含义

期待高手的出现。......

论坛徽章:
0
15 [报告]
发表于 2005-08-03 18:33 |只看该作者

求教unix中vmstat中的参数含义

vmstat 可用來紀錄 processes, memory, paging, block IO, traps, 與 cpu activity。

例如

$ vmstat 1 # 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 549368  13316 102388  91992   12    6     9     8    2    12 72  3 25  0
2  0 549368  13316 102388  91992    0    0     0     0  156  1516 98  2  0  0
2  0 549368  13312 102388  91992    0    0     0     0  125   534 99  1  0  0

....

第一列與第二列所代表是執行程式的資訊,接下來的是記憶體、swap、io、systm 與 cpu。
   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, shown as zero.

论坛徽章:
0
16 [报告]
发表于 2009-09-04 17:12 |只看该作者

回复 #1 wpbh 的帖子

# vmstat

PROCS     PAGING                                          SYSTEM  CPU
r  b  w  frs dmd sw cch fil pft frp pos pif pis rso rsi  sy  cs  us su id

2 119  0 8192000 307849   0 125843 4188 29708   0   0  0   0   0   0 2776933 15



procs   The number of processes which are:

          r       In the run queue.

          b       Blocked waiting for resources.

          w       Swapped out.

  These values always reflect the current situation, even if the totals since
  boot are being displayed.

  paging  Reports on the performance of the demand paging system. Unless the
          totals since boot are being displayed, this information is averaged
          over the preceding interval seconds:

          frs     Free swap space.

          dmd     Demand zero and demand fill pages.

          sw      Pages on swap.

          cch     Pages in cache.
  fil     Pages on file.

          pft     Protection faults.

          frp     Pages freed.

          pos     Processes swapped out successfully.

          pif     Processes swapped in unsuccessfully.

          pis     Processes swapped in successfully.

          rso     Regions swapped out.

          rsi     Regions swapped in.

  system  Reports on the general system activity. Unless the totals since boot
          are being shown, these figures are averaged over the last interval
          seconds:

          sy      Number of system calls.

          cs      Number of context switches.

  cpu     Percentage of CPU cycles spent in various operating modes:

          us      User.

          su      System.

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

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP