summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2020-10-22 14:24:02 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-11-04 00:57:03 +0000
commite58f0f345e0cd5e3311f31b215cfd90297796276 (patch)
treeffdabe8a7e99662c02cee679be3d716e87a60224 /src
parent592daad1b7f5038c86fa6979efa4c4a1fe07eae4 (diff)
downloadmongo-e58f0f345e0cd5e3311f31b215cfd90297796276.tar.gz
SERVER-51757 Collect /proc/vmstat numa_pages_migrated statistics in FTDC
(cherry picked from commit 8f7085e65c15f07658fb43bb26a2b4d444657160)
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/ftdc/ftdc_system_stats_linux.cpp1
-rw-r--r--src/mongo/util/procparser_test.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/ftdc/ftdc_system_stats_linux.cpp b/src/mongo/db/ftdc/ftdc_system_stats_linux.cpp
index 70ab7d0c240..23f6ff18c6d 100644
--- a/src/mongo/db/ftdc/ftdc_system_stats_linux.cpp
+++ b/src/mongo/db/ftdc/ftdc_system_stats_linux.cpp
@@ -76,6 +76,7 @@ static const std::vector<StringData> kVMKeys{
"balloon_deflate"_sd,
"balloon_inflate"_sd,
"nr_mlock"_sd,
+ "numa_pages_migrated"_sd,
"pgfault"_sd,
"pgmajfault"_sd,
"pswpin"_sd,
diff --git a/src/mongo/util/procparser_test.cpp b/src/mongo/util/procparser_test.cpp
index d047cc4ab2b..58919fccbb3 100644
--- a/src/mongo/util/procparser_test.cpp
+++ b/src/mongo/util/procparser_test.cpp
@@ -687,6 +687,8 @@ TEST(FTDCProcVMStat, TestLocalVMStat) {
"balloon_deflate"_sd,
"balloon_inflate"_sd,
"nr_mlock"_sd,
+ "numa_pages_migrated"_sd, // Not on RHEL 6, added with
+ // https://github.com/torvalds/linux/commit/03c5a6e16322c
"pgfault"_sd,
"pgmajfault"_sd,
"pswpin"_sd,