Last active
October 11, 2015 03:48
-
-
Save sennajox/3798683 to your computer and use it in GitHub Desktop.
a script that run with differnt iodepth, it should work with my run_fio.sh
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
#!/bin/bash | |
if [ $# -lt 2 ]; then | |
echo "usage:$0 dev prefix" | |
exit 1 | |
fi | |
dev="$1" | |
if [ "$dev" = "" ];then | |
echo "dev is empty" | |
exit 1 | |
fi | |
dir_prefix="$2_depth" | |
IODEPTHS=(1 8 16 32 64 128 256) | |
for depth in "${IODEPTHS[@]}" | |
do | |
outdir="$dir_prefix""_""$depth" | |
pkg="$outdir.tgz" | |
./run_fio.sh $dev "$outdir" $depth | |
tar zcvf $pkg $outdir | |
done | |
tar zcvf $2.tgz "$dir_prefix""*.tgz" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
work with https://gist.github.com/3667757