Chinaunix

标题: linux TOP command [打印本页]

作者: prefect    时间: 2007-09-24 14:48
标题: linux TOP command

23:01:37  up 70 days, 14:21,  4 users,  load average: 1.97, 1.36, 1.13
254 processes: 251 sleeping, 2 running, 1 zombie, 0 stopped
CPU states:  cpu    user    nice  system    irq  softirq  iowait    idle
           total  103.2%    0.0%   12.0%   2.4%     0.0%    0.0%  679.2%
           cpu00   33.0%    0.0%    9.6%   2.7%     0.0%    0.1%   54.3%
           cpu01    3.9%    0.0%    0.0%   0.0%     0.0%    0.0%   96.0%
           cpu02   19.8%    0.0%    0.3%   0.1%     0.1%    0.0%   79.3%
           cpu03    0.3%    0.0%    0.1%   0.0%     0.1%    0.1%   99.0%
           cpu04   26.3%    0.0%    0.0%   0.0%     0.0%    0.3%   73.2%
           cpu05    3.3%    0.0%    0.1%   0.0%     0.0%    0.0%   96.4%
           cpu06    0.1%    0.0%    1.3%   0.0%     0.0%    0.0%   98.4%
           cpu07   16.5%    0.0%    0.3%   0.0%     0.1%    0.0%   82.8%
Mem:  7973712k av, 7914408k used,   59304k free,       0k shrd,  225908k buff
                   5690372k actv, 1436052k in_d,  169728k in_c
Swap: 4192880k av,   21908k used, 4170972k free                 7250896k cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND
17365 informix  25   0 1370M 1.3G 1369M R    113.0 17.5  1995h   7 oninit
10464 tiptop    16   0  1432 1432   920 R     1.5  0.0   0:01   6 top
10390 tiptop    15   0  2316 2316  1644 S     1.1  0.0   0:01   3 fglgo
    1 root      15   0   512  504   452 S     0.0  0.0   6:13   6 init
    2 root      RT   0     0    0     0 SW    0.0  0.0   0:00   0 migration/0
    3 root      RT   0     0    0     0 SW    0.0  0.0   0:00   1 migration/1
    4 root      RT   0     0    0     0 SW    0.0  0.0   0:00   2 migration/2

misacz:/u/asus/nec/4gl> ps -ef | grep 17365
informix 17365     1 27 Jun02 ?        14-21:16:51 oninit -v
root     17366 17365  0 Jun02 ?        03:45:41 oninit -v
tiptop   10498  7570  0 23:01 pts/28   00:00:00 grep 17365

load average:表示該server的平均loading,三個數分別是當前,5分鐘前,15分鐘前的狀態
cpu states:表示cpu的使用狀態,
其中 user是user進程占cpu的比率
                        system是系統進程占cpu的比率
                        iowait是等待io的比率
                        idle是空閒率
PRI是該進程執行的優先次序
%cpu是該進程所佔的cpu的比率
注意PRI為25,且%cpu接近100%的進程,可能有問題




本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/9586/showart_388958.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2