Message295255
| Author |
vstinner |
| Recipients |
paul.moore, robbuckley, steve.dower, tim.golden, vstinner, zach.ware |
| Date |
2017年06月06日.12:53:23 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1496753603.09.0.0109750133525.issue30581@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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? |
|