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]#
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
366 | mii-tool로 랜카드 속도와 duplex모드 조절하기 | 호스트웨이 | 2008.05.19 | 31245 |
365 | awk 를 이용한 패턴 처리 | 호스트웨이 | 2008.05.19 | 24463 |
364 | 로그 관리 | 호스트웨이 | 2008.05.19 | 24801 |
363 | Network File System | 호스트웨이 | 2008.05.19 | 23447 |
362 | ethtool | 호스트웨이 | 2008.05.19 | 29610 |
361 | SSH(Secure shell) 사용하기 | 호스트웨이 | 2008.05.19 | 30540 |
360 | watch 로 시스템 모니터링 하기 | 호스트웨이 | 2008.05.19 | 25537 |
359 | ssh에서 일반계정들의 접속을 제한 하는 방법 | 호스트웨이 | 2008.05.19 | 29319 |
358 | shell 접속은 차단하고 ftp접속만 허용하기 | sylee | 2008.05.20 | 34496 |
357 | CGI 환경 테스트 | sylee | 2008.05.21 | 24613 |
356 | 파일 수정일자 변경하기 | jook | 2008.05.28 | 31231 |
355 | source rpm 을 사용하여 rpm 패키지 만들기 | jook | 2008.05.28 | 34283 |
354 | 데비안 기본 라이브러리 설치 | 호스트웨이 | 2008.06.03 | 33514 |
353 | Privilege separation user sshd does not exist 메세지 | sylee | 2008.06.04 | 32434 |
352 | performance of JFS | HOSTWAY | 2008.06.04 | 31822 |
351 | Kernel Parameters | HOSTWAY | 2008.06.04 | 45459 |
350 | atop like top | HOSTWAY | 2008.06.04 | 28202 |
349 | 많이 사용되는 리눅스 명령들 | sylee | 2008.06.11 | 28716 |
348 | 커널 파라미터 제어 | 호스트웨이 | 2008.06.25 | 36965 |
347 | ssh-key를 생성하여 서버에 패스워드 없이 접속하는 방법 | jook | 2008.06.25 | 44759 |