diff options
| author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-11 15:07:35 -0300 |
|---|---|---|
| committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-11 15:07:35 -0300 |
| commit | 4cb8841196d0625dfa3825aa326f071cd27c7b8b (patch) | |
| tree | 1682a647d4463397c119183369ae6f750d5fdcff /src/mongo/util/processinfo_osx.cpp | |
| parent | aa03c6362cbaa767638e6eed9b031d86dd2643d1 (diff) | |
| parent | 8f0827553e09872941945a093b647a4211a9db7f (diff) | |
Update upstream source from tag 'upstream/6.0.0'master
Update to upstream version '6.0.0'
with Debian dir 5604a80ec1c96ca76f25f40d78e6ef855abec322
Diffstat (limited to 'src/mongo/util/processinfo_osx.cpp')
| -rw-r--r-- | src/mongo/util/processinfo_osx.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mongo/util/processinfo_osx.cpp b/src/mongo/util/processinfo_osx.cpp index 0cd0cbb4cf6..cb42b570513 100644 --- a/src/mongo/util/processinfo_osx.cpp +++ b/src/mongo/util/processinfo_osx.cpp @@ -182,11 +182,9 @@ void ProcessInfo::SystemInfo::collectSystemInfo() { memSize = getSysctlByName<NumberVal>("hw.memsize"); memLimit = memSize; numCores = getSysctlByName<NumberVal>("hw.ncpu"); // includes hyperthreading cores - numPhysicalCores = getSysctlByName<NumberVal>("machdep.cpu.core_count"); - numCpuSockets = getSysctlByName<NumberVal>("hw.packages"); pageSize = static_cast<unsigned long long>(sysconf(_SC_PAGESIZE)); cpuArch = getSysctlByName<std::string>("hw.machine"); - hasNuma = false; + hasNuma = checkNumaEnabled(); BSONObjBuilder bExtra; bExtra.append("versionString", getSysctlByName<std::string>("kern.version")); @@ -196,6 +194,8 @@ void ProcessInfo::SystemInfo::collectSystemInfo() { "nfsAsync", static_cast<int>(getSysctlByName<NumberVal>("vfs.generic.nfs.client.allow_async"))); bExtra.append("model", getSysctlByName<std::string>("hw.model")); + bExtra.append("physicalCores", + static_cast<int>(getSysctlByName<NumberVal>("machdep.cpu.core_count"))); bExtra.append( "cpuFrequencyMHz", static_cast<int>((getSysctlByName<NumberVal>("hw.cpufrequency") / (1000 * 1000)))); @@ -206,4 +206,8 @@ void ProcessInfo::SystemInfo::collectSystemInfo() { _extraStats = bExtra.obj(); } +bool ProcessInfo::checkNumaEnabled() { + return false; +} + } // namespace mongo |
