14.6.7 Configuring the Number of Background InnoDB IO Threads 配置InnoDB IO Threads的数量

来源:互联网 发布:php仿qq聊天系统 编辑:程序博客网 时间:2024/05/21 18:36
14.6.7 Configuring the Number of Background InnoDB IO Threads   配置InnoDB IO Threads的数量InnoDB 使用后台线程来服务各种类型的I/O请求。你可以配置后台线程的数量 服务服和写I/O 在数据页上,使用配置参数  innodb_read_io_threads and innodb_write_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)mysql> show variables like '%innodb_write_io_threads%';+-------------------------+-------+| Variable_name           | Value |+-------------------------+-------+| innodb_write_io_threads | 4     |+-------------------------+-------+1 row in set (0.00 sec)那些参数指明后台线程的数量 用于读和写请求。 它们是支持的在所有平台上。你可以设置那些参数的值在MySQL 选项文件,你不能动态改变它们。默认那些参数的值是4,范围是1-64这个改变的目的是让InnoDB 更加的可扩展在高端系统上。每个后台线程可以处理256个挂起的I/O请求。一个主要的后台I/O来源是预读请求InnoDB 尝试平衡进来的请求负载以这样的方式  大多数后台线程共享工作。InnoDB 也尝试分配读请求从湘潭的extent 到相同的thread 来增加合并请求的机会

0 0