Mysql Innodb 引擎状态后台线程
Mysql Innodb engine status BACKGROUND THREAD
我从 SHOW ENGINE INNODB STATUS
得到了这个输出
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 2738330 1_second, 2738328 sleeps, 270109 10_second, 48276 background, 48238 flush
srv_master_thread log flush and writes: 2743704
这些术语是什么意思?这些数字的单位(秒或计数)是多少?
PS: 在 Google!
中找不到任何解释
您可以在 mysql(或 mariadb 或 percona)手册中轻松找到此信息
BACKGROUND THREAD
The srv_master_thread lines shows work done by the main background
thread.
https://dev.mysql.com/doc/refman/5.5/en/innodb-standard-monitor.html
https://www.percona.com/doc/percona-server/LATEST/diagnostics/innodb_show_status.html
BACKGROUND THREAD
-----------------
srv_master_thread loops: 1 srv_active, 0 srv_shutdown, 11844 srv_idle
srv_master_thread log flush and writes: 11844
InnoDB has a master thread which performs background tasks depending
on the server state, once per second. If the server is under workload,
the master thread runs the following: performs background table drops;
performs change buffer merge, adaptively; flushes the redo log to
disk; evicts tables from the dictionary cache if needed to satisfy its
size limit; makes a checkpoint. If the server is idle: performs
background table drops, flushes and/or checkpoints the redo log if
needed due to the checkpoint age; performs change buffer merge at full
I/O capacity; evicts tables from the dictionary cache if needed; and
makes a checkpoint.
我从 SHOW ENGINE INNODB STATUS
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 2738330 1_second, 2738328 sleeps, 270109 10_second, 48276 background, 48238 flush
srv_master_thread log flush and writes: 2743704
这些术语是什么意思?这些数字的单位(秒或计数)是多少?
PS: 在 Google!
中找不到任何解释您可以在 mysql(或 mariadb 或 percona)手册中轻松找到此信息
BACKGROUND THREAD
The srv_master_thread lines shows work done by the main background thread.
https://dev.mysql.com/doc/refman/5.5/en/innodb-standard-monitor.html
https://www.percona.com/doc/percona-server/LATEST/diagnostics/innodb_show_status.html
BACKGROUND THREAD
-----------------
srv_master_thread loops: 1 srv_active, 0 srv_shutdown, 11844 srv_idle
srv_master_thread log flush and writes: 11844
InnoDB has a master thread which performs background tasks depending on the server state, once per second. If the server is under workload, the master thread runs the following: performs background table drops; performs change buffer merge, adaptively; flushes the redo log to disk; evicts tables from the dictionary cache if needed to satisfy its size limit; makes a checkpoint. If the server is idle: performs background table drops, flushes and/or checkpoints the redo log if needed due to the checkpoint age; performs change buffer merge at full I/O capacity; evicts tables from the dictionary cache if needed; and makes a checkpoint.