暂无图片
mysql中参数innodb_io_capacity的大小,会影响啥性能?
我来答
分享
暂无图片 匿名用户
mysql中参数innodb_io_capacity的大小,会影响啥性能?

mysql中参数innodb_io_capacity的大小,会影响啥性能?

我来答
添加附件
收藏
分享
问题补充
2条回答
默认
最新
吾亦可往

在 MySQL 中,innodb_io_capacity参数控制着InnoDB引擎刷脏页的能力。该参数设置得过小会导致MySQL刷脏页能力不足,从而影响性能;设置得过大会让MySQL认为IO能力很强,会造成IO尖峰。合理地设置innodb_io_capacity值可以控制刷脏页的速度,进而提高数据库性能。


innodb_io_capacity参数的默认值是200,单位是页,该参数设置的大小取决于硬盘的IOPS,即每秒的输入输出量(或读写次数)。一般情况下,对于高转速磁盘,可以适当提高该参数的值;在SSD磁盘配置下,可以将该值调整为5000-20000;在pcre-ssd配置下,可以将该值调整为更高,大约50000。

暂无图片 评论
暂无图片 有用 0
zy

官方的解释:
The innodb_io_capacity variable defines the number of I/O operations per second (IOPS)
available to InnoDB background tasks, such as flushing pages from the buffer pool and merging data from the change buffer.

The innodb_io_capacity variable defines the overall I/O capacity available to InnoDB. It should be set to approximately the number of I/O operations that the system can perform per second (IOPS).When innodb_io_capacity is set, InnoDB estimates the I/O bandwidth available for background tasks based on the set value.

暂无图片 评论
暂无图片 有用 0
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏