HDD Benchmark

cat > ./hdd.test.sh
#!/bin/bash

sync
echo 3 > /proc/sys/vm/drop_caches
echo "write test"
dd if=/dev/zero of=./tmp conv=fdatasync bs=384k count=1k

sync
echo 3 > /proc/sys/vm/drop_caches
echo "read test"
dd if=./tmp of=/dev/null bs=384k

rm -f ./tmp