2015.09.18 12:40
WEB 및 DB등 운영중인 서버에서 백업,배치등의 이유로 CPU부하가 발생 하는 경우가 있습니다.
이럴때 각 프로세에 CPU limit설정 하여 자원 확보하는 프로그램이 있습니다.
#download
- http://sourceforge.net/projects/cpulimit/files/cpulimit/cpulimit/cpulimit-1.1.tar.gz/download?use_mirror=jaist&r=&use_mirror=cdnetworks-kr-1
#install
[root@apm ~]# ls -la |grep cpulimit-1.1.tar.gz
-rw-r--r-- 1 root root 5130 Sep 18 11:41 cpulimit-1.1.tar.gz
[root@apm ~]# tar zxvf cpulimit-1.1.tar.gz
cpulimit-1.1/
cpulimit-1.1/Makefile
cpulimit-1.1/cpulimit.c
[root@apm ~]# cd cpulimit-1.1
[root@apm cpulimit-1.1]# make
gcc -o cpulimit cpulimit.c -lrt -Wall -O2
[root@apm cpulimit-1.1]# ls -la
total 48
drwxr-xr-x 2 1002 root 4096 Sep 18 11:57 .
dr-xr-x---. 5 root root 4096 Sep 18 11:57 ..
-rwxr-xr-x 1 root root 17070 Sep 18 11:57 cpulimit
-rw-r--r-- 1 1002 users 14146 Jun 27 2005 cpulimit.c
-rw-r--r-- 1 1002 users 107 Jun 24 2005 Makefile
[root@apm cpulimit-1.1]#
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
346 | /proc/sys/net/ipv4 활용 서버보안 -2- | 호스트웨이 | 2015.09.18 | 3677 |
345 |
리눅스 파티션 볼륨 레이블 설정
![]() | 호스트웨이 | 2012.11.01 | 3717 |
344 | tcpdump 활용 | 호스트웨이 | 2015.09.16 | 3719 |
343 |
리눅스 SSH Port 추가하기
![]() | 호스트웨이 | 2015.09.16 | 3721 |
342 | iptables를 이용한 ssh 스캐닝 공격 방어 | 호스트웨이 | 2012.09.21 | 3807 |
341 | UTF-8 환경의 Linux 에서 SAMBA 한글 인코딩 문제 해결 방법 | 호스트웨이 | 2015.09.09 | 3831 |
340 | vsftpd 패시브 모드 설정 | 호스트웨이 | 2015.09.13 | 3833 |
339 |
리눅스 wc 명령어
![]() | 호스트웨이 | 2012.10.26 | 3853 |
338 |
Ctrl+Alt+Del로 재부팅 방지 하기
![]() | 호스트웨이 | 2012.12.13 | 3858 |
» | CPU 사용률 제한 | 호스트웨이 | 2015.09.18 | 3895 |
336 |
samba 설치
![]() | 호스트웨이 | 2014.04.14 | 3957 |
335 | 리눅스 관리툴 webmin 설치하기 | 호스트웨이 | 2012.12.07 | 4014 |
334 | 리눅스 who 명령어 | 호스트웨이 | 2012.12.12 | 4071 |
333 | Route 경로 추가 | 호스트웨이 | 2015.09.18 | 4126 |
332 | scp, ssh, rsync를 사용할 때 SSH 암호 묻는 것 피하는 법 | 호스트웨이 | 2015.09.13 | 4137 |
331 | 패스워드 정책 변경 | 호스트웨이 | 2015.09.03 | 4229 |
330 | history 삭제 막기 | 호스트웨이 | 2012.10.19 | 4303 |
329 | apache log rotatelogs 관리 | 호스트웨이 | 2015.09.08 | 4309 |
328 |
리눅스 dmesg 명령어
![]() | 호스트웨이 | 2012.12.06 | 4462 |
327 | rpm에서 원하는 파일만 풀어서 사용하기 | 호스트웨이 | 2015.09.19 | 4536 |