[SERVER-79575] Fix numa node counting Created: 01/Aug/23  Updated: 28/Nov/23  Resolved: 28/Nov/23

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

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Niaz Pavel
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Server Security
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2023-11-13, Security 2023-11-27, Security 2023-12-11
Participants:

 Description   

There is an off-by-one bug where on a two node numa system, we count it as 3 nodes.

This code should be `return i - 1`;

https://github.com/mongodb/mongo/blob/217c5457fac/src/mongo/util/processinfo_linux.cpp#L783-L787

 



 Comments   
Comment by Githook User [ 20/Nov/23 ]

Author:

{'name': 'Niaz Pavel', 'email': 'niaz.pavel@mongodb.com', 'username': 'niazpavelatmongo'}

Message: SERVER-79575 Fix numa node counting.
Branch: master
https://github.com/mongodb/mongo/commit/fdb92a7e366da273ca8bdd544cd86006a407b7b4

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