[Twisted-Python] Best strategies for pb Referenceables running long methods from callRemote

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Sat Mar 19 11:42:03 EDT 2011

On 02:06 am, charlessolar at gmail.com wrote:
>Thanks for the reply.  I am using twisted conch to connect to the 
>machines and start these tests, I am thinking that instead of using one
>connection for all testing I will open a new connection (and thus a new
>python) for each test.

I'm not sure I follow.  In your earlier message you were talking about 
PB and deferToThread.  How does this fit with your Conch usage?  You're 
not using Conch in the function passed to deferToThread, are you?

>Like I said increasing the thread pool size worked
>well for fast machines but no so well on older ones.  I am hoping that 
>behavior has more to do with the GIL and that 5 processes on a slow 
>will operate better than 5 python threads.
>If not, then I will just have to write some sort of system to make sure 
>dont open too many threads on certain remote machines.
>Thanks again

More information about the Twisted-Python mailing list