调整刷新脏页处理innodb_io_capacity
来源:互联网 发布:淘宝云客服平台入口 编辑:程序博客网 时间:2024/05/07 05:45
在5.1.X版本中,最多只会刷新100个脏页到磁盘、合并20个插入缓冲,即使磁盘有能力处理更多的请求,只能会处理这么多,这样在更新量较大的时候,脏页刷新就可能跟不上,导致性能下降。
但在5.5.X版本里,innodb_io_capacity参数可以动态调整刷新脏页的数量,这在一定程度上解决了这一问题。
innodb_io_capacity默认是200,单位是页,该参数的设置大小取决于硬盘的IOPS,即每秒每秒的输入输出量(或读写次数)。
可以动态调整参数:set global innodb_io_capacity=2000;
磁盘配置与innodb_io_capacity参数值
innodb_io_capacity磁盘配置200单盘SAS/SATA2000SAS*12 RAID 105000SSD50000FUSION-IO13.7.7.11. Controlling the Master Thread I/O Rate
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 cache 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.
Beginning with InnoDB storage engine 1.0.4, a new configuration parameter indicates the overall I/O capacity available to InnoDB. The new parameterinnodb_io_capacity
should be set to approximately the number of I/O operations that the system can perform per second. The value depends on your system configuration. Wheninnodb_io_capacity
is set, the master threads estimates the I/O bandwidth available for background tasks based on the set value. Setting the value to100
reverts to the old behavior.
You can set the value of innodb_io_capacity
to any number 100 or greater, and the default value is200
. You can set the value of this parameter in the MySQL option file (my.cnf
ormy.ini
) or change it dynamically with the SET GLOBAL
command, which requires the SUPER
privilege.
- 调整刷新脏页处理innodb_io_capacity
- innodb_io_capacity 脏页刷盘控制
- 一个有趣的现象----innodb_io_capacity
- 一个有趣的现象----innodb_io_capacity
- 图像处理---尺寸调整
- 下拉刷新全屏时,高度的调整
- Innodb_io_capacity 对于IO稳定性的一些研究
- RedHat下安装显卡驱动与调整刷新频率
- CollectionView可任意调整带刷新的瀑布流
- QTableView批量调整行高刷新效率问题解决
- php实时刷新客户端处理
- 处理Glide刷新出现闪烁
- retrofit 刷新token并发处理
- 第七讲 图片的调整和处理
- C#图片处理之:色彩调整
- Delphi图像处理 -- 亮度/对比度调整
- C#图片处理之:色彩调整
- C++图像处理 -- 线性亮度/对比度调整
- 分享一个JavaMail发邮件的类,可以内嵌图片
- poj 1015 解题报告
- JavaBean
- jQuery.ajax( options ) : 默认是get方式发送的
- Office提示由于本机的限制该操作已被取消怎么办
- 调整刷新脏页处理innodb_io_capacity
- Cannot assign requested address: JVM_Bind
- 选择类排序法 — 简单选择排序
- GSL on Windows
- 产品规划
- ICIP
- MySQL远程访问权限,允许远程连接的开启
- servlet作用及配置
- JavaScript获取路径