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 4.0 에서 4.1 다운그레이드 | 호스트웨이 | 2012.11.01 | 6616 |
4 | [mysql] sqli, pdo 설정 확인 | 호스트웨이 | 2015.09.22 | 6597 |
3 | [mysql] shell 자동화 | 호스트웨이 | 2015.09.20 | 6328 |
2 | MySQL Processlist 콘솔 상에서 확인 | 호스트웨이 | 2015.09.07 | 6059 |
1 | 지정된 시간 이상 질의를 계속 하는 질의문 잡아내기 | 호스트웨이 | 2015.09.15 | 6040 |