Programming/Linux Tip
ps command PC meaning, ps 명령어 의미
decdream
2016. 12. 14. 10:59
root@graceqltevzw:/ # ps
USER PID PPID VSIZE RSS WCHAN PC NAME
root 1 0 5920 912 SyS_epoll_ 00004cfa20 S /init
root 2 0 0 0 kthreadd 0000000000 S kthreadd
root 3 2 0 0 smpboot_th 0000000000 S ksoftirqd/0
root 4 2 0 0 worker_thr 0000000000 S kworker/0:0
...
root 645 1 4344 408 SyS_epoll_ 000044a668 S /sbin/healthd
root 647 1 6536 2080 SyS_epoll_ 7f952d2594 S /system/bin/lmkd
system 648 1 7508 2548 binder_ioc 7f8ce67684 D /system/bin/servicemanager
system 649 1 336852 37336 SyS_epoll_ 7f86e80594 S /system/bin/surfaceflinger
system 651 1 13520 2044 poll_sched 7f9480a6cc S /system/bin/rmt_storage
S 나 D 의 의미
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. |