пятница, 8 мая 2009 г.

Linux cpu usage and memory

# mpstat 1 10

# ps -eo pcpu,pid,user,args | sort -k 1 -r | head -10


#ps -eo pcpu,pid,user,args,pmem | sort -k 1 -r | head -10


for i in `seq 1 10`; do ps -eo pcpu,pid,user,args,pmem | sort -k 1 -r | head -10; sleep 1; clear; done