有熟悉这方面的兄弟么?一起讨论讨论啊!这可是解决日常进程监控的好办法呢!作者: chinadns 时间: 2007-11-27 23:03
topas 中的cpu
% CPU Utilization
The average processor use of the process over the monitoring interval. The first time a process is shown, this value is the average processor use over the lifetime of the process.
ps aux中的cpu
The ps command, run periodically, displays the CPU time under the TIME column and the ratio of CPU time to real time under the %CPU column. Look for the processes that dominate usage. The au and v options give similar information on user processes. The options aux and vg display both user and system processes.作者: kennyblues 时间: 2007-11-28 10:35
提示: 作者被禁止或删除 内容自动屏蔽作者: kennyblues 时间: 2007-12-05 12:11
提示: 作者被禁止或删除 内容自动屏蔽作者: chinadns 时间: 2007-12-05 20:05
加精作者: yanbing 时间: 2007-12-05 20:41
支持! :)作者: kennyblues 时间: 2007-12-08 10:28
提示: 作者被禁止或删除 内容自动屏蔽作者: jtw 时间: 2007-12-10 15:03
我认为topas才是实时反映进程占用cpu使用率,而ps不是,所以你这个脚本好象不能实现你的需求。