본문 바로가기
Binary Life/펭귄

'$> ps aux' column.

by 로제마인 2008. 11. 16.
[항목별 내용]
  • USER : 프로세스 소유자의 로그인 이름
  • PID : 프로세스의 프로세스 ID
  • RSS : 프로세스의 실제 메모리(상주 집합) 크기(1KB 단위)
  • SZ : 프로세스 코어 이미지의 1KB 단위 크기
  • TTY : 프로세스를 위한 제어 워크스테이션
  • STAT : 프로세스 상태를 포함하고 있습니다.
  • (0 : 존재하지 않음 , A : 사용 중 , I : 중간 , Z : 취소 , T : 중지 , K : 사용가능한 커널프로세스)
  • STIME : 프로세스의 시작 시간
  • TIME : 프로세스에 대한 총 수행 시간
  • COMMAND : 명령 이름
  • %CPU : 프로세스 시작 이후에 프로세스가 CPU를 사용한 시간의 백분율. 값은 프로세스에서 CPU를 사용한 시간을 프로세스의 경과 시간으로 나누어 계산됩니다. 멀티프로세서 환경에서, 값은 동일한 프로세스의 여러 스레드가 동시에 서로 다른 CPU에서 수행한 이후로 사용가능한 CPU의 수로 나누어집니다. (이 데이타가 계산된 시간 기준은 다양하므로, 모든 %CPU 필드의 합계가 100%를 초과할 수 있습니다.)
  • %MEM : 이 프로세스에 의해 사용된 실제 메모리 비율. 종료되어 이제는 프로세스를 기다리지 않는 상위가 있는 프로세스는 <defunct>. 종료 시도가 방해된 프로세스는 <exiting>. ps 명령은 프로세스가 메모리나 교환 영역에 의해 작성되었을 때 주어진 파일 이름이나 인수의 판별을 시도합니다.
[실행결과]

%> ps aux

USER        PID   %CPU  %MEM   SZ  RSS  TTY  STAT  STIME          TIME  COMMAND
----------------------------------------------------------------------------------------------
root           774    34.0      0.0       12    12      -       A      11월26:14:6    13:00   wait
root           516    28.4      0.0       12    12      -       A      11월26:12:22    6:39   wait

.....

출처 : http://blog.naver.com/ez2jsh?Redirect=Log&logNo=70013121325

PROCESS STATE CODES
       Here are the different values that the s, stat and state output
       specifiers (header "STAT" or "S") will display to describe the state of
       a process.
       D    Uninterruptible sleep (usually IO)
       R    Running or runnable (on run queue)
       S    Interruptible sleep (waiting for an event to complete)
       T    Stopped, either by a job control signal or because it is being
            traced.
       W    paging (not valid since the 2.6.xx kernel)
       X    dead (should never be seen)
       Z    Defunct ("zombie") process, terminated but not reaped by its
            parent.

       For BSD formats and when the stat keyword is used, additional
       characters may be displayed:
       <    high-priority (not nice to other users)
       N    low-priority (nice to other users)
       L    has pages locked into memory (for real-time and custom IO)
       s    is a session leader
       l    is multi-threaded (using CLONE_THREAD, like NPTL pthreads do)
       +    is in the foreground process group

출처 : man ps