[New-bugs-announce] [issue17444] multiprocessing.cpu_count() should use hw.availcpu on Mac OS X

John Szakmeister report at bugs.python.org
Sun Mar 17 12:16:10 CET 2013


New submission from John Szakmeister:

While trying to test a fix for Nose, I discovered that multiprocessing is picking up the CPU count incorrectly.  It should be using hw.availcpu instead of hw.ncpu.  The latter is the number of cpus installed in the system, but the former is the number that are available for processing.  The processor pane let's you adjust the available CPUs, which is handy for testing and troubleshooting.

----------
components: Library (Lib)
files: use-availcpu.patch
keywords: patch
messages: 184367
nosy: jszakmeister
priority: normal
severity: normal
status: open
type: behavior
Added file: http://bugs.python.org/file29430/use-availcpu.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17444>
_______________________________________


More information about the New-bugs-announce mailing list