update sysbench command

This commit is contained in:
virtubox 2018-01-24 12:17:59 +00:00
parent 5529c3bda6
commit eefd98159a
1 changed files with 8 additions and 5 deletions

View File

@ -1,8 +1,11 @@
#!/bin/bash #!/bin/bash
echo "" > sysbench.log echo "" > bench.log
sysbench --test=cpu --cpu-max-prime=20000 run >> sysbench.log curl -s https://packagecloud.io/install/repositories/akopytov/sysbench/script.deb.sh | sudo bash &>/dev/null
sysbench --test=fileio --file-total-size=5G prepare &>/dev/null sudo apt -y install sysbench &>/dev/null
sysbench --test=fileio --file-total-size=5G --file-test-mode=rndrw --init-rng=on --max-time=300 --max-requests=0 run >> sysbench.log
sysbench --test=fileio --file-total-size=5G cleanup &>/dev/null sysbench cpu --cpu-max-prime=20000 run >> sysbench.log >> bench.log
sysbench fileio --file-total-size=5G prepare &>/dev/null
sysbench fileio --file-total-size=5G --file-test-mode=rndrw --time=300 --max-requests=0 run >> bench.log
sysbench fileio --file-total-size=5G cleanup &>/dev/null