Created
August 3, 2020 12:32
-
-
Save powersee/883cb6269e0f2872cadbae07049ec09c to your computer and use it in GitHub Desktop.
脚本用来测试当前目录的读写速度
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
i=1 | |
while [ $i -le 700 ];do | |
echo "$i" | |
dd if=/dev/zero of=test$i.dd bs=1M count=1024 oflag=direct,nonblock | |
dd if=test$i.dd of=/dev/null bs=1M iflag=direct,nonblock | |
i=$((i+1)) | |
rm test*.dd | |
done | |
rm -rf test*.dd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment