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 @@ -378,6 +378,7 @@ enum monitor_id_t {
378
378
MONITOR_SRV_MEM_VALIDATE_MICROSECOND ,
379
379
MONITOR_SRV_PURGE_MICROSECOND ,
380
380
MONITOR_SRV_DICT_LRU_MICROSECOND ,
381
+ MONITOR_SRV_DICT_LRU_EVICT_COUNT ,
381
382
MONITOR_SRV_CHECKPOINT_MICROSECOND ,
382
383
MONITOR_OVLD_SRV_DBLWR_WRITES ,
383
384
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 @@ -2274,6 +2274,7 @@ srv_master_do_active_tasks(void)
2274
2274
{
2275
2275
ib_time_t cur_time = ut_time ();
2276
2276
ullint counter_time = ut_time_us (NULL );
2277
+ ulint n_evicted = 0 ;
2277
2278
2278
2279
/* First do the tasks that we are suppose to do at each
2279
2280
invocation of this function. */
@@ -2334,7 +2335,9 @@ srv_master_do_active_tasks(void)
2334
2335
2335
2336
if (cur_time % SRV_MASTER_DICT_LRU_INTERVAL == 0 ) {
2336
2337
srv_main_thread_op_info = " enforcing dict cache limit" ;
2337
- srv_master_evict_from_table_cache (50 );
2338
+ n_evicted = srv_master_evict_from_table_cache (50 );
2339
+ MONITOR_INC_VALUE (
2340
+ MONITOR_SRV_DICT_LRU_EVICT_COUNT, n_evicted);
2338
2341
MONITOR_INC_TIME_IN_MICRO_SECS (
2339
2342
MONITOR_SRV_DICT_LRU_MICROSECOND, counter_time);
2340
2343
}
You can’t perform that action at this time.
0 commit comments