?????????????sysbench
???????????? ???????[ 2014/9/22 14:27:29 ] ?????????????????? sysbench
????????????
????http://pan.baidu.com/s/16KhJ4
???????
????tar -zxvf sysbench-0.4.12.tar.gz
????????????????
????cd sysbench-0.4.12
???????autogen???
????./autogen.sh
???????autogen.sh?????
????????????????????
echo "export LC_ALL=C" >> /root/.bashrc
source /root/.bashrc
./configure --prefix=/usr/sysbench/
--with-mysql-includes=/server/mysql/include/
--with-mysql-libs=/server/mysql/lib
--with-mysql
cp /usr/bin/libtool /root/sysbench-0.4.12/libtool
make && make install
????????£????????????? /usr/sysbench/bin/sysbench
????ok?????????????...
????????:
????1)????CPU:
????sysbench --test=cpu --cpu-max-prime=2000 run
????2)????????
????sysbench--test=threads --num-threads=20 --thread-yields=10 --thread-locks=4 run
????3)????IO??--num-threads ???????? --file-total-size ????????С
????1??prepare??Σ?????????????????????????????????????С?????
????sysbench --test=fileio --num-threads=16 --file-total-size=2G --file-test-mode=rndrw prepare
????2??run???
????sysbench --test=fileio --num-threads=20 --file-total-size=2G --file-test-mode=rndrw run
????3??????????????????
????sysbench --test=fileio --num-threads=20 --file-total-size=2G --file-test-mode=rndrw cleanup
????4)??????棺
????sysbench --test=memory --memory-block-size=8k --memory-total-size=1G run
????5)????mutex??
????sysbench –test=mutex –num-threads=100 –mutex-num=1000 –mutex-locks=100000 –mutex-loops=10000 run
????6)????OLTP??
????1??prepare??Σ??????????????
????sysbench --test=oltp --mysql-table-engine=innodb --mysql-host=127.0.0.1 --mysql-db=test --oltp-table-size=500000 --mysql-user=usert --mysql-password=passt prepare
????2??run???
????sysbench --num-threads=16 --test=oltp --mysql-table-engine=innodb --mysql-host=127.0.0.1 --mysql-db=test --oltp-table-size=500000 --mysql-user=usert --mysql-password=passt run
????3???????????????????
????sysbench --num-threads=16 --test=oltp --mysql-table-engine=innodb --mysql-host=127.0.0.1 --mysql-db=test --oltp-table-size=500000 --mysql-user=usert --mysql-password=passt cleanup
??????????????????????...
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11