일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Disk
- goaccess
- 디스크
- rsync
- 솔라리스
- 쇼펜의상속자 #킨텍스메가쇼 #섬유향수탈취제
- CPU
- Performance
- 칭찬교육
- iptables
- Kernel
- rm -rf
- windows
- Python
- pid
- PORT
- ext4
- rm
- PERL
- Hack
- http
- apachetop
- 좌절교육
- cadre
- ext3
- Linux
- 리눅스
- Cache
- DNS
- Bash
- Today
- Total
Ben's
cpulimit 본문
작성일: 2011-6-15
* gzip의 cpu 사용율을 trace 하여 10% 이내로 cpu사용을 제한하게 해주는 툴임. 짱!
물론 gzip 외에 다른 프로그램에도 사용할수 있음 -e 옵션 사용!
[root@test-000 ~]# cpulimit -l 10 -e gzip -z -v
Process 20315 detected
%CPU work quantum sleep quantum active rate
10.94% 10866 us 89133 us 11.89%
10.89% 10667 us 89332 us 11.62%
10.82% 10561 us 89439 us 11.43%
10.79% 10867 us 89132 us 11.72%
10.94% 10066 us 89933 us 11.01%
10.89% 10069 us 89930 us 10.97%
top - 10:29:05 up 11 days, 21:08, 3 users, load average: 0.54, 0.40, 0.36
Tasks: 69 total, 2 running, 64 sleeping, 1 stopped, 2 zombie
Cpu(s): 6.8% us, 5.7% sy, 0.0% ni, 82.5% id, 5.0% wa, 0.0% hi, 0.0% si
Mem: 2049852k total, 2039624k used, 10228k free, 25324k buffers
Swap: 1959920k total, 224k used, 1959696k free, 1886996k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
22132 root 16 0 2852 560 192 T 10.7 0.0 0:21.58 gzip
http://cpulimit.sourceforge.net/
http://kogaeng.tistory.com/314
'리눅스' 카테고리의 다른 글
linux boot sequence (0) | 2013.01.21 |
---|---|
strace -fFp pid (0) | 2013.01.21 |
/etc/motd 퍼미션 400으로 줘도 일반사용자 로그인시 배너 보이는 현상 - setreuid,setregid 때문 (0) | 2013.01.21 |
ubuntu linux vsftpd 설정방법 (0) | 2013.01.17 |
ant 설치 (0) | 2013.01.17 |