File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -379,6 +379,7 @@ enum monitor_id_t {
379379MONITOR_SRV_MEM_VALIDATE_MICROSECOND ,
380380MONITOR_SRV_PURGE_MICROSECOND ,
381381MONITOR_SRV_DICT_LRU_MICROSECOND ,
382+ MONITOR_SRV_DICT_LRU_EVICT_COUNT ,
382383MONITOR_SRV_CHECKPOINT_MICROSECOND ,
383384MONITOR_OVLD_SRV_DBLWR_WRITES ,
384385MONITOR_OVLD_SRV_DBLWR_PAGES_WRITTEN ,
Original file line number Diff line number Diff line change @@ -1196,6 +1196,11 @@ static monitor_info_t innodb_counter_info[] =
11961196 MONITOR_NONE,
11971197 MONITOR_DEFAULT_START, MONITOR_SRV_DICT_LRU_MICROSECOND},
11981198
1199+ {" innodb_dict_lru_count" , " server" ,
1200+ " Number of tables evicted from DICT LRU list" ,
1201+ MONITOR_NONE,
1202+ MONITOR_DEFAULT_START, MONITOR_SRV_DICT_LRU_EVICT_COUNT},
1203+
11991204{" innodb_checkpoint_usec" , " server" ,
12001205 " Time (in microseconds) spent by master thread to do checkpoint" ,
12011206 MONITOR_NONE,
Original file line number Diff line number Diff line change @@ -2881,6 +2881,7 @@ srv_master_do_active_tasks(void)
28812881{
28822882ib_time_t cur_time = ut_time ();
28832883ullint counter_time = ut_time_us (NULL );
2884+ ulint n_evicted = 0 ;
28842885
28852886/* First do the tasks that we are suppose to do at each
28862887invocation of this function. */
@@ -2941,7 +2942,9 @@ srv_master_do_active_tasks(void)
29412942
29422943if (cur_time % SRV_MASTER_DICT_LRU_INTERVAL == 0 ) {
29432944srv_main_thread_op_info = " enforcing dict cache limit" ;
2944- srv_master_evict_from_table_cache (50 );
2945+ n_evicted = srv_master_evict_from_table_cache (50 );
2946+ MONITOR_INC_VALUE (
2947+ MONITOR_SRV_DICT_LRU_EVICT_COUNT, n_evicted);
29452948MONITOR_INC_TIME_IN_MICRO_SECS (
29462949MONITOR_SRV_DICT_LRU_MICROSECOND, counter_time);
29472950}
You can’t perform that action at this time.
0 commit comments