Skip to content

Instantly share code, notes, and snippets.

@zimmertr
Created June 12, 2020 20:04
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 zimmertr/64029d851a7257271584c704252d183e to your computer and use it in GitHub Desktop.
Save zimmertr/64029d851a7257271584c704252d183e to your computer and use it in GitHub Desktop.
# Line Chart
export PATH=/usr/bin:/home/tj/git/Public/fio-plot/fio_plot
DIR=/home/tj/git/Public/fio-plot/fio_plot/
mkdir -p Individual/{Line,2D_Bar,3D_Graph,Histogram}/{Read,Write}
mkdir -p Comparison/{All,Primary,ZFS}/{Read,Write}
cd Comparison/All/Write
fio_plot -i $DIR/FLASHPOOL $DIR/DATAPOOL $DIR/RAIDPOOL $DIR/SATADOM -T "Write IOPS (Line): Flashpool, DataPool, RAIDPool, & SATADOM" -g -r randwrite -t iops --enable-markers
fio_plot -i $DIR/FLASHPOOL $DIR/DATAPOOL $DIR/RAIDPOOL $DIR/SATADOM -T "Write Bandwidth (Line): Flashpool, DataPool, RAIDPool, & SATADOM" -g -r randwrite -t bw --enable-markers
fio_plot -i $DIR/FLASHPOOL $DIR/DATAPOOL $DIR/RAIDPOOL $DIR/SATADOM -T "Write Latency (Line): Flashpool, DataPool, RAIDPool, & SATADOM" -g -r randwrite -t lat --enable-markers
cd ../Read
fio_plot -i $DIR/FLASHPOOL $DIR/DATAPOOL $DIR/RAIDPOOL $DIR/SATADOM -T "Read IOPS (Line): Flashpool, DataPool, RAIDPool, & SATADOM" -g -r randread -t iops --enable-markers
fio_plot -i $DIR/FLASHPOOL $DIR/DATAPOOL $DIR/RAIDPOOL $DIR/SATADOM -T "Read Bandwidth (Line): Flashpool, DataPool, RAIDPool, & SATADOM" -g -r randread -t bw --enable-markers
fio_plot -i $DIR/FLASHPOOL $DIR/DATAPOOL $DIR/RAIDPOOL $DIR/SATADOM -T "Read Latency (Line): Flashpool, DataPool, RAIDPool, & SATADOM" -g -r randread -t lat --enable-markers
cd ../../Primary/Write
fio_plot -i $DIR/FLASHPOOL $DIR/DATAPOOL $DIR/RAIDPOOL -T "Write IOPS (Line): Flashpool, DataPool, & RAIDPool" -g -r randwrite -t iops --enable-markers
fio_plot -i $DIR/FLASHPOOL $DIR/DATAPOOL $DIR/RAIDPOOL -T "Write Bandwidth (Line): Flashpool, DataPool, & RAIDPool" -g -r randwrite -t bw --enable-markers
fio_plot -i $DIR/FLASHPOOL $DIR/DATAPOOL $DIR/RAIDPOOL -T "Write Latency (Line): Flashpool, DataPool, & RAIDPool" -g -r randwrite -t lat --enable-markers
cd ../Read
fio_plot -i $DIR/FLASHPOOL $DIR/DATAPOOL $DIR/RAIDPOOL -T "Read Bandwidth (Line): Flashpool, DataPool, & RAIDPool" -g -r randread -t bw --enable-markers
fio_plot -i $DIR/FLASHPOOL $DIR/DATAPOOL $DIR/RAIDPOOL -T "Read IOPS (Line): Flashpool, DataPool, & RAIDPool" -g -r randread -t iops --enable-markers
fio_plot -i $DIR/FLASHPOOL $DIR/DATAPOOL $DIR/RAIDPOOL -T "Read Latency (Line): Flashpool, DataPool, & RAIDPool" -g -r randread -t lat --enable-markers
cd ../../ZFS/Write
fio_plot -i $DIR/FLASHPOOL $DIR/DATAPOOL -T "Write IOPS (Line): Flashpool, DataPool" -g -r randwrite -t iops --enable-markers
fio_plot -i $DIR/FLASHPOOL $DIR/DATAPOOL -T "Write Bandwidth (Line): Flashpool, DataPool" -g -r randwrite -t bw --enable-markers
fio_plot -i $DIR/FLASHPOOL $DIR/DATAPOOL -T "Write Latency (Line): Flashpool, DataPool" -g -r randwrite -t lat --enable-markers
cd ../Read
fio_plot -i $DIR/FLASHPOOL $DIR/DATAPOOL -T "Read IOPS (Line): Flashpool, DataPool" -g -r randread -t iops --enable-markers
fio_plot -i $DIR/FLASHPOOL $DIR/DATAPOOL -T "Read Bandwidth (Line): Flashpool, DataPool" -g -r randread -t bw --enable-markers
fio_plot -i $DIR/FLASHPOOL $DIR/DATAPOOL -T "Read Latency (Line): Flashpool, DataPool" -g -r randread -t lat --enable-markers
cd ../../../Individual/Line/Write
fio_plot -i $DIR/FLASHPOOL -T "Write IOPS/Latency (Line): Flashpool" -g -r randwrite -t iops lat --enable-markers
fio_plot -i $DIR/DATAPOOL -T "Write IOPS/Latency (Line): DataPool" -g -r randwrite -t iops lat --enable-markers
fio_plot -i $DIR/RAIDPOOL -T "Write IOPS/Latency (Line): RAIDPool" -g -r randwrite -t iops lat --enable-markers
fio_plot -i $DIR/SATADOM -T "Write IOPS/Latency (Line): SATADOM" -g -r randwrite -t iops lat --enable-markers
fio_plot -i $DIR/FLASHPOOL -T "Write Bandwidth (Line): Flashpool" -g -r randwrite -t bw --enable-markers
fio_plot -i $DIR/DATAPOOL -T "Write Bandwidth (Line): DataPool" -g -r randwrite -t bw --enable-markers
fio_plot -i $DIR/RAIDPOOL -T "Write Bandwidth (Line): RAIDPool" -g -r randwrite -t bw --enable-markers
fio_plot -i $DIR/SATADOM -T "Write Bandwidth (Line): SATADOM" -g -r randwrite -t bw --enable-markers
cd ../Read
fio_plot -i $DIR/FLASHPOOL -T "Read IOPS/Latency (Line): Flashpool" -g -r randread -t iops lat --enable-markers
fio_plot -i $DIR/DATAPOOL -T "Read IOPS/Latency (Line): DataPool" -g -r randread -t iops lat --enable-markers
fio_plot -i $DIR/RAIDPOOL -T "Read IOPS/Latency (Line): RAIDPool" -g -r randread -t iops lat --enable-markers
fio_plot -i $DIR/SATADOM -T "Read IOPS/Latency (Line): SATADOM" -g -r randread -t iops lat --enable-markers
fio_plot -i $DIR/FLASHPOOL -T "Read Bandwidth (Line): Flashpool" -g -r randread -t bw --enable-markers
fio_plot -i $DIR/DATAPOOL -T "Read Bandwidth (Line): DataPool" -g -r randread -t bw --enable-markers
fio_plot -i $DIR/RAIDPOOL -T "Read Bandwidth (Line): RAIDPool" -g -r randread -t bw --enable-markers
fio_plot -i $DIR/SATADOM -T "Read Bandwidth (Line): SATADOM" -g -r randread -t bw --enable-markers
# 2D Bar Chart
cd ../../2D_Bar/Write
fio_plot -i $DIR/FLASHPOOL -T "Write IOPS/Latency (2D Bar): Flashpool" -l -r randwrite -n 2
fio_plot -i $DIR/DATAPOOL -T "Write IOPS/Latency (2D Bar): DataPool" -l -r randwrite -n 2
fio_plot -i $DIR/RAIDPOOL -T "Write IOPS/Latency (2D Bar): RAIDPool" -l -r randwrite -n 2
fio_plot -i $DIR/SATADOM -T "Write IOPS/Latency (2D Bar): SATADOM" -l -r randwrite -n 2
cd ../Read
fio_plot -i $DIR/FLASHPOOL -T "Read IOPS/Latency (2D Bar): Flashpool" -l -r randread -n 2
fio_plot -i $DIR/DATAPOOL -T "Read IOPS/Latency (2D Bar): DataPool" -l -r randread -n 2
fio_plot -i $DIR/RAIDPOOL -T "Read IOPS/Latency (2D Bar): RAIDPool" -l -r randread -n 2
fio_plot -i $DIR/SATADOM -T "Read IOPS/Latency (2D Bar): SATADOM" -l -r randread -n 2
# Histogram
cd ../../Histogram/Write
fio_plot -i $DIR/FLASHPOOL -T "Write Latency (Histogram): Flashpool" -H -r randwrite
fio_plot -i $DIR/DATAPOOL -T "Write Latency (Histogram): DataPool" -H -r randwrite
fio_plot -i $DIR/RAIDPOOL -T "Write Latency (Histogram): RAIDPool" -H -r randwrite
fio_plot -i $DIR/SATADOM -T "Write Latency (Histogram): SATADOM" -H -r randwrite
cd ../Read
fio_plot -i $DIR/FLASHPOOL -T "Read Latency (Histogram): Flashpool" -H -r randread
fio_plot -i $DIR/DATAPOOL -T "Read Latency (Histogram): DataPool" -H -r randread
fio_plot -i $DIR/RAIDPOOL -T "Read Latency (Histogram): RAIDPool" -H -r randread
fio_plot -i $DIR/SATADOM -T "Read Latency (Histogram): SATADOM" -H -r randread
# 3D Graph
cd ../../3D_Graph/
mkdir -p {iops,latency}/{Write,Read}
cd iops/Write
fio_plot -i $DIR/FLASHPOOL -T "Write IOPS (3D Bar): Flashpool" -L -r randwrite -t iops
fio_plot -i $DIR/DATAPOOL -T "Write IOPS (3D Bar): DataPool" -L -r randwrite -t iops
fio_plot -i $DIR/RAIDPOOL -T "Write IOPS (3D Bar): RAIDPool" -L -r randwrite -t iops
fio_plot -i $DIR/SATADOM -T "Write IOPS (3D Bar): SATADOM" -L -r randwrite -t iops
cd ../Read
fio_plot -i $DIR/FLASHPOOL -T "Read IOPS (3D Bar): Flashpool" -L -r randread -t iops
fio_plot -i $DIR/DATAPOOL -T "Read IOPS (3D Bar): DataPool" -L -r randread -t iops
fio_plot -i $DIR/RAIDPOOL -T "Read IOPS (3D Bar): RAIDPool" -L -r randread -t iops
fio_plot -i $DIR/SATADOM -T "Read IOPS (3D Bar): SATADOM" -L -r randread -t iops
cd ../../latency/Write
fio_plot -i $DIR/FLASHPOOL -T "Write Latency (3D Bar): Flashpool" -L -r randwrite -t lat
fio_plot -i $DIR/DATAPOOL -T "Write Latency (3D Bar): DataPool" -L -r randwrite -t lat
fio_plot -i $DIR/RAIDPOOL -T "Write Latency (3D Bar): RAIDPool" -L -r randwrite -t lat
fio_plot -i $DIR/SATADOM -T "Write Latency (3D Bar): SATADOM" -L -r randwrite -t lat
cd ../Read
fio_plot -i $DIR/FLASHPOOL -T "Read Latency (3D Bar): Flashpool" -L -r randread -t lat
fio_plot -i $DIR/DATAPOOL -T "Read Latency (3D Bar): DataPool" -L -r randread -t lat
fio_plot -i $DIR/RAIDPOOL -T "Read Latency (3D Bar): RAIDPool" -L -r randread -t lat
fio_plot -i $DIR/SATADOM -T "Read Latency (3D Bar): SATADOM" -L -r randread -t lat
cd ../../../../
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment