[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: |
|
||||||||
| 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: |