➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 robbuckley
收信人 paul.moore, robbuckley, steve.dower, tim.golden, zach.ware
日期 2017-06-06.12:49:39
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1496753379.54.0.823104830335.issue30581@psf.upfronthosting.co.za>
In-reply-to
内容
os.cpu_count() seems to report incorrect values on windows systems with >64 logical processors

tried it on 2 similar systems, both running windows 7 / 10 with python 3.6.1 64bit (anaconda):

platform1 - 2x Xeon E5-2698v4. 20 cores/CPU = total 80 logical cpus with hyperthreading
platform2 - 2x Xeon E5-2697v3. 14 cores/CPU = total 56 logical cpus with hyperthreading

os.cpu_count() reports 40 cores on platform1 and 56 on platform2

I would expect 80 and 56 respectively. 

I suppose this is because the windows api call used is not aware of processor groups, and reports only the number of processors in the current processor group ( eg GetSystemInfo vs GetMaximumProcessorCount )
历史
日期 用户 动作 参数
2017-06-06 12:49:39robbuckley修改recipients: + robbuckley, paul.moore, tim.golden, zach.ware, steve.dower
2017-06-06 12:49:39robbuckley修改messageid: <1496753379.54.0.823104830335.issue30581@psf.upfronthosting.co.za>
2017-06-06 12:49:39robbuckley链接issue30581 messages
2017-06-06 12:49:39robbuckley创建