Dbench: Internet Offline - Rpi 10-100 concurrent

From OnnoWiki
Revision as of 19:50, 11 December 2018 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

Mount

mkdir -p /mnt/public
umount /mnt/public/
mount.cifs //192.168.0.1/public /mnt/public -o username=pi,password=raspberry

Script

touch hasiltest.txt
echo 10 > hasiltest.txt
dbench --directory=/mnt/public/ --loadfile=/usr/share/dbench/client.txt --skip-cleanup 10 >> hasiltest.txt
sleep 15m
echo 20 >> hasiltest.txt
dbench --directory=/mnt/public/ --loadfile=/usr/share/dbench/client.txt --skip-cleanup 20 >> hasiltest.txt
sleep 15m
echo 30 >> hasiltest.txt
dbench --directory=/mnt/public/ --loadfile=/usr/share/dbench/client.txt --skip-cleanup 30 >> hasiltest.txt
sleep 15m
echo 40 >> hasiltest.txt
dbench --directory=/mnt/public/ --loadfile=/usr/share/dbench/client.txt --skip-cleanup 40 >> hasiltest.txt
sleep 15m
echo 50 >> hasiltest.txt
dbench --directory=/mnt/public/ --loadfile=/usr/share/dbench/client.txt --skip-cleanup 50 >> hasiltest.txt
sleep 15m
echo 60 >> hasiltest.txt
dbench --directory=/mnt/public/ --loadfile=/usr/share/dbench/client.txt --skip-cleanup 60 >> hasiltest.txt
sleep 15m
echo 70 >> hasiltest.txt
dbench --directory=/mnt/public/ --loadfile=/usr/share/dbench/client.txt --skip-cleanup 70 >> hasiltest.txt
sleep 15m
echo 80 >> hasiltest.txt
dbench --directory=/mnt/public/ --loadfile=/usr/share/dbench/client.txt --skip-cleanup 80 >> hasiltest.txt
sleep 15m
echo 90 >> hasiltest.txt
dbench --directory=/mnt/public/ --loadfile=/usr/share/dbench/client.txt --skip-cleanup 90 >> hasiltest.txt
sleep 15m
echo 100 >> hasiltest.txt
dbench --directory=/mnt/public/ --loadfile=/usr/share/dbench/client.txt --skip-cleanup 100 >> hasiltest.txt



Pranala Menarik