A few more Azure/analysis updates.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Tue, 4 May 2010 04:46:50 +0000 (21:46 -0700)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Tue, 4 May 2010 04:46:50 +0000 (21:46 -0700)
azure/azure.py
parsetrace/analyze-tcp.py

index 584b22b..0d19ed4 100755 (executable)
@@ -90,15 +90,16 @@ class Connection:
         response = self.conn.getresponse()
         print "Response:", response.status
         print "Headers:", response.getheaders()
-        print "Body:", response.read()
+        body = response.read()
 
 if __name__ == '__main__':
     # generate_request("/?comp=list")
-    buf = 'A' * 8192
+    buf = 'A' * 1048576
     conn = Connection()
     for i in range(16):
-        conn.make_request('/benchmark/file-' + str(i), 'PUT', buf,
+        conn.make_request('/benchmark/file-1M-' + str(i), 'PUT', buf,
                           {'x-ms-blob-type': 'BlockBlob'})
 
+    conn = Connection()
     for i in range(16):
-        conn.make_request('/benchmark/file-' + str(i), 'GET')
+        conn.make_request('/benchmark/file-1M-' + str(i), 'GET')
index 54b32dc..47a3d7b 100755 (executable)
@@ -127,7 +127,7 @@ def analyze_get(packets):
             print "Short gap of", p.ts - last_ts
         if gap:
             print "    [occurred after", p.seq[0] - start_seq, "bytes, time", p.ts, "sec]"
-        if p.datalen < 1460:
+        if p.datalen not in (1448, 1460):
             print "Short packet of", p.datalen, "bytes, brings total to", p.seq[1] - start_seq
         last_ts = p.ts
         id_in = p.id