On Sun, Sep 11, 2011 at 10:22:04AM +0300, Dan Kenigsberg wrote:
On Sat, Sep 10, 2011 at 11:03:56AM -0500, Adam Litke wrote:
outOfProcess.py is initializing a global ProcessPool at module import which is causing the unwanted threads. In order to prevent this, I believe we need to either clean up this mess of cross-dependencies or require that users of outOfProcess call a global processPoolInit() function if the ProcessPool is needed. I pulled in an awful lot of code in an effort to load two integer constants :)
Yes, this has become more painful with
commit 1c487d9007a7235404bcb467daf71d335bbbc26a Author: Saggi Mizrahi smizrahi@redhat.com Date: Mon Jul 25 16:18:36 2011 +0300
BZ#725967 - one process pool to rule them all Instead of having a process pool per domain use one pool but limit the amount of workers a domain can hold at any given time.
that creates gazillion processes on startup. Unfortunately, this is not the worst effect of this patch; in many senses master is currently broken. Hopefully https://fedorahosted.org/pipermail/vdsm-patches/2011-September/001768.html would fix it soon.
Excellent, thanks Dan.