14.4.7 Configuring the Number of Background InnoDB IO Threads 配置 后台InnoDB IO Threads的数量

14.4.7 Configuring the Number of Background InnoDB IO Threads 配置 后台InnoDB IO Threads的数量


InnoDB 使用background thread 来服务各种类型的I/O请求。


你可以配置 后台threads的数量 , 服务read和write I/O在数据pages上,


使用配置参数 innodb_read_io_threads and innodb_write_io_threads. 


那些参数表示 后台线程数量用于read和write 请求。




这种改变的目的是 让InnoDB 更加的可扩展性在高端的系统上,


每个后台thread 可以处理多达256个挂起的I/O 请求。

一个主要的后台I/O 是预读请求。

InnoDB 尝试 平衡进来的请求负载以这种方式,大多数threads 共享工作。


InnoDB 也尝试分配读请求从相同的extent到相同的thread 来增加合并请求的机会。


如果你有一个高端I/O子系统,你会看到多余64 × innodb_read_io_threads 

待读请求 在 SHOW ENGINE INNODB STATUS, 你可以通过增加innodb_read_io_threads的值



mysql> show variables like '%innodb_read_io_threads%';
+------------------------+-------+
| Variable_name          | Value |
+------------------------+-------+
| innodb_read_io_threads | 4     |
+------------------------+-------+
1 row in set (0.00 sec)

posted @ 2016-06-27 16:35  czcb  阅读(90)  评论(0编辑  收藏  举报