[SERVER-22398] Add SystemInfo::numAvailableCores Created: 01/Feb/16  Updated: 26/Apr/19  Resolved: 29/Feb/16

Status: Closed
Project: Core Server
Component/s: Portability
Affects Version/s: 3.3.1
Fix Version/s: 3.3.3

Type: Improvement Priority: Major - P3
Reporter: Mira Carey Assignee: Waley Chen
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-40506 ftdc (hostInfo.num_cores,systemMetric... Closed
Backwards Compatibility: Fully Compatible
Sprint: Platforms 10 (02/19/16), Platforms 11 (03/11/16)
Participants:

 Description   

SystemInfo::numCores is less useful than might be desired, because many forms of process management can limit access to a subset of total cores. This causes us to scale certain internal subsystems at suboptimal levels by assuming more processing than we actually have available.

It would useful to have a new value available, perhaps numAvailableCores, which would return a num <= ::numCores.

Consider the implementation of gnu nproc and investigate if a portable solution exists.



 Comments   
Comment by Githook User [ 26/Feb/16 ]

Author:

{u'username': u'WaleyChen', u'name': u'Waley Chen', u'email': u'waleycz@gmail.com'}

Message: SERVER-22398 Add SystemInfo::numAvailableCores
Branch: master
https://github.com/mongodb/mongo/commit/7f7a64a1d6ef791d3b111245301d73902e9e4875

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