summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Donnelly <pdonnell@redhat.com>2022-10-13 21:51:06 +0200
committerPatrick Donnelly <pdonnell@redhat.com>2023-06-22 20:33:33 +0200
commita1ca8e8b9ab280fd0bdb36a1c3a42ea82dfeaea6 (patch)
tree3c40002fe9c7ec7c82b791707d08d56ca5520f8c
parentinclude: remove unused lru method (diff)
downloadceph-a1ca8e8b9ab280fd0bdb36a1c3a42ea82dfeaea6.tar.xz
ceph-a1ca8e8b9ab280fd0bdb36a1c3a42ea82dfeaea6.zip
mds: log lru stats during trim
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
-rw-r--r--src/mds/MDCache.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc
index 9d8bd04d66c..59a8f0739e2 100644
--- a/src/mds/MDCache.cc
+++ b/src/mds/MDCache.cc
@@ -6786,6 +6786,13 @@ std::pair<bool, uint64_t> MDCache::trim_lru(uint64_t count, expiremap& expiremap
<< " pinned=" << lru.lru_get_num_pinned()
<< dendl;
+ dout(20) << "bottom_lru: " << bottom_lru.lru_get_size() << " items"
+ ", " << bottom_lru.lru_get_top() << " top"
+ ", " << bottom_lru.lru_get_bot() << " bot"
+ ", " << bottom_lru.lru_get_pintail() << " pintail"
+ ", " << bottom_lru.lru_get_num_pinned() << " pinned"
+ << dendl;
+
const uint64_t trim_counter_start = trim_counter.get();
bool throttled = false;
while (1) {
@@ -6806,6 +6813,13 @@ std::pair<bool, uint64_t> MDCache::trim_lru(uint64_t count, expiremap& expiremap
}
unexpirables.clear();
+ dout(20) << "lru: " << lru.lru_get_size() << " items"
+ ", " << lru.lru_get_top() << " top"
+ ", " << lru.lru_get_bot() << " bot"
+ ", " << lru.lru_get_pintail() << " pintail"
+ ", " << lru.lru_get_num_pinned() << " pinned"
+ << dendl;
+
// trim dentries from the LRU until count is reached
// if mds is in standby_replay and skip trimming the inodes
while (!throttled && (cache_toofull() || count > 0 || is_standby_replay)) {