2012.07.06 07:07
Mysql banchmark tool – sysbanch 설치하기
hostway # wget http://sourceforge.net/projects/sysbench/files/sysbench/0.4.12/sysbench-0.4.12.tar.gz/download
hostway # tar xvfz sysbench-0.4.12.tar.gz
hostway # cd sysbench-0.4.12
hostway # ./autogen.sh
hostway # ./configure --prefix=/usr/local --with-mysql-includes=/usr/local/mysql/include/mysql --with-mysql-libs=/usr/local/mysql/lib/mysql
hostway # make && make install
# TEST DB 생성
hostway # mysql -u root -p
SQL> create database sbtest;
SQL> grant all on sbtest.* to sbtest@localhost identified by 'sbtest' with grant option;
SQL>grant all on sbtest.* to sbtest identified by 'sbtest' with grant option;
SQL> flush privileges
# mysql.sock 파일 위치는 지정한 위치에 따라 다를 수 있습니다. Rpm 으로 설치 된 경우 /var/lib/mysql/mysql.sock
./sysbench --test=oltp --mysql-table-type=myisam --oltp-table-size=10000 --mysql-password=sbtest --mysql-socket=/tmp/mysql.sock prepare
#테스트 실행
./sysbench --num-threads=16 --max-requests=1000 --test=oltp --oltp-table-size=10000 --mysql-socket=/ tmp/mysql.sock --mysql-password=sbtest --oltp-read-only run
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
5 | [mysql] 작은 용량의 파일 로드 속도가 느려진 경우 | 호스트웨이 | 2015.09.22 | 7106 |
4 | MYSQL 접속 - 소켓 지정하여 접속하기 | 호스트웨이 | 2015.09.23 | 58378 |
3 | DB접속시 DNS 관련 오류 | 호스트웨이 | 2015.09.25 | 18283 |
2 | [Oracle] 대량 자료 조회 Parallel | 호스트웨이 | 2015.09.26 | 7244 |
1 | MySQL Bash 스크립트를 활용한 로컬 백업 | 호스트웨이 | 2016.02.04 | 12405 |