[issue30581] os.cpu_count() returns wrong number of processors on system with > 64 logical processors

Chris Wilcox report at bugs.python.org
Sat Jul 29 13:15:27 EDT 2017


Chris Wilcox added the comment:

I was reviewing the docs for the os module and cpu_count should always return the number of cpus on the system, not the usable CPUs. GetMaximumProcessorCount returns a simulated count in WoW64. I have reached back out to the Windows API dev and will see if GetLogicalProcessorInformationEx will allow us to do this. He had thought that my solution that way had other limitations under WoW64.

----------

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


More information about the Python-bugs-list mailing list