直接輸入ps後可以看到如下資訊:
- # ps
- ps
- USER PID PPID VSIZE RSS WCHAN PC NAME
- root 1 0 276 188 c0099f1c 000086e8 S /init
- root 2 0 0 0 c004df64 00000000 S kthreadd
- root 3 2 0 0 c003fa28 00000000 S ksoftirqd/0
- root 4 2 0 0 c004abc0 00000000 S events/0
- root 5 2 0 0 c004abc0 00000000 S khelper
- root 6 2 0 0 c004abc0 00000000 S suspend
- root 7 2 0 0 c004abc0 00000000 S kblockd/0
- root 8 2 0 0 c004abc0 00000000 S cqueue
- root 9 2 0 0 c01780d0 00000000 S kseriod
- root 10 2 0 0 c004abc0 00000000 S kmmcd
- root 11 2 0 0 c006efa8 00000000 S pdflush
- root 12 2 0 0 c006efa8 00000000 S pdflush
- root 13 2 0 0 c0073480 00000000 S kswapd0
- root 14 2 0 0 c004abc0 00000000 S aio/0
- root 22 2 0 0 c0175900 00000000 S mtdblockdc
那麼這些項各代表着什麼意思呢?
- USER: 程序的目前使用者;
- PID : 毫無疑問, process ID的縮寫,也就程序号;
- PPID :process parent ID,父程序ID
- VSIZE : virtual size,程序虛拟位址空間大小;
- RSS : 程序正在使用的實體記憶體的大小;
- WCHAN :程序如果處于休眠狀态的話,在核心中的位址;
- PC : program counter,
- NAME: process name,程序的名稱