일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- pid
- cadre
- rm
- CPU
- goaccess
- rsync
- PERL
- 디스크
- DNS
- 솔라리스
- Linux
- iptables
- 칭찬교육
- http
- Disk
- PORT
- ext3
- apachetop
- Performance
- 쇼펜의상속자 #킨텍스메가쇼 #섬유향수탈취제
- Bash
- rm -rf
- Cache
- ext4
- Python
- Hack
- 좌절교육
- windows
- 리눅스
- Kernel
- Today
- Total
Ben's
top utility bug(idle 0%) 본문
[업그레이드 전] => idle 0% 임(분명 vmstat 에서는 90% 이상 idle 이 있음에도 불구)
[root@nhkotest src]# top
1:10pm up 364 days, 9:47, 5 users, load average: 0.24, 1.43, 2.93
166 processes: 164 sleeping, 1 running, 1 zombie, 0 stopped
CPU0 states: 62.0% user, 37.0% system, 0.0% nice, 0.0% idle
CPU1 states: 89.0% user, 10.0% system, 0.0% nice, 0.0% idle
Mem: 2052236K av, 1995728K used, 56508K free, 0K shrd, 147924K buff
Swap: 2048276K av, 76784K used, 1971492K free 1272364K cached
[root@nhkotest technote]# vmstat 2
procs memory swap io system cpu
r b w swpd free buff cache si so bi bo in cs us sy id
1 3 0 76712 204592 138396 1109812 0 1 1 0 1 2 1 1 1
0 0 0 76712 201228 138408 1111764 0 0 980 0 629 490 0 0 99
0 0 0 76712 193424 138512 1112092 0 0 154 1168 502 796 5 2 93
0 0 0 76712 190680 138536 1112188 0 0 50 146 261 395 3 1 96
0 2 2 76712 191644 138580 1108636 0 0 16 854 361 671 2 2 95
0 0 0 76712 193484 138740 1108856 0 0 106 1402 419 978 5 5 90
0 0 0 76712 194756 138740 1109396 0 0 262 0 297 153 1 1 98
0 0 0 76712 195688 138772 1109448 0 0 22 226 176 184 2 1 97
0 0 0 76712 192660 138824 1109460 0 0 4 324 163 162 5 1 94
0 0 0 76712 189096 138872 1110956 0 0 718 736 602 785 10 3 87
0 0 0 76712 189988 138928 1111028 0 0 30 436 226 449 23 10 67
0 0 0 76712 190692 138948 1111000 0 0 14 192 168 136 2 1 97
0 0 0 76712 189968 139016 1111132 0 0 80 378 190 157 1 2 97
0 0 0 76712 189092 139020 1112560 0 0 714 0 414 200 1 1 98
0 0 0 76712 189812 139048 1112656 0 0 50 274 168 70 0 1 99
[업그레이드 후] => idle 정상 표시됨
[root@nhkotest procps-3.0.5]# make install
install -D --owner 0 --group 0 --mode a=rx --strip uptime /usr/bin/uptime
install -D --owner 0 --group 0 --mode a=rx --strip tload /usr/bin/tload
install -D --owner 0 --group 0 --mode a=rx --strip free /usr/bin/free
install -D --owner 0 --group 0 --mode a=rx --strip w /usr/bin/w
install -D --owner 0 --group 0 --mode a=rx --strip top /usr/bin/top
install -D --owner 0 --group 0 --mode a=rx --strip vmstat /usr/bin/vmstat
install -D --owner 0 --group 0 --mode a=rx --strip watch /usr/bin/watch
install -D --owner 0 --group 0 --mode a=rx --strip skill /usr/bin/skill
install -D --owner 0 --group 0 --mode a=rx --strip snice /usr/bin/snice
install -D --owner 0 --group 0 --mode a=rx --strip kill /bin/kill
install -D --owner 0 --group 0 --mode a=rx --strip sysctl /sbin/sysctl
install -D --owner 0 --group 0 --mode a=rx --strip pgrep /usr/bin/pgrep
install -D --owner 0 --group 0 --mode a=rx --strip pkill /usr/bin/pkill
install -D --owner 0 --group 0 --mode a=r uptime.1 /usr/share/man/man1/uptime.1
install -D --owner 0 --group 0 --mode a=r tload.1 /usr/share/man/man1/tload.1
install -D --owner 0 --group 0 --mode a=r free.1 /usr/share/man/man1/free.1
install -D --owner 0 --group 0 --mode a=r w.1 /usr/share/man/man1/w.1
install -D --owner 0 --group 0 --mode a=r top.1 /usr/share/man/man1/top.1
install -D --owner 0 --group 0 --mode a=r watch.1 /usr/share/man/man1/watch.1
install -D --owner 0 --group 0 --mode a=r skill.1 /usr/share/man/man1/skill.1
install -D --owner 0 --group 0 --mode a=r kill.1 /usr/share/man/man1/kill.1
install -D --owner 0 --group 0 --mode a=r snice.1 /usr/share/man/man1/snice.1
install -D --owner 0 --group 0 --mode a=r pgrep.1 /usr/share/man/man1/pgrep.1
install -D --owner 0 --group 0 --mode a=r pkill.1 /usr/share/man/man1/pkill.1
install -D --owner 0 --group 0 --mode a=r sysctl.conf.5 /usr/share/man/man5/sysctl.conf.5
install -D --owner 0 --group 0 --mode a=r vmstat.8 /usr/share/man/man8/vmstat.8
install -D --owner 0 --group 0 --mode a=r sysctl.8 /usr/share/man/man8/sysctl.8
install -D --owner 0 --group 0 --mode a=rx --strip proc/libproc.so.3.0.5 /lib//libproc.so.3.0.5
cd /lib/ && ln -sf libproc.so.3.0.5 libproc.so
...
[root@nhkotest src]# top
top - 13:26:00 up 364 days, 10:03, 5 users, load average: 0.43, 0.48, 1.32
Tasks: 135 total, 1 running, 134 sleeping, 0 stopped, 0 zombie
Cpu(s): 5.5% user, 2.0% system, 0.0% nice, 92.5% idle
Mem: 2052236k total, 1903124k used, 149112k free, 145768k buffers
Swap: 2048276k total, 76784k used, 1971492k free, 1221888k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ Command
8501 hosting 19 0 12780 12m 8524 S 5.2 0.6 0:00.24 httpd
8620 root 14 0 1008 1008 768 S 1.3 0.0 0:00.25 top
'리눅스' 카테고리의 다른 글
hping 설치 (0) | 2013.01.16 |
---|---|
arp.dat 에서 update date 필드 (0) | 2013.01.16 |
인터럽트가 많을때 CPU별로 분산 시켰을때 효과 테스트 (0) | 2013.01.16 |
hdparm 을 이용한 디스크 정보 보기(ide, sata 가능) (0) | 2013.01.16 |
/usr/include/sys 없을때 configure 에러 메시지 (0) | 2013.01.16 |