Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- tempfile="tmpfile_hdd-speed-test.tmp"
- size_MB="1000"
- # Cache leeren
- echo 3 > /proc/sys/vm/drop_caches
- # Schreib - Test
- echo
- echo "[Starte] Schreib - Test"
- dd if=/dev/zero of="$tempfile" bs=1M count="$size_MB" conv=fdatasync,notrunc
- echo "[Beendet] Schreib - Test"
- echo "------------------------------"
- echo
- # Lese - Test aus Cache
- echo "[Starte] Lese - Test aus Cache"
- dd if="$tempfile" of=/dev/zero
- echo "[Beendet] Lese - Test aus Cache"
- echo "------------------------------"
- echo
- # Cache leeren
- echo 3 > /proc/sys/vm/drop_caches
- # Lese - Test normal
- echo "[Starte] Lese - Test"
- dd if="$tempfile" of=/dev/zero
- echo "[Beendet] Lese - Test normal"
- echo "------------------------------"
- echo
- # tempfile löschen
- echo "[Info] lösche tmp file"
- rm -f "$tempfile"
- echo "------------------------------"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement