14.5.4 Log BufferThe log buffer is the memory area that holds data to be written to the log files on disk. Log buffer size is defined by the innodb_log_buffer_size variable. The default size is 16MB. The contents of the log buffer are periodically flushed to disk. A large log buffer enables large transactions to run without the need to write redo log data to disk before the transactions commit. Thus, if you have transactions that update, insert, or delete many rows, increasing the size of the log buffer saves disk I/O. Log Buffer是内存中不同于Buffer Pool 的一部分会缓存将写入到磁盘中的数据。 Log Buffer的大小可用innodb_log_buffer_size 参数设置。 默认大小是16MB。 Log Buffer 的内容会周期性的刷新到磁盘。 大的Log Buffer 可以容纳大的事务无需将数据写入到redo 日志,减少与磁盘的交互。 事务中如果有大量的dml 操作,可以考虑增大Log Buffer的值,减少磁盘IO。 The innodb_flush_log_at_trx_commit variable controls how the contents of the log buffer are written and flushed to disk. The innodb_flush_log_at_timeout variable controls log flushing frequency. innodb_flush_log_at_trx_commit 参数能够控制 log buffer 写入和刷新到磁盘。innodb_flush_log_at_timeout 参数能控制刷新的频率。 For related information, see Memory Configuration, and Section 8.5.4, “Optimizing InnoDB Redo Logging”. 参考文章: https://dev.mysql.com/doc/refman/5.7/en/innodb-redo-log-buffer.html
14.5.4 Log Buffer
来源:这里教程网
时间:2026-03-01 15:56:50
作者:
编辑推荐:
- 14.5.4 Log Buffer03-01
- mysql多版本实例安装03-01
- load语句在binlog中的记录方式03-01
- MySQL rename table方法大全03-01
- 致同:为客户提供全方位专业服务03-01
- 测试03-01
- 带你看懂MySQL执行计划03-01
- MySQL 迁移表空间,备份单表03-01
下一篇:
相关推荐
-
雷神推出 MIX PRO II 迷你主机:基于 Ultra 200H,玻璃上盖 + ARGB 灯效
2 月 9 日消息,雷神 (THUNDEROBOT) 现已宣布推出基于英
-
制造商 Musnap 推出彩色墨水屏电纸书 Ocean C:支持手写笔、第三方安卓应用
2 月 10 日消息,制造商 Musnap 现已在海外推出一款 Oce
热文推荐
- load语句在binlog中的记录方式
load语句在binlog中的记录方式
26-03-01 - 令人咋舌的隐式转换
令人咋舌的隐式转换
26-03-01 - 集成电路行业ERP管理系统的三大分类
集成电路行业ERP管理系统的三大分类
26-03-01 - centos7 编译安装mysql 5.7.28图文详细教程
centos7 编译安装mysql 5.7.28图文详细教程
26-03-01 - 谈谈MYSQL索引是如何提高查询效率的
谈谈MYSQL索引是如何提高查询效率的
26-03-01 - 部署otter实现mysql主备数据同步(下)
部署otter实现mysql主备数据同步(下)
26-03-01 - MySQL不区分大小写设置
MySQL不区分大小写设置
26-03-01 - Navicat连接MySQL Server8.0版Client does not support authentication protocol req
- 部署otter实现mysql主备数据同步(上)
部署otter实现mysql主备数据同步(上)
26-03-01 - 判断集成电路企业是否需要实施ERP管理系统的依据
判断集成电路企业是否需要实施ERP管理系统的依据
26-03-01
