@@ -190,6 +190,14 @@ void Server::create_logger()
190190 PerfCountersBuilder::PRIO_INTERESTING);
191191 plb.add_u64_counter (l_mdss_cap_revoke_eviction, " cap_revoke_eviction" ,
192192 " Cap Revoke Client Eviction" , " cre" , PerfCountersBuilder::PRIO_INTERESTING);
193+ plb.add_u64_counter (l_mdss_cache_trim_throttle, " cache_trim_throttle" ,
194+ " Cache trim throttle counter" , " ctt" , PerfCountersBuilder::PRIO_INTERESTING);
195+ plb.add_u64_counter (l_mdss_session_recall_throttle, " session_recall_throttle" ,
196+ " Session recall throttle counter" , " srt" , PerfCountersBuilder::PRIO_INTERESTING);
197+ plb.add_u64_counter (l_mdss_session_recall_throttle2o, " session_recall_throttle2o" ,
198+ " Session recall throttle2o counter" , " srt2" , PerfCountersBuilder::PRIO_INTERESTING);
199+ plb.add_u64_counter (l_mdss_global_recall_throttle, " global_recall_throttle" ,
200+ " Global recall throttle counter" , " grt" , PerfCountersBuilder::PRIO_INTERESTING);
193201 plb.add_u64_counter (l_mdss_cap_acquisition_throttle,
194202 " cap_acquisition_throttle" , " Cap acquisition throttle counter" , " cat" ,
195203 PerfCountersBuilder::PRIO_INTERESTING);
@@ -1992,14 +2000,23 @@ std::pair<bool, uint64_t> Server::recall_client_state(MDSGatherBuilder* gather,
19922000 const uint64_t global_recall_throttle = recall_throttle.get ();
19932001 if (session_recall_throttle+recall > recall_max_decay_threshold) {
19942002 dout (15 ) << " session recall threshold (" << recall_max_decay_threshold << " ) hit at " << session_recall_throttle << " ; skipping!" << dendl;
2003+ if (logger) {
2004+ logger->inc (l_mdss_session_recall_throttle);
2005+ }
19952006 throttled = true ;
19962007 continue ;
19972008 } else if (session_recall_throttle2o+recall > recall_max_caps*2 ) {
19982009 dout (15 ) << " session recall 2nd-order threshold (" << 2 *recall_max_caps << " ) hit at " << session_recall_throttle2o << " ; skipping!" << dendl;
2010+ if (logger) {
2011+ logger->inc (l_mdss_session_recall_throttle2o);
2012+ }
19992013 throttled = true ;
20002014 continue ;
20012015 } else if (global_recall_throttle+recall > recall_global_max_decay_threshold) {
20022016 dout (15 ) << " global recall threshold (" << recall_global_max_decay_threshold << " ) hit at " << global_recall_throttle << " ; skipping!" << dendl;
2017+ if (logger) {
2018+ logger->inc (l_mdss_global_recall_throttle);
2019+ }
20032020 throttled = true ;
20042021 break ;
20052022 }
0 commit comments