Skip to content

Instantly share code, notes, and snippets.

@concubidated
Created January 11, 2013 19:29
Show Gist options
  • Save concubidated/4513281 to your computer and use it in GitHub Desktop.
Save concubidated/4513281 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "Server, Disk, Size, Read BW, Write BW, Read BW, Write IOPS"
for osd in {0..43}
do
throughput=`tail -n3 osd.${osd}_* | grep time | awk -F \" '{print $30}'`
iops=`tail -n3 osd.${osd}_* | grep time | awk -F \" '{print $22}'`
declare -a Bw=($throughput)
declare -a Iops=($iops)
echo -e ",osd.${osd},4096,${Bw[2]}, ${Bw[3]}, ${Iops[2]}, ${Iops[3]}"
echo -e ",osd.${osd},131073,${Bw[0]}, ${Bw[1]}, ${Iops[0]}, ${Iops[1]}"
echo -e ",osd.${osd},4194304,${Bw[4]}, ${Bw[5]}, ${Iops[4]}, ${Iops[5]}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment