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 {
379
379
MONITOR_SRV_MEM_VALIDATE_MICROSECOND ,
380
380
MONITOR_SRV_PURGE_MICROSECOND ,
381
381
MONITOR_SRV_DICT_LRU_MICROSECOND ,
382
+ MONITOR_SRV_DICT_LRU_EVICT_COUNT ,
382
383
MONITOR_SRV_CHECKPOINT_MICROSECOND ,
383
384
MONITOR_OVLD_SRV_DBLWR_WRITES ,
384
385
MONITOR_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[] =
1196
1196
MONITOR_NONE,
1197
1197
MONITOR_DEFAULT_START, MONITOR_SRV_DICT_LRU_MICROSECOND},
1198
1198
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
+
1199
1204
{" innodb_checkpoint_usec" , " server" ,
1200
1205
" Time (in microseconds) spent by master thread to do checkpoint" ,
1201
1206
MONITOR_NONE,
Original file line number Diff line number Diff line change @@ -2881,6 +2881,7 @@ srv_master_do_active_tasks(void)
2881
2881
{
2882
2882
ib_time_t cur_time = ut_time ();
2883
2883
ullint counter_time = ut_time_us (NULL );
2884
+ ulint n_evicted = 0 ;
2884
2885
2885
2886
/* First do the tasks that we are suppose to do at each
2886
2887
invocation of this function. */
@@ -2941,7 +2942,9 @@ srv_master_do_active_tasks(void)
2941
2942
2942
2943
if (cur_time % SRV_MASTER_DICT_LRU_INTERVAL == 0 ) {
2943
2944
srv_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);
2945
2948
MONITOR_INC_TIME_IN_MICRO_SECS (
2946
2949
MONITOR_SRV_DICT_LRU_MICROSECOND, counter_time);
2947
2950
}
You can’t perform that action at this time.
0 commit comments