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]#
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
66 |
Linux 외장 저장장치 mount
![]() | 호스트웨이 | 2015.09.10 | 1991 |
65 | root 초기 접속 홈디렉토리 변경하기 | 호스트웨이 | 2015.09.12 | 7527 |
64 |
리눅스 파일 및 디렉토리 권한 관리
![]() | 호스트웨이 | 2015.09.13 | 5800 |
63 | 우분투 서버에 JDK7 설치하기 | 호스트웨이 | 2015.09.13 | 1798 |
62 | vsftpd 패시브 모드 설정 | 호스트웨이 | 2015.09.13 | 3882 |
61 | 읽기 전용 파티션 읽고 쓸수 있게 재마운트하는 방법 | 호스트웨이 | 2015.09.13 | 3138 |
60 | scp, ssh, rsync를 사용할 때 SSH 암호 묻는 것 피하는 법 | 호스트웨이 | 2015.09.13 | 4203 |
59 | 두 파일 비교 diff 의 기본 사용법 | 호스트웨이 | 2015.09.14 | 12541 |
58 | rsync 수행시 Connection refused 해결 방법 | 호스트웨이 | 2015.09.14 | 18887 |
57 | iotop 사용하기 | 호스트웨이 | 2015.09.14 | 5429 |
56 | top 사용 추가 tip | 호스트웨이 | 2015.09.15 | 2318 |
55 |
리눅스 SSH Port 추가하기
![]() | 호스트웨이 | 2015.09.16 | 3778 |
54 | tcpdump 활용 | 호스트웨이 | 2015.09.16 | 3776 |
53 | 리눅스 hdd 속도 알아보기 | 호스트웨이 | 2015.09.17 | 2905 |
52 | 라우팅 제어명령 | 호스트웨이 | 2015.09.17 | 5155 |
51 | hostname 변경하기 | 호스트웨이 | 2015.09.17 | 2885 |
50 |
/tmp 디렉토리 보안 설정하기
![]() | 호스트웨이 | 2015.09.17 | 10439 |
49 | /proc/sys/net/ipv4 활용 서버보안 -1- | 호스트웨이 | 2015.09.17 | 3292 |
48 | bios 타이머 및 시간 설정 | 호스트웨이 | 2015.09.18 | 5227 |
» | CPU 사용률 제한 | 호스트웨이 | 2015.09.18 | 3982 |