> On 24 Jul, 2006, at 12:46, Lisa Dusseault wrote: >> I wanted to take a look at the performance of sharing. I started from >> "the bottom", looking at TCP and SSL connection characteristics before >> looking at WebDAV usage patterns or performance within either the >> client or server codebase. Since I had a May 21 version of Chandler >> handy I used it from home, talking to cosmo-demo, and some random data >> (22 events). I captured the Chandler "Publish" interaction only.
Thanks for the analysis, Lisa (and ekr). I have not optimized our SSL *at all*, so there are certainly places where it could be better. A couple that immediately come in mind: * Reuse the SSL context whenever possible. In normal usage we only ever need one context, yet currently we create a new one for every connection. AFAIK this adds a fraction of a second overhead to each connection (this might not visible in the network trace, but this would be pretty easy to do, mostly just have to make sure that the SSL code monitors if certificates change). * Reuse the SSL connections. This is a bit harder, and something that could result in security bugs if done wrong. It is also possible this could uncover M2Crypto bugs since I haven't done this before (although there is code that should support this, but I bet it has mostly been used by M2Crypto based servers). * It is also possible there are bugs in the Twisted+M2Crypto+Chandler integration. My suggestion on how to go forward, though, would be to analyze an unencrypted connection. In my performance test comparisons between cosmo-demo (over SSL) and qacosmo (unencrypted) I could not detect significant differences (of course, these are different machines so it is not a straight comparison). I would actually be surprised if most of our sharing performance problems came from the use of SSL. -- Heikki Toivonen
signature.asc
Description: OpenPGP digital signature
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Open Source Applications Foundation "chandler-dev" mailing list http://lists.osafoundation.org/mailman/listinfo/chandler-dev
