Browse Source

Mettre à jour 'sysbench.sh'

master
virtubox 2 years ago
parent
commit
cc95c1a63d
1 changed files with 13 additions and 1 deletions
  1. +13
    -1
      sysbench.sh

+ 13
- 1
sysbench.sh View File

@ -1,12 +1,15 @@
#!/bin/bash
if [ ! -f /etc/apt/sources.list.d/akopytov_sysbench.list ];then
echo "installing sysbench : [ ]"
curl -s https://packagecloud.io/install/repositories/akopytov/sysbench/script.deb.sh | sudo bash
apt-get install -y sysbench
fi
echo "installing sysbench : [OK]"
echo "" > sysbench.log
{
echo "#################################"
echo "CPU Benchmark"
@ -14,8 +17,12 @@ echo "#################################"
echo ""
} >> sysbench.log
echo "starting CPU Benchmark"
sysbench cpu --cpu-max-prime=20000 run >> sysbench.log
echo "CPU Benchmark : [OK]"
{
echo ""
echo "#################################"
@ -24,8 +31,11 @@ echo "#################################"
echo ""
} >> sysbench.log
echo "starting RAM Benchmark"
sysbench memory --memory-block-size=1K --memory-total-size=100G run >> sysbench.log
echo "RAM Benchmark : [OK]"
{
echo ""
echo "#################################"
@ -33,7 +43,9 @@ echo "Disk Benchmark"
echo "#################################"
echo ""
} >> sysbench.log
echo "starting Disk Benchmark"
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 >> sysbench.log
sysbench fileio --file-total-size=5G cleanup &>/dev/null
echo "Disk Benchmark : [OK]"

Loading…
Cancel
Save