diff options
author | Matt Lord <mattalord@gmail.com> | 2019-03-07 10:58:22 -0500 |
---|---|---|
committer | Matt Lord <mattalord@gmail.com> | 2019-03-08 12:38:32 -0500 |
commit | fafe4d03edd877e4c022cb3dd714ab1ea6ae4fcd (patch) | |
tree | 4182aee10da7ca608d601e5ddefc35b003e87bf9 /src/mongo/util/processinfo_solaris.cpp | |
parent | 53ac5d900c2f4352565ae2896e4b8d9ae6fe29be (diff) | |
download | mongo-fafe4d03edd877e4c022cb3dd714ab1ea6ae4fcd.tar.gz |
SERVER-16571 Use Actual Memory Constraint vs. Total System Memory When They Differ
Diffstat (limited to 'src/mongo/util/processinfo_solaris.cpp')
-rw-r--r-- | src/mongo/util/processinfo_solaris.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/util/processinfo_solaris.cpp b/src/mongo/util/processinfo_solaris.cpp index 2c1132e20c6..3a75aeb6f92 100644 --- a/src/mongo/util/processinfo_solaris.cpp +++ b/src/mongo/util/processinfo_solaris.cpp @@ -159,6 +159,7 @@ void ProcessInfo::SystemInfo::collectSystemInfo() { osVersion = unameData.version; pageSize = static_cast<unsigned long long>(sysconf(_SC_PAGESIZE)); memSize = pageSize * static_cast<unsigned long long>(sysconf(_SC_PHYS_PAGES)); + memLimit = memSize; numCores = static_cast<unsigned>(sysconf(_SC_NPROCESSORS_CONF)); cpuArch = unameData.machine; hasNuma = checkNumaEnabled(); |