From 4b72cc60ebce4bd43eccb00f883411e85b0e3704 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Wed, 7 Aug 2019 10:35:02 -0700 Subject: [PATCH] mds: trim cache on regular schedule Do this outside the standard tick interval as it needs to be driven more frequently to keep up with client workloads that generate a lot of capabilities. Fixes: https://tracker.ceph.com/issues/41141 Fixes: https://tracker.ceph.com/issues/41140 Signed-off-by: Patrick Donnelly --- src/common/options.cc | 4 ++++ src/mds/MDCache.cc | 37 +++++++++++++++++++++++++++++++++++++ src/mds/MDCache.h | 9 +++++++++ src/mds/MDSRank.cc | 8 +------- src/mds/MDSRank.h | 4 ++++ 5 files changed, 55 insertions(+), 7 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index a819ed38335..c90b3296c56 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -7682,6 +7682,10 @@ std::vector