[SERVER-33643] Add convenience function to get num cpu cores in benchmarks Created: 02/Mar/18  Updated: 29/Oct/23  Resolved: 15/Mar/18

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: 3.7.2
Fix Version/s: 3.6.5, 3.7.4

Type: Improvement Priority: Major - P3
Reporter: Robert Guo (Inactive) Assignee: Robert Guo (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.6
Sprint: TIG 2018-03-12, TIG 2018-03-26
Participants:

 Description   

Write a thin wrapper function around ProcessInfo::getNumAvailableCores() (and ProcessInfo::getNumCores() if needed) that can be invoked as part of the benchmark registration process, before any MONGO_INITIALIZER has run.



 Comments   
Comment by Githook User [ 26/Apr/18 ]

Author:

{'email': 'robert.guo@10gen.com', 'username': 'guoyr', 'name': 'Robert Guo'}

Message: SERVER-33643 refactor processInfo to no longer depend on global
initialization.

(cherry picked from commit ebcfc62197744ffe0bb77a404a8e210c2100de31)
Branch: v3.6
https://github.com/mongodb/mongo/commit/3b2bab6d50f69010004dfc8d2630e147d0e9602a

Comment by Githook User [ 26/Apr/18 ]

Author:

{'email': 'robert.guo@10gen.com', 'username': 'guoyr', 'name': 'Robert Guo'}

Message: SERVER-33643 call initializeSystemInfo directly as a temporary workaround

(cherry picked from commit 0c4b2aa326448d7de0ba3a01c62e1a4a5d6b0851)
Branch: v3.6
https://github.com/mongodb/mongo/commit/5ff3069208c6c6c437a4567a851ad92ce31a8cc5

Comment by Githook User [ 15/Mar/18 ]

Author:

{'email': 'robert.guo@10gen.com', 'name': 'Robert Guo', 'username': 'guoyr'}

Message: SERVER-33643 refactor processInfo to no longer depend on global
initialization.
Branch: master
https://github.com/mongodb/mongo/commit/ebcfc62197744ffe0bb77a404a8e210c2100de31

Comment by Githook User [ 07/Mar/18 ]

Author:

{'email': 'robert.guo@10gen.com', 'name': 'Robert Guo', 'username': 'guoyr'}

Message: SERVER-33643 call initializeSystemInfo directly as a temporary workaround
Branch: master
https://github.com/mongodb/mongo/commit/0c4b2aa326448d7de0ba3a01c62e1a4a5d6b0851

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