This tool, nfsiostat_plotter.py simply takes the output from nfsiotstat, parsers the data to some degree, and creates plots and an HTML report. The intent is to allow plot the time history of the NFS IO rather than have to stare at numbers flashing by on the command line.
There are several versions of nfsiostat_plotter. The first version, nfsiostat_plotter_article.py below corresponds to the version used in the article in HPC-Admin magazine, and can be downloaded. The second version, nfsiostat_plotter.py is an enhanced version with the ability to import data from the enhanced version of iostat_plotter.py (link). It also has a serialization capability (“pickle” in Python-speak) that allows you to save the data structures for use elsewhere.
Both versions are covered under the GPLv2 license.
This version is labeled “nfsiostat_plotter_article.py”. This corresponds to the version in the HPC-Admin Magazine article.
You need to get the nfsiostat output using the command
where “-h” is for a more human readable output, “-m” is for the data to be in MB, “t” is to include time in the output, and “1 100” tells nfsiostat to use “1” second intervals and “100” means to gather data for 100 samples (or 100 sceonds in this case).
After nfsiostat is run, then you can run nfsiostat_plotter_article using the command,
where “nfsiostat.out” is the output from nfsiostat. The code is written in Python (obviously) and uses the shlex, time, os, and matplotlib modules.
When nfsiostat_plotter_article is done it will create a subdirectory “HTML_REPORT” that contains the plots and an html file “report.html”. Open that html file in a browser or word processor and you will see the plots and a small write-up about them. Feel free to modify the code but please send back changes.
This version can be found on page.