Created
April 25, 2014 10:43
-
-
Save hiroakis/11285199 to your computer and use it in GitHub Desktop.
dd test
This file contains 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
rm -rf /data/storage-* | |
mkdir -p /data/bench/logs | |
cd /data/bench | |
cat <<'EOF' > ./dd.sh | |
#!/bin/sh | |
for i in {1..300}; do | |
echo ID: $$ PASS: $i | |
date | |
dd if=/dev/zero bs=10M count=$1 of=/data/storage-$$ | |
rm -f /data/storage-$$ | |
done | |
EOF | |
cat <<'EOF' > ./run.sh | |
#!/bin/sh | |
rm -f /data/storage-* | |
CNT=3072 | |
for i in {1..20}; do | |
n=$(printf "%02d" $i) | |
./dd.sh $CNT >> ./logs/$n.log & | |
done | |
EOF | |
cat <<'EOF' >./fio_temp.sh | |
#!/bin/bash | |
fio-status -a | grep temp | awk '{print $3}' | |
echo '---' | |
EOF | |
chmod 755 *sh | |
nohup ./run.sh & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment