질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

top에 대해서 질문좀 드리렬고..합니다.

작성자 정보

  • 허태훈 작성
  • 작성일

컨텐츠 정보

본문

top 의 버전 차이입니다.3.x 버전에서는 total 로 display 해 주고 있는 것 같습니다.

CPU usage
          The tasks share of the elapsed CPU time since the last screen update, expressed as a percentage of total CPU time.

그리고 2.x 버전은 total 과 함께 각각의 cpu 상태를 보여주고 있습니다.

CPU states
                      Shows the percentage of CPU time in user mode, system
                      mode, niced tasks, iowait and idle.  (Niced tasks are
                      only those whose nice value is positive.)  Time spent
                      in  niced  tasks  will  also be counted in system and
                      user time, so the total will be more than 100%.   The
                      processes  and states display may be toggled by the t
                      interactive command.


아래는 각 버전에 따른 Display 입니다.

 top: procps version 3.2.3

top - 14:22:18 up 14 days,  7:01,  1 user,  load average: 0.00, 0.00, 0.00
Tasks:  68 total,   1 running,  67 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.2% us,  0.2% sy,  0.0% ni, 99.0% id,  0.7% wa,  0.0% hi,  0.0% si
Mem:   2075000k total,  2047412k used,    27588k free,   246980k buffers
Swap:  1024072k total,        0k used,  1024072k free,  1525700k cached

top -v procps version 2.0.17

66 processes: 65 sleeping, 1 running, 0 zombie, 0 stopped
CPU states:  cpu    user    nice  system    irq  softirq  iowait    idle
           total    0.2%    0.0%    0.1%   0.0%     0.0%    0.7%   98.8%
           cpu00    0.0%    0.0%    0.0%   0.0%     0.0%    0.7%   99.2%
           cpu01    0.5%    0.0%    0.0%   0.0%     0.0%    0.7%   98.6%
Mem:  2055484k av,  597216k used, 1458268k free,       0k shrd,   56496k buff
       527600k active,              33348k inactive
Swap: 1048536k av,       0k used, 1048536k free                   85736k cached

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,133 명
  • 현재 강좌수 :  36,170 개
  • 현재 접속자 :  507 명