From 05844fe26f931ffab5f4b320d7554589c3a41618 Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Thu, 17 Mar 2011 10:15:55 -0700 Subject: [PATCH] Updates to synthetic read data processing script --- nfs3/parse-synread.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) -- 2.20.1