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.

Author giampaolo.rodola
Recipients giampaolo.rodola, paul.moore, pitrou, steve.dower, tim.golden, yanirh, zach.ware
Date 2018-03-28.13:09:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The difference between os.cpu_count() and psutil.cpu_count() is because one uses GetMaximumProcessorCount() and the other dwNumberOfProcessors.

This is tracked as a bug in psutil bug tracker but it's not fixed yet:

As for Python this is where it was discussed and changed:

In summary: psutil is wrong and you should rely on os.cpu_count().
Date User Action Args
2018-03-28 13:09:05giampaolo.rodolasetrecipients: + giampaolo.rodola, paul.moore, pitrou, tim.golden, zach.ware, steve.dower, yanirh
2018-03-28 13:09:05giampaolo.rodolasetmessageid: <>
2018-03-28 13:09:05giampaolo.rodolalinkissue33166 messages
2018-03-28 13:09:05giampaolo.rodolacreate