<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:10pt"><div><span style="font-size: 10pt;">Hello,</span><br></div><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"><div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt;"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><div class="y_msg_container"><div id="yiv1423254471"><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt;"><div class="yiv1423254471" style=""><br clear="none" class="yiv1423254471" style=""></div><div class="yiv1423254471" style="">Basing my first patch to Gluster as a stepping stone, I've written a small utility
 glusterfsiostat, in python which you can find attached with this email. Currently, the modifications done by my patch to io-stats which is under review as of now, dumps private information from the xlator object to the proper file for private info in the meta directory. This includes total bytes read/written along with read/write speed in the previous 10 seconds. The speed at every 1 second is identified by it's respective unix timestamp and hence given out in bytes/second. These values at discrete points of time can be used to generate a graph.&nbsp;</div><div class="yiv1423254471" style=""><br clear="none" class="yiv1423254471" style=""></div><div class="yiv1423254471" style="">The python tool first identifies all gluster mounts in the system, identifies the mount path and parses the meta xlator output in order to generate output similar to the iostat tool. Passing '-j' option gives you extra information in a consumable json format. By default, the
 tool pretty prints the basic stats which are human readable. This tool is supposed to be a framework on which other applications can be built upon. I'm putting this out for community feedback so as to improve it further.</div><div class="yiv1423254471" style=""><br clear="none" class="yiv1423254471" style=""></div><div class="yiv1423254471" style=""><span class="yiv1423254471" style=""></span></div><div class="yiv1423254471" style="">Do you think the stats and the way they're generated as of now is something that might be usable by someone? Any other implementation suggestions or addition of some more stats that I can/should possibly provide with the utility?</div><div class="yiv1423254471" style=""><br clear="none" class="yiv1423254471" style=""></div><div class="yiv1423254471" style=""><span class="yiv1423254471" style=""><div class="yiv1423254471" style=""></div></span></div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue, 'Helvetica
 Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: transparent;">Note: In order to test this, you need to apply my patch(<a rel="nofollow" shape="rect" class="yiv1423254471" target="_blank" href="http://review.gluster.org/#/c/8030/" style="margin:0px;padding:0px;text-decoration:underline;color:rgb(25, 106, 212);outline:none;font-size:10pt;">http://review.gluster.org/#/c/8030/</a><span class="yiv1423254471" style="background-color:transparent;">) in your repo first, build and then mount a volume. Preferably perform a big read/write operation with a file on your Gluster mount before executing the python script. Then run it as 'python stat.py' or 'python stat.py -j'</span></div><div class="yiv1423254471" style=""></div><div
 class="yiv1423254471" style="">&nbsp;</div><div class="yiv1423254471" style="">Also, please try to answer my question on similar lines, posted here :&nbsp;<a rel="nofollow" target="_blank" href="http://stackoverflow.com/questions/24332368/will-displaying-an-immediate-i-o-speed-be-a-better-alternative-than-showing-an-a" style="font-size:10pt;" class="yiv1423254471">http://stackoverflow.com/questions/24332368/will-displaying-an-immediate-i-o-speed-be-a-better-alternative-than-showing-an-a</a></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, clean, sans-serif; background-color: transparent; font-style: normal;"><br class="yiv1423254471" style=""></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, clean, sans-serif; background-color: transparent; font-style: normal;">Regards</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, clean, sans-serif;
 background-color: transparent; font-style: normal;"><span style="background-color:transparent;line-height:1.22;" class="yiv1423254471">Vipul Nayyar&nbsp;</span></div></div></div></div>  </div> </div>  </div> </div></body></html>