Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f66ef6a0
Commit
f66ef6a0
authored
Aug 26, 2015
by
Eric Herman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add lru evict count for the idle loop (xtradb)
parent
b7abdcf5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
storage/xtradb/include/srv0mon.h
storage/xtradb/include/srv0mon.h
+2
-1
storage/xtradb/srv/srv0mon.cc
storage/xtradb/srv/srv0mon.cc
+8
-3
storage/xtradb/srv/srv0srv.cc
storage/xtradb/srv/srv0srv.cc
+5
-2
No files found.
storage/xtradb/include/srv0mon.h
View file @
f66ef6a0
...
...
@@ -379,7 +379,8 @@ enum monitor_id_t {
MONITOR_SRV_MEM_VALIDATE_MICROSECOND
,
MONITOR_SRV_PURGE_MICROSECOND
,
MONITOR_SRV_DICT_LRU_MICROSECOND
,
MONITOR_SRV_DICT_LRU_EVICT_COUNT
,
MONITOR_SRV_DICT_LRU_EVICT_COUNT_ACTIVE
,
MONITOR_SRV_DICT_LRU_EVICT_COUNT_IDLE
,
MONITOR_SRV_CHECKPOINT_MICROSECOND
,
MONITOR_OVLD_SRV_DBLWR_WRITES
,
MONITOR_OVLD_SRV_DBLWR_PAGES_WRITTEN
,
...
...
storage/xtradb/srv/srv0mon.cc
View file @
f66ef6a0
...
...
@@ -1196,10 +1196,15 @@ static monitor_info_t innodb_counter_info[] =
MONITOR_NONE
,
MONITOR_DEFAULT_START
,
MONITOR_SRV_DICT_LRU_MICROSECOND
},
{
"innodb_dict_lru_count"
,
"server"
,
"Number of tables evicted from DICT LRU list"
,
{
"innodb_dict_lru_count
_active
"
,
"server"
,
"Number of tables evicted from DICT LRU list
in the active loop
"
,
MONITOR_NONE
,
MONITOR_DEFAULT_START
,
MONITOR_SRV_DICT_LRU_EVICT_COUNT
},
MONITOR_DEFAULT_START
,
MONITOR_SRV_DICT_LRU_EVICT_COUNT_ACTIVE
},
{
"innodb_dict_lru_count_idle"
,
"server"
,
"Number of tables evicted from DICT LRU list in the idle loop"
,
MONITOR_NONE
,
MONITOR_DEFAULT_START
,
MONITOR_SRV_DICT_LRU_EVICT_COUNT_IDLE
},
{
"innodb_checkpoint_usec"
,
"server"
,
"Time (in microseconds) spent by master thread to do checkpoint"
,
...
...
storage/xtradb/srv/srv0srv.cc
View file @
f66ef6a0
...
...
@@ -2944,7 +2944,7 @@ srv_master_do_active_tasks(void)
srv_main_thread_op_info
=
"enforcing dict cache limit"
;
n_evicted
=
srv_master_evict_from_table_cache
(
50
);
MONITOR_INC_VALUE
(
MONITOR_SRV_DICT_LRU_EVICT_COUNT
,
n_evicted
);
MONITOR_SRV_DICT_LRU_EVICT_COUNT
_ACTIVE
,
n_evicted
);
MONITOR_INC_TIME_IN_MICRO_SECS
(
MONITOR_SRV_DICT_LRU_MICROSECOND
,
counter_time
);
}
...
...
@@ -2976,6 +2976,7 @@ srv_master_do_idle_tasks(void)
/*==========================*/
{
ullint
counter_time
;
ulint
n_evicted
=
0
;
++
srv_main_idle_loops
;
...
...
@@ -3013,7 +3014,9 @@ srv_master_do_idle_tasks(void)
}
srv_main_thread_op_info
=
"enforcing dict cache limit"
;
srv_master_evict_from_table_cache
(
100
);
n_evicted
=
srv_master_evict_from_table_cache
(
100
);
MONITOR_INC_VALUE
(
MONITOR_SRV_DICT_LRU_EVICT_COUNT_IDLE
,
n_evicted
);
MONITOR_INC_TIME_IN_MICRO_SECS
(
MONITOR_SRV_DICT_LRU_MICROSECOND
,
counter_time
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment