Updates to synthetic read data processing script
authorMichael Vrable <mvrable@cs.ucsd.edu>
Thu, 17 Mar 2011 17:15:55 +0000 (10:15 -0700)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Thu, 17 Mar 2011 17:15:55 +0000 (10:15 -0700)
nfs3/parse-synread.py

index 10d452d..bb27240 100755 (executable)
@@ -22,15 +22,15 @@ if __name__ == '__main__':
     data.sort()
 
     duration = data[-1][0] - data[0][0]
-    print "Time span: %d to %d (%d seconds)" % (data[0][0], data[-1][0], duration)
+    #print "Time span: %d to %d (%d seconds)" % (data[0][0], data[-1][0], duration)
 
     start = data[0][0] + 5
     end = data[-1][0] - 5
     truncated = [d for d in data if start <= d[0] <= end]
-    print len(data), len(truncated)
+    #print len(data), len(truncated)
     duration = float(end - start + 1)
-    print duration
-    print "# ops/sec\tbandwidth (MB/s)\tLatency(ms)"
+    #print duration
+    #print "# ops/sec\tbandwidth (MB/s)\tLatency(ms)"
     print "%s\t%s\t%s" % (len(truncated) / duration,
                           len(truncated) / duration * blocksize / 1024.0**2,
                           sum(d[1] for d in truncated) / len(truncated) / 1000)