NFSiostat Plotter V4
After I finished nfsiostat_plotter_v3 I had several requests for a new feature. I admit that I didn’t make it clear that the nfsiostat script needed a file named “iostat_file.pickle” and this caused some confusion. Let me explain.
Nfsiostat does not collect CPU stats and I wanted to be able to plots CPU usage versus the NFS read and write usage. The only way to get that data is to run iostat when you run nfsiostat. Then you process the iostat output using iostat_plotter. That code produces a file name "iostat_file.pickle" which nfsiostat_plotter then uses for the CPU usage information. Yes, it does seem a little complicated for just adding CPU usage data to the plots but that is the way it is.
People got an error in nfsiostat_plotter.py if they didn’t run iotstat_plotter first and they got confused. I didn’t make this step clear. In V4 of nfsiostat_plotter.py, I’ve added the ability to check for the file “iostat_file.pickle”. If the file exists, the plots include CPU usage. If the file does not exist then the CPU usage is not included in the plots.
You can download V4 of nfsiostat_plotter.py from this link. I hope this version is a little more understandable.
BTW – I know the code is not the best code or very Pythonic but I intended the code to be be sort of a throw away code to illustrate a point. But people are actually using it so I’m going to start a re-write of the code to make better use of objects and code reuse (this is a very large amount of code replication). Stay tuned – maybe I can get this out fairly soon.