Skip to content

Instantly share code, notes, and snippets.

@hiroakis
Created April 25, 2014 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiroakis/11285199 to your computer and use it in GitHub Desktop.
Save hiroakis/11285199 to your computer and use it in GitHub Desktop.
dd test
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