Author Satrajit Ghosh
Recipients Satrajit Ghosh
Date 2016-04-05.00:46:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1459817171.82.0.158211239936.issue26692@psf.upfronthosting.co.za>
In-reply-to
Content
multiprocessing cpucount returns the number of cpus on the system as returned by /proc/cpuinfo. 

this is true even on machines where linux kernel cgroups is being used to restrict cpu usage for a given process. this results in significant thread swithcing on systems with many cores. 

some ideas have been implemented in the following repos to handle cgroups:

https://github.com/peo3/cgroup-utils
http://cpachecker.googlecode.com/svn-history/r12889/trunk/scripts/benchmark/runexecutor.py

it would be nice if multiprocessing was a little more intelligent and queried process characteristics.
History
Date User Action Args
2016-04-05 00:46:11Satrajit Ghoshsetrecipients: + Satrajit Ghosh
2016-04-05 00:46:11Satrajit Ghoshsetmessageid: <1459817171.82.0.158211239936.issue26692@psf.upfronthosting.co.za>
2016-04-05 00:46:11Satrajit Ghoshlinkissue26692 messages
2016-04-05 00:46:09Satrajit Ghoshcreate