#GitHub https://github.com/akopytov/sysbench #��װ ���� curl -s https://packagecloud.io/install/repositories/akopytov/sysbench/script.deb.sh | sudo bash sudo apt -y install sysbenc curl -s https://packagecloud.io/install/repositories/akopytov/sysbench/script.rpm.sh | sudo bash sudo yum -y install sysbench #安装 ./autogen.sh ./configure --without-mysql make -j make install sysbench --version #�����й淶 sysbench [options]... [testname] [command] sysbench --test=fileio --file-num=8 --file-total-size=256M --file-test-mode=rndrw prepare sysbench --test=fileio --file-num=8 --file-total-size=256M --file-test-mode=rndrw run sysbench --test=fileio --file-num=8 --file-total-size=256M --file-test-mode=seqrd run sysbench --test=fileio --file-num=8 --file-total-size=256M --file-test-mode=seqwr run sysbench --test=cpu run sysbench cpu --cpu-max-prime=10000 --threads=1 run > sysbench.1.out sysbench cpu --cpu-max-prime=10000 --threads=2 run > sysbench.2.out sysbench cpu --cpu-max-prime=10000 --threads=4 run > sysbench.4.out sysbench cpu --cpu-max-prime=10000 --threads=8 run > sysbench.8.out sysbench cpu --cpu-max-prime=10000 --threads=16 run > sysbench.16.out sysbench cpu --cpu-max-prime=10000 --threads=32 run > sysbench.32.out sysbench cpu --cpu-max-prime=10000 --threads=48 run > sysbench.48.out sysbench cpu --cpu-max-prime=10000 --threads=128 run sysbench --test=cpu --cpu-max-prime=2000 --threads=64 run sysbench --test=memory run sysbench --test=threads run sysbench --test=mutex run --cpu-max-prime=N #upper limit for primes generator [10000] --memory-block-size=SIZE #size of memory block for test [1K] --memory-total-size=SIZE #total size of data to transfer [100G] --memory-scope=STRING #memory access scope {global,local} [global] --memory-hugetlb[=on|off] #allocate memory from HugeTLB pool [off] --memory-oper=STRING #type of memory operations {read, write, none} [write] --memory-access-mode=STRING #memory access mode {seq,rnd} [seq] --thread-yields=N #number of yields to do per request [1000] --thread-locks=N #number of locks per thread [8] --mutex-num=N #total size of mutex array [4096] --mutex-locks=N #number of mutex locks to do per thread [50000] --mutex-loops=N #number of empty loops to do outside mutex lock [10000] #����mysql���� prepare run cleanup sysbench --mysql-host=localhost --mysql-port=3306 --mysql-user=test --mysql-password=mima --mysql-db=tempdb oltp_insert prepare sysbench --mysql-host=localhost --mysql-port=3306 --mysql-user=test --mysql-password=mima --mysql-db=tempdb oltp_insert run sysbench --mysql-host=localhost --mysql-port=3306 --mysql-user=test --mysql-password=mima --mysql-db=tempdb oltp_insert cleanup