Author asksol
Recipients Albert.Strasheim, asksol, gdb, jnoller, vlasovskikh
Date 2010-08-27.12:16:33
SpamBayes Score 5.55112e-17
Marked as misclassified No
Message-id <1282911400.02.0.667144087357.issue9205@psf.upfronthosting.co.za>
In-reply-to
Content
> Does the problem make sense/do you have any ideas for an alternate
> solution?

Well, I still haven't given up on the trackjobs patch. I changed it to use a single queue for both the acks and the result (see new patch attached:  multiprocessing-trunk@82502-termination-trackjobs2.patch)

Been running it in production for a few days now, and it seems to work. But the tests still hangs from time to time, it seems they hang more frequent now than in the first patch (this may actually be a good thing:)

Would you like to try and identify the cause of this hang? Still haven't been able to.

I'm not sure about the overhead of using one queue per process either, but I'm usually running about 8 processes per CPU core for IO bound jobs (adding more processes after that usually doesn't affect performance in positive ways). There's also the overhead of the synchronization (ACK). Not sure if this is important performance-wise, but at least this makes it harder for me to reason about the problem.
History
Date User Action Args
2010-08-27 12:16:40asksolsetrecipients: + asksol, jnoller, vlasovskikh, gdb, Albert.Strasheim
2010-08-27 12:16:40asksolsetmessageid: <1282911400.02.0.667144087357.issue9205@psf.upfronthosting.co.za>
2010-08-27 12:16:38asksollinkissue9205 messages
2010-08-27 12:16:37asksolcreate