Browse Source

update sysbench command

master
virtubox 3 years ago
parent
commit
eefd98159a
1 changed files with 8 additions and 5 deletions
  1. +8
    -5
      sysbench.sh

+ 8
- 5
sysbench.sh View File

@ -1,8 +1,11 @@
#!/bin/bash
echo "" > sysbench.log
echo "" > bench.log
sysbench --test=cpu --cpu-max-prime=20000 run >> sysbench.log
sysbench --test=fileio --file-total-size=5G prepare &>/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
curl -s https://packagecloud.io/install/repositories/akopytov/sysbench/script.deb.sh | sudo bash &>/dev/null
sudo apt -y install sysbench &>/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

Loading…
Cancel
Save