Browse Source

Mettre à jour 'sysbench.sh'

master
virtubox 2 years ago
parent
commit
4addc7fb9e
1 changed files with 30 additions and 0 deletions
  1. +30
    -0
      sysbench.sh

+ 30
- 0
sysbench.sh View File

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

Loading…
Cancel
Save