Stress/Benchmark Test - 壓力/效能測試工具
RPM 安裝檔下載
http://dag.wieers.com/rpm/packages/stress/
使用方法
stress --cpu 2 --io 4 --vm 1 --vm-bytes 128M --timeout 10s
Home: https://github.com/akopytov/sysbench
yum install make automake libtool pkgconfig libaio-devel # For MySQL support, replace with mariadb-devel on RHEL/CentOS 7 yum install mysql-devel openssl-devel # For PostgreSQL support yum install postgresql-devel git clone https://github.com/akopytov/sysbench.git ./autogen.sh # Add --with-pgsql to build with PostgreSQL support ./configure --prefix=/opt/sysbench make -j make install
mysql> create database sbtest; /opt/sysbench/bin/sysbench oltp_common --debug=on --db-driver=mysql --mysql-user=fdc_mysql --mysql-password=fdc168 --mysql-host=10.4.1.24 --mysql-db=sbtest --mysql_storage_engine=innodb --table_size=1000000 prepare /opt/sysbench/bin/sysbench oltp_common --debug=on --db-driver=mysql --mysql-user=fdc_mysql --mysql-password=fdc168 --mysql-host=10.4.1.24 --mysql-db=sbtest --mysql_storage_engine=innodb --table_size=1000000 run