Show the turn memory/cpu usage using top batch mode. Only single line, not all the processes.
# ps auxwww | grep kso
root 4 0.0 0.0 0 0 ? S< 11:36 0:00 [ksoftirqd/0]
root 3843 0.0 0.3 1672 508 pts/2 R+ 13:17 0:00 grep kso
# top -b -n1 -p4
top - 13:18:03 up 1:41, 5 users, load average: 0.00, 0.00, 0.00
Tasks: 1 total, 0 running, 1 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.2%us, 0.1%sy, 0.0%ni, 99.6%id, 0.1%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 131284k total, 67716k used, 63568k free, 7020k buffers
Swap: 0k total, 0k used, 0k free, 41564k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
沒有留言:
張貼留言