@@ -192,6 +192,14 @@ void Server::create_logger()
192192 PerfCountersBuilder::PRIO_INTERESTING);
193193 plb.add_u64_counter (l_mdss_cap_revoke_eviction, " cap_revoke_eviction" ,
194194 " Cap Revoke Client Eviction" , " cre" , PerfCountersBuilder::PRIO_INTERESTING);
195+ plb.add_u64_counter (l_mdss_cache_trim_throttle, " cache_trim_throttle" ,
196+ " Cache trim throttle counter" , " ctt" , PerfCountersBuilder::PRIO_INTERESTING);
197+ plb.add_u64_counter (l_mdss_session_recall_throttle, " session_recall_throttle" ,
198+ " Session recall throttle counter" , " srt" , PerfCountersBuilder::PRIO_INTERESTING);
199+ plb.add_u64_counter (l_mdss_session_recall_throttle2o, " session_recall_throttle2o" ,
200+ " Session recall throttle2o counter" , " srt2" , PerfCountersBuilder::PRIO_INTERESTING);
201+ plb.add_u64_counter (l_mdss_global_recall_throttle, " global_recall_throttle" ,
202+ " Global recall throttle counter" , " grt" , PerfCountersBuilder::PRIO_INTERESTING);
195203 plb.add_u64_counter (l_mdss_cap_acquisition_throttle,
196204 " cap_acquisition_throttle" , " Cap acquisition throttle counter" , " cat" ,
197205 PerfCountersBuilder::PRIO_INTERESTING);
@@ -2002,14 +2010,23 @@ std::pair<bool, uint64_t> Server::recall_client_state(MDSGatherBuilder* gather,
20022010 const uint64_t global_recall_throttle = recall_throttle.get ();
20032011 if (session_recall_throttle+recall > recall_max_decay_threshold) {
20042012 dout (15 ) << " session recall threshold (" << recall_max_decay_threshold << " ) hit at " << session_recall_throttle << " ; skipping!" << dendl;
2013+ if (logger) {
2014+ logger->inc (l_mdss_session_recall_throttle);
2015+ }
20052016 throttled = true ;
20062017 continue ;
20072018 } else if (session_recall_throttle2o+recall > recall_max_caps*2 ) {
20082019 dout (15 ) << " session recall 2nd-order threshold (" << 2 *recall_max_caps << " ) hit at " << session_recall_throttle2o << " ; skipping!" << dendl;
2020+ if (logger) {
2021+ logger->inc (l_mdss_session_recall_throttle2o);
2022+ }
20092023 throttled = true ;
20102024 continue ;
20112025 } else if (global_recall_throttle+recall > recall_global_max_decay_threshold) {
20122026 dout (15 ) << " global recall threshold (" << recall_global_max_decay_threshold << " ) hit at " << global_recall_throttle << " ; skipping!" << dendl;
2027+ if (logger) {
2028+ logger->inc (l_mdss_global_recall_throttle);
2029+ }
20132030 throttled = true ;
20142031 break ;
20152032 }
0 commit comments