热点推荐
ZOL首页 > CPU频道 > CPU评测 > 技术讲堂 >

利用top命令查看最耗CPU资源的进程

大汇总 8招令你成为CPU性能掌控高手

psl.net 【转载】 2006年09月26日 10:24 评论
在本页阅读全文(共10页)
  我们可以利用top命令来查看最耗CPU资源的进程。top命令还会根据进程占用CPU资源的多少而动态改变。

  它的语法为:


top [-s time] [-d count] [-q] [-u] [-h] [-n number]

  其中各选项的含义为:

-s time: 屏幕刷新的时间间隔time,缺省为5秒;
-d count: 屏幕刷新count次后,top命令自己也退出;
-q: This option runs the top program at the same priority as if it is executed via a nice -20 command so that it will execute faster (see nice(1)). This can be very useful in discovering any system problem when the system is very sluggish. This option is accessibly only to users who have appropriate privileges.
-u: User ID (uid) numbers are displayed instead of usernames. This improves execution speed by eliminating the additional time required to map uid numbers to user names.
-h: Hides the individual CPU state information for systems having multiple processors. Only the average CPU status will be displayed.
-n number: Show only number processes per screen. Note that this option is ignored if number is greater than the maximum number of processes that can be displayed per screen.
在top命令运行时,我们可用以下几个快捷键来翻屏:

j: 向前翻;
k: 向后翻;
t: 回到第一页;

  对结果的分析:

  通过top命令,我们可以快速了解到目前系统的CPU资源使用情况,尤其是占用CPU资源最多的进程是我们必须关注的对象。

  我们通过RES(the current size of the process resident in memory)列可以知道每个进程占用内存的数量。

  我们通过NICE列可以知道系统是否使用NICE值来调节该进程的工作负载平衡。

  更多精彩文章推荐:

明星荟萃 十一节前市售优质散热器盘点

双核4600+跌破2000元 DDR内存大降价

比奔腾D更值 双核速龙3600+深度测试

十一出游必备 六款随身存储产品推荐

命令与征服再现 Nod之庙MOD机箱抢先看

双核中流砥柱 速龙X2 3600+免费亲身体验

上一页 1 ...6 7 8 9 10 下一页
频道热词:AMD  散热器  intel  
视觉焦点
CPU评测热点
排行 文章标题
TOP10周热门CPU排行榜
  • 热门
  • 新品
查看完整榜单>>