This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Ericg
Recipients Ericg, davin, pitrou
Date 2018-02-26.20:31:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1519677070.11.0.467229070634.issue32937@psf.upfronthosting.co.za>
In-reply-to
Content
Making some further observations, when I set processes = 12, for example, I can see 12 separate python processes + 4 additional processes also created which I assume are setup for the manager and, perhaps, other purposes.

Now, what makes these 4 additional processes interesting is that for me, multiprocessing.cpu_count() returns 24. And, it is when I set processes = 20 that the python code will sometimes terminate successfully. 20 + 4 = 24...so I am using every single cpu in that situation.

However, as noted, when I set processes = 19, it will always terminate successfully. 19 + 4 < 24...there is at least one cpu not assigned any work.

Perhaps there some some kind of race condition or swapping around of data structures or something that only happens on macOS when every cpu is in use by python for this purpose.
History
Date User Action Args
2018-02-26 20:31:10Ericgsetrecipients: + Ericg, pitrou, davin
2018-02-26 20:31:10Ericgsetmessageid: <1519677070.11.0.467229070634.issue32937@psf.upfronthosting.co.za>
2018-02-26 20:31:10Ericglinkissue32937 messages
2018-02-26 20:31:10Ericgcreate