/iostatparse

Parse the output of zpool iostat to generate summarized performance statistics

Primary LanguagePython

iostatparse.py

Usage: iostatparse.py [-h] file [file ...]

Parse the output of zpool iostat to generate summarized performance statistics

Positional arguments:

file Text file(s) containing the zpool iostat output to parse

Details:

Outputs 50th, 90th, 95th, 99th percentile and max value for performance statistics generated by zpool iostat command. Performance statistics include R/W/Combined IOPS and throughput, I/O size, total R/W latency, and disk R/W latency. Also calculates R/W mix, average I/O size, total data written across iostat interval, and average total written per day.

Sample Output:

                    Unit        50p            90p            95p            99p            Max            Avg             σ            
                   ------      -----          -----          -----          -----          -----          -----          -----          
  Read IOPS        Ops/Sec     0              142            163            202            2009           42.04          68.95          
 Write IOPS        Ops/Sec     0              897            1006           1610           2220           199.65         404.89         
   R+W IOPS        Ops/Sec     23             937            1065           1635           2305           241.69         410.8          
  Read Throughput  MiB/sec     0.0            23.2           26.5           31.43          78.5           6.46           10.36          
 Write Throughput  MiB/sec     0.0            5.32           7.52           17.23          31.7           1.47           3.48           
   R+W Throughput  MiB/sec     0.18           25.44          28.26          37.43          78.5           7.93           10.92          
  Read IO Size     KiB         170.92         172.7          173.61         177.69         209.0          135.44         64.93          
 Write IO Size     KiB         6.33           9.99           11.44          13.85          34.38          7.04           2.12           
  Read Tot. Lat.   mSec        2.0            17.0           19.0           25.0           116.0          5.39           7.08           
 Write Tot. Lat.   mSec        1.0            2.0            3.0            4.0            4.0            1.25           0.64           
  Read Disk Lat.   mSec        1.0            2.0            3.0            4.0            4.0            1.25           0.64           
 Write Disk Lat.   mSec        2.0            17.0           19.0           25.0           116.0          5.36           7.04           

   Total Samples Parsed: 8,175 (2h 16m 15s)
   Read Mix (by Op Count): 17 %
   Read Mix (by Size): 81 %
   Total Written: 0.01 TiB
   Total Written per Day: 0.12 TiB

Copyright 2021 Jason Rose

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.