[Twisted-Python] network server on multiprocessor hardware

Bokhan Artem art at academ.org
Sat Sep 5 08:07:24 MDT 2009


Laurens Van Houtven пишет:
> Are you sure it's dying out because of CPU limitations? 

Yes, with 1k req/s cpu is 100% busy with python.

> Can you show any real applications where this happens? 

I do not have real application in python/twisted now.
That could be any internet server with high load or under dos.

> In my experience your network IO always gives up ages before my processors croak :-)

It depends.

> 
> I happen to be in the middle of writing a project with a big
> computational component (at least when I'm not hacking away at
> twisted.positioning), and generally the heavy computational stuff
> doesn't live in the Twisted layer. 

I do not have any heavy computations, just high request rate.

In that case you probably want to
> defer computation to a different process, a la Ampoule.
> 
> 
> have fun,
> Laurens
> 
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python





More information about the Twisted-Python mailing list