summaryrefslogtreecommitdiff
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 01:00:37 +0000
commitffd52f9191c2b157849d36268d022943ced62ca3 (patch)
treec0a2889a3534a5d80e15cca163a9a3facb66ed04
parentac61ab5c094e159bddc40af74f09bae395bdd8c9 (diff)
downloadmongo-ffd52f9191c2b157849d36268d022943ced62ca3.tar.gz
SERVER-51757 Collect /proc/vmstat numa_pages_migrated statistics in FTDCr4.2.11-rc0
(cherry picked from commit 8f7085e65c15f07658fb43bb26a2b4d444657160)
-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 419edbdb878..7eff87c4d73 100644
--- a/src/mongo/db/ftdc/ftdc_system_stats_linux.cpp
+++ b/src/mongo/db/ftdc/ftdc_system_stats_linux.cpp
@@ -78,6 +78,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 ef9294acf80..83b3699b9b5 100644
--- a/src/mongo/util/procparser_test.cpp
+++ b/src/mongo/util/procparser_test.cpp
@@ -696,6 +696,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,