Skip to content

Instantly share code, notes, and snippets.

@sennajox
Last active October 11, 2015 03:48
Show Gist options
  • Save sennajox/3798683 to your computer and use it in GitHub Desktop.
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
#!/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"
@sennajox
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment