[SERVER-31092] ProcessInfo::getNumAvailableCores() only returns up to 32 on Windows Created: 14/Sep/17  Updated: 30/Oct/23  Resolved: 18/Sep/17

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 3.6.0-rc0

Type: Bug Priority: Minor - P4
Reporter: Henrik Edin Assignee: Henrik Edin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 2017-10-02
Participants:

 Description   

We're only checking the first 32bits of the result of GetProcessAffinityMask. If we want to be able to detect more than 64 logical processors, we need to use a different API, GetLogicalProcessorInformationEx I believe.



 Comments   
Comment by Githook User [ 18/Sep/17 ]

Author:

{'username': 'henrikedin', 'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com'}

Message: SERVER-31092 Fix getNumAvailableCores() on Windows to be able to return more than 32 cores.
Branch: master
https://github.com/mongodb/mongo/commit/5be92f19e87b9dc06c5ebde9ebe9f19538f1af84

Generated at Thu Feb 08 04:25:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.