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

Michal Pasternak michal at pasternak.w.lub.pl
Wed Dec 17 00:26:09 EST 2003


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? 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.

Michal Pasternak :: http://pasternak.w.lub.pl :: http://winsrc.sf.net

More information about the Twisted-Python mailing list