Skript zum Messen der Laufwerksgeschwindigkeit mit sysbench.

This commit is contained in:
2023-09-24 10:16:32 +02:00
parent 136c067263
commit c110aac7ce

19
diskspeed.sh Executable file
View File

@@ -0,0 +1,19 @@
#! /usr/bin/bash
#inspired by Sun Knudsen
# create the test files
echo "preparing tests"
sysbench fileio --file-total-size=8G prepare > /dev/null
# Test with 16K block size, random read/write
echo "run test with 16K block size"
sysbench fileio --file-block-size=16K --file-total-size=8G --file-test-mode=rndrw --threads=$(nproc) run
# Test with 1M block size, random read/write
echo "run test with 1M block size"
sysbench fileio --file-block-size=1M --file-total-size=8G --file-test-mode=rndrw --threads=$(nproc) run
# cleanup the test files
sysbench fileio --file-total-size=8G cleanup