summaryrefslogtreecommitdiff
path: root/src/mongo/util/processinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/processinfo.h')
-rw-r--r--src/mongo/util/processinfo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/util/processinfo.h b/src/mongo/util/processinfo.h
index d415bf2eea7..18f6956d9b7 100644
--- a/src/mongo/util/processinfo.h
+++ b/src/mongo/util/processinfo.h
@@ -126,6 +126,13 @@ namespace mongo {
static bool blockInMemory(const void* start);
/**
+ * Returns a positive floating point number between 0.0 and 1.0 to inform MMapV1 how much it
+ * must remap pages to bring the system page file implementation back below a certain
+ * threshold. A number of 1.0 means remap everything.
+ */
+ static double getSystemMemoryPressurePercentage();
+
+ /**
* @return a pointer aligned to the start of the page the provided pointer belongs to.
*
* NOTE requires blockCheckSupported() == true