From da45b4e7ca3a1c88c44424256c104b07710e9679 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 (cherry picked from commit af4cac5ec7bab4e5bf8936cd685f6ee8dcb38127) Conflicts: src/mds/MDCache.cc --- src/common/options.cc | 8 +++++++- src/mds/MDCache.cc | 18 +++++++++++++++--- src/mds/MDCache.h | 1 + 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index cc10924dc51..02a909e5756 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -7621,7 +7621,13 @@ std::vector