Linux/Linux_usage
[tool] top
반응형
top
: to monitor system's overall state (like Windows's work monitor)
top - 01:23:14 up 86 days, 20:28 7 users, load average: 1.23, 0.97, 0.61 <-- load average (1min, 5min, 15min)
Tasks : 286 total, 2 running, 283 sleeping, 1 stopped, 0 zombie
Cpu(s): 1.8%us, -.7%sy, 0.0%ni, 97.4%id, 0.0%wa, 0.0%hi, 0.9%si, 0.0%st
%us <- users' CPU usage
%sy <- system's CPU usage
%ni <- CPU usage for nice policy
%id <- idle time
%wa <- CPU usage for the state of waiting I/O
%hi <- IRQ CPU usage
%si <- soft IRQs CPU usage
%st <- steal value (other instances execution time)
Mem: 65931792k total, 65544504k used, 387288k free, 10685288k buffers
Swap: 67055612k total, 132152k used, 66923460k free, 45564864k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
60 root RT 0 0 0 0 S 0 0.0 0:19.06 watchdog/13
515 hyoukjea 20 0 17464 1468 964 R 0 0.0 0:02.63 top
22828 hyoukjea 20 0 135m 2480 1128 S 0 0.0 0:00.63 sshd
1 root 20 0 24424 1900 1020 S 0 0.0 0:05.02 init
2 root 20 0 0 0 0 S 0 0.0 0:00.40 kthreadd
3 root 20 0 0 0 0 S 0 0.0 14:21.95 ksoftirqd/0
...
PR : process priority
NI : process nice value
VIRT: process virtual memory usage
RES : process physical memory usage
SHR : process shared memory usage
S: process state
D <- sleep but cannot stop
R <- running
S <- suspend
T <- traced or stopped
Z <- zombie
%CPU: process CPU usage
%MEM: process mem usage
PPID: process pararent PID
RUSER: process actual owner
UID : process EUID (Effective user ID)
COMMAND: process execution command
usage
top -c
with process's whole path
25308 jongcheo 20 0 141m 134m 7036 R 100 0.2 0:03.82 /home/jongcheol.boo/git_KLP/android/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7
25318 jongcheo 20 0 122m 116m 7004 R 100 0.2 0:03.81 /home/jongcheol.boo/git_KLP/android/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7
25354 jongcheo 20 0 131m 124m 6996 R 100 0.2 0:03.23 /home/jongcheol.boo/git_KLP/android/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7
25403 jongcheo 20 0 118m 110m 6944 R 72 0.2 0:02.16 /home/jongcheol.boo/git_KLP/android/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7
25420 jongcheo 20 0 103m 95m 6888 R 62 0.1 0:01.87 /home/jongcheol.boo/git_KLP/android/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7
25444 jongcheo 20 0 63636 52m 3632 R 18 0.1 0:00.55 /home/jongcheol.boo/git_KLP/android/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7
25462 jongcheo 20 0 27656 16m 3564 R 4 0.0 0:00.12 /home/jongcheol.boo/git_KLP/android/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7
25477 jongcheo 20 0 24600 13m 3404 R 2 0.0 0:00.07 /home/jongcheol.boo/git_KLP/android/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7
147 root 20 0 0 0 0 S 1 0.0 34:42.79 [kswapd0]
top -c -d 2
refresh eversy single 2 second
top
and "shift + P"
-> listing processes in order of CPU usage
and "shift + T"
-> listing processes in order of elapse time
top
'u'
-> filter processes with the user name
top
'k'
-> kill the specific process
반응형
'Linux > Linux_usage' 카테고리의 다른 글
[tool] bash - 자동 process kill (0) | 2015.04.22 |
---|---|
VirtualBox에서 Ubuntu samba 설정 (우분투 삼바 설정) (0) | 2015.03.24 |
VirtualBox Ubuntu 메뉴가 안보일 때 (no menu) (0) | 2015.03.23 |
VMware - fedora 12 - samba 설정 (0) | 2015.03.10 |
댓글