From: Michael Vrable Date: Thu, 17 Mar 2011 17:15:55 +0000 (-0700) Subject: Updates to synthetic read data processing script X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=05844fe26f931ffab5f4b320d7554589c3a41618;p=bluesky.git Updates to synthetic read data processing script --- diff --git a/nfs3/parse-synread.py b/nfs3/parse-synread.py index 10d452d..bb27240 100755 --- a/nfs3/parse-synread.py +++ b/nfs3/parse-synread.py @@ -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)