免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4089 | 回复: 4
打印 上一主题 下一主题

请教HP UX中vmstat的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-23 10:14 |只看该作者 |倒序浏览
$vmstat 2 10

procs           memory                   page                              faults       cpu
r     b     w   avm     free    re     at    pi    po   fr   de    sr     in     sy    cs    us sy id
2     0     0  2028057  2929631 1268   68     0    0     0    0     0   3226  54835 18909   6 24 70
2     0     0  2028057  2929584 1315   72     0    0     0    0     0   3904  81933 29287   8 24 68
2     0     0  2028057  2930070 1032   46     0    0     0    0     0   3881  81503 29382   8 21 71
5     0     0  2023561  2930070 1122   54     0    0     0    0     0   3879  81504 29181  10 24 66
5     0     0  2023561  2929369 1342   70     0    0     0    0     0   3937  83698 29744   9 21 70
5     0     0  2023561  2930070 1049   45     0    0     0    0     0   3859  81308 29142   7 23 70
5     0     0  2023561  2929584 1078   48     0    0     0    0     0   3918  82974 29766  10 24 66
5     0     0  2023561  2929369 1320   68     0    0     0    0     0   3938  84883 30216   9 24 67
10    0     0  2031021  2930043 1064   47     0    0     0    0     0   3923  83803 30025   7 23 70
10    0     0  2031021  2930035 1088   48     0    0     0    0     0   3914  83395 29878   8 26 65

请问free列的数值的单位是什么?1byte?kB?谢谢

我执行man vmstat后得到的其中一段
vmstat(1)                                                         vmstat(1)

           -s        Print the total number of several kinds of paging-
                     related events from the kernel sum structure that have
                     occurred since boot-up or since vmstat was last
                     executed with the -z option.

           -z        Clear all accumulators in the kernel sum structure.
                     This option is restricted to the super user.

      If none of these options is given, vmstat displays a one-line summary
      of the virtual memory activity since boot-up or since the -z option
      was last executed.

    Column Descriptions
      The column headings and the meaning of each column are:

           procs       Information about numbers of processes in various
                       states.

                            r      In run queue

                            b      Blocked for resources (I/O, paging, etc.)

                            w      Runnable or short sleeper (< 20 secs) but
                                   swapped

           memory      Information about the usage of virtual and real
                       memory.  Virtual pages are considered active if they
                       belong to processes that are running or have run in
                       the last 20 seconds.

                            avm     Active virtual pages

                            free    Size of the free list

是不是还要查freelist的单位?谢谢!

[ 本帖最后由 niuji 于 2006-8-23 10:38 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-08-23 10:44 |只看该作者
vmstat各项:
procs:
r-->在运行队列中等待的进程数
b-->在等待io的进程数
w-->可以进入运行队列但被替换的进程
memoy
swap-->现时可用的交换内存(k表示)
free-->空闲的内存(k表示)
pages
re-->回收的页面
mf-->非严重错误的页面
pi-->进入页面数(k表示)
po-->出页面数(k表示)
fr-->空余的页面数(k表示)
de-->提前读入的页面中的未命中数
sr-->通过时钟算法扫描的页面
disk 显示每秒的磁盘操作。 s表示scsi盘,0表示盘号
fault 显示每秒的中断数
in-->设备中断
sy-->系统中断
cy-->cpu交换
cpu 表示cpu的使用状态
cs-->用户进程使用的时间
sy-->系统进程使用的时间
id-->cpu空闲的时间
如果 r经常大于 4 ,且id经常少于40,表示cpu的负荷很重。
如果pi,po 长期不等于0,表示内存不足。
如果disk 经常不等于0, 且在 b中的队列 大于3, 表示 io性能不好。



__________________________________

penguinstorm
侠客

论坛徽章:
0
3 [报告]
发表于 2006-08-23 10:51 |只看该作者
原帖由 niuji 于 2006-8-23 10:14 发表
$vmstat 2 10

procs           memory                   page                              faults       cpu
r     b     w   avm     free    re     at    pi    po   fr   de    sr     in     sy    ...

要乘以页的大小

论坛徽章:
0
4 [报告]
发表于 2006-08-23 10:56 |只看该作者
free需要 乘以内存分页大小,一般是4K
2929631×4K=12G左右。楼主的机器不错啊

论坛徽章:
0
5 [报告]
发表于 2006-08-23 11:00 |只看该作者
原帖由 levine 于 2006-8-23 10:56 发表
free需要 乘以内存分页大小,一般是4K
2929631×4K=12G左右。楼主的机器不错啊

AVM也是乘以页的大小的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP