Message295255
On Windows, os.cpu_count() is currently implemented with:
"GetSystemInfo(&sysinfo); return sysinfo.dwNumberOfProcessors;"
https://msdn.microsoft.com/en-us/library/windows/desktop/ms724958(v=vs.85).aspx
It seems to return the number of *logical* CPUs:
"""
dwNumberOfProcessors
The number of logical processors in the current group.
Note: For information about the physical processors shared by logical processors, call GetLogicalProcessorInformationEx with the RelationshipType parameter set to RelationProcessorPackage (3).
"""
It seems like you have two physical CPU packages. Maybe the function only returns infos from the first package? |
|
Date |
User |
Action |
Args |
2017-06-06 12:53:23 | vstinner | set | recipients:
+ vstinner, paul.moore, tim.golden, zach.ware, steve.dower, robbuckley |
2017-06-06 12:53:23 | vstinner | set | messageid: <1496753603.09.0.0109750133525.issue30581@psf.upfronthosting.co.za> |
2017-06-06 12:53:23 | vstinner | link | issue30581 messages |
2017-06-06 12:53:23 | vstinner | create | |
|