]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: log lru stats during trim
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 13 Oct 2022 19:51:06 +0000 (15:51 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 29 Nov 2023 13:36:21 +0000 (08:36 -0500)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit a1ca8e8b9ab280fd0bdb36a1c3a42ea82dfeaea6)

src/mds/MDCache.cc

index 60858e65c1f7524fb31f0f70e69d04ee4f35f649..111930dc2334b0de1737eef9a7fd45a9ea67147d 100644 (file)
@@ -6784,6 +6784,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) {
@@ -6804,6 +6811,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)) {