linux 用 ps 找出誰占用 CPU 最多的程序
作者:cross 日期:2011-10-04 17:32
指令
參數說明ps -eo pid,ppid,user,group,pcpu,pmem,comm,stat,state,time,lstart,ni,tty,vsize,sz | sort -r -k 5
結果顯示comm = command = args = cmd
pcpu = cpu utilization of the process in "##.#" format
time = cumulative CPU time
pmem = ratio of the process’s resident set size to the physical memory on the machine, expressed as a percentage
lstart = time the command started
ni = nice value. This ranges from 19 (nicest) to -20 (not nice to others)
tty = tt = tname = controlling tty (terminal).
vsize = vsz = virtual memory size of the process in KiB
sz = size in physical pages of the core image of the process
怪程序加上找不到的檔案
作者:cross 日期:2010-01-14 22:00
- 1




