[Twisted-Python] Twisted Web server (and possibly other applications) slow performance with many connections

Jp Calderone exarkun at intarweb.us
Wed Dec 17 00:41:51 EST 2003


On Wed, Dec 17, 2003 at 06:26:09AM +0100, Michal Pasternak wrote:
> Hi,
> 
> I'm testing a bit the performance of Twisted Web, using puf(1) downloader
> and loopback interface. Puf is something like wget(1), only it can do many
> simultaneous connections. When the maximum connection no. is small (1 - 40
> connections at once), Twisted Web works very good, providing a reasonable
> page generation time (thus, data transfer rate) and eating my CPU. 
> 
> But if I raise the simultaneous connection number to something above 40,
> data transfer rate and CPU usage fall.
> 
> Is it intended behaviour?

  Yes.  Twisted was specifically designed to scale poorly with smallish
numbers of concurrent connections.

> I don't think I'll ever have to program a site, which has to serve more,
> than 40 connections at once, but in case this happens, I'd like to know.
> 
> Regards,
> -- 
> Michal Pasternak :: http://pasternak.w.lub.pl :: http://winsrc.sf.net
> 
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20031217/2b0c55b8/attachment.pgp 


More information about the Twisted-Python mailing list