关于master thread和io thread的关系

ilovemk ilovemk 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
show engine innodb status命令输出有io threads和master thread,根据官方文档的描述:

IO thread:
InnoDB uses background threads to service various types of I/O requests. You can configure the number of background threads that service read and write I/O on data pages, using the configuration parameters innodb_read_io_threads and innodb_write_io_threads....

Master thread:
The master thread in InnoDB is a thread that performs various tasks in the background. Most of these tasks are I/O related, such as flushing dirty pages from the buffer pool or writing changes from the insert buffer to the appropriate secondary indexes. The master thread attempts to perform these tasks in a way that does not adversely affect the normal working of the server. It tries to estimate the free I/O bandwidth available and tune its activities to take advantage of this free capacity. Historically, InnoDB has used a hard coded value of 100 IOPs (input/output operations per second) as the total I/O capacity of the server.....

问题一:咋一看io threads和master thread都是处理IO的线程,那到底IO请求是哪个线程处理的?

另外在show engine innodb status命令结尾还有这样的输出:

ROW OPERATIONS
--------------
0 queries inside InnoDB, 0 queries in queue
1 read views open inside InnoDB
Main thread id 2504, state: waiting for server activity
Number of rows inserted 0, updated 0, deleted 0, read 30
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s

问题二:这里的main thread和master thread又是什么关系?
...全文

相关推荐

评论 1
收藏 已收藏
分享
返回顶部
ilovemk
MySQL 57,063 成员 56,760 内容