[MERGE] Add timing to debug information for -Dhpss
John Arbash Meinel
john at arbash-meinel.com
Tue Jul 31 19:21:21 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
This is just a simple patch to add timing information to hpss calls.
Basically, the call log looks something like:
hpss call: ('get', '...ot0lstk2590yqhzr-1.kndx')
hpss result: 0.006s ('ok',)
hpss call w/body: ('append', '...ot0lstk2590yqhzr-1.knit', '')
('\x1f\x8b\x08\x00\x00\x00\x00\x00\x02\xff\xd5S\xd1j\xc3 \x14}\xcfW'...)
hpss write time: 0.001s
hpss result: 0.005s ('appended', '23941')
For operations which only read information ('get', 'hello', etc) it only
reports the total time from starting the request until it is finished.
For operations which send data ('append', 'put') it splits out the time it
takes to write the data to the socket, from the time we get a response back.
This helped me debug the fact that hpss was a lot slower than sftp simply
because bzr is being spawned on the remote end (the initial 'hello' can take as
long as 1.5s, subsequent 'hello' only takes 2ms).
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGr32gJdeBCYSNAAMRAqowAJ4xVqJqngs5BsiPosukuUd10We95QCguZeU
evEkgX3bJXMZy9UMe4g6Ww4=
=wuD5
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: hpss_debug_timing.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20070731/5ee74be0/attachment-0001.diff
More information about the bazaar
mailing list