免费注册 查看新帖 |

Chinaunix

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

AIX下ps 和topas显示的CPU使用情况到底哪个准确? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-04 17:10 |只看该作者 |倒序浏览
ps aux 中显示 %cpu 为6.2\r\nUSER         PID %CPU %MEM   SZ  RSS    TTY STAT    STIME  TIME COMMAND\r\noracle    651404  6.2  3.0 420416 462524      - A    14:57:12 120:33 oraclequery (LO\r\n\r\n\r\n%CPU\r\n            (u and v flags) The percentage of time the process has used the CPU since the process started. The value is computed\r\n            by dividing the time the process uses the CPU by the elapsed time of the process. In a multi-processor environment,\r\n            the value is further divided by the number of available CPUs because several threads in the same process can run on\r\n            different CPUs at the same time. (Because the time base over which this data is computed varies, the sum of all %CPU\r\n            fields can exceed 100%.)\r\n            \r\n topas中显示同一个进程为12.5                       \r\n                                                            PgspOut       0\r\nName            PID  CPU%  PgSp Owner           PageIn        0  PAGING SPACE\r\noracle       651404  12.5 324.0 oracle          PageOut       6  Size,MB    6912\r\n\r\n\r\n % CPU Utilization\r\n                   The average processor use of the process over the monitoring interval. The first time a process is shown, this\r\n                   value is the average processor use over the lifetime of the process.

论坛徽章:
0
2 [报告]
发表于 2009-05-04 17:13 |只看该作者
先说明一下,操作系统为aix6.1 此服务器有8个CPU,个人估计TOPAS显示的这个进程由于大量查询导致整个CPU被占用,但为什么ps 显示只有6.2,有时甚至只有0.3,而topas显示一直为12.5

论坛徽章:
0
3 [报告]
发表于 2009-05-04 17:15 |只看该作者
由于本人对AIX不是很熟悉,编写脚本时在HP-UX及linux下都没有太大问题,惟独到AIX下出现问题

论坛徽章:
0
4 [报告]
发表于 2009-05-04 17:16 |只看该作者
版主呢?版主能给个解释吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP