From af4cac5ec7bab4e5bf8936cd685f6ee8dcb38127 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Thu, 21 Nov 2019 10:09:39 -0800 Subject: [PATCH] mds: release free heap pages after trim MDS free heap space can grow to large for some workloads (like smallfile and recursive deletes). This can cause the MDS mapped memory to grow well beyond memory targets. When we finally use the PriorityCache in the MDS, this will not be necessary anymore as the PriorityCache already does this. Fixes: https://tracker.ceph.com/issues/42938 Signed-off-by: Patrick Donnelly --- src/common/options.cc | 8 +++++++- src/mds/MDCache.cc | 19 +++++++++++++++---- src/mds/MDCache.h | 1 + 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index c5cad0169cfa..7f65b8bd048d 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -7455,7 +7455,13 @@ std::vector