为何MySQL引入Double Writer
为什么MySQL引入Double Writer? ㈠ 是什么 double writer是ibdata1(共享表空间)里面的一块连续空间 BTW:为什么取名时叫buffer呢?难道一切缓冲写都叫buffer,加速读叫cache,哈哈 ㈡ 为什么需要 redo有效应用的前提是data的一致性,当data flush到磁盘时发生
为什么MySQL引入Double Writer?㈠ 是什么
double writer是ibdata1(共享表空间)里面的一块连续空间
BTW:为什么取名时叫buffer呢?难道一切缓冲写都叫buffer,加速读叫cache,哈哈
㈡ 为什么需要
redo有效应用的前提是data的一致性,当data flush到磁盘时发生故障,比如16K只写了4K
并且redo条目是change vector形式,属于逻辑记录,那么在InnoDB recovery时,redo就不知道从哪开始跑起
简言之,就是为了解决部分写问题(partial page write)
㈢ 影响性能吗
第一阶段,data写到double writer buffer属于顺序IO,节省IO开销
第二阶段,因为double writer buffer积累了很多dirty page,再写向真正的位置时有可能合并,减少fsync()次数
故,对性能影响不大
㈣ 相关参数
① show variables like '%double%'; ② show status like '%innodb_dblwr%';
参考资料:
http://www.orczhou.com/index.php/2010/02/innodb-double-write/
By 迦夜
2013-10-26
Good Luck

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Wordpress site file access is restricted: troubleshooting the reason why .txt file cannot be accessed recently. Some users encountered a problem when configuring the mini program business domain name: �...

The page is blank after PHP connects to MySQL, and the reason why die() function fails. When learning the connection between PHP and MySQL database, you often encounter some confusing things...

Causes and solutions for errors when using PECL to install extensions in Docker environment When using Docker environment, we often encounter some headaches...

Many website developers face the problem of integrating Node.js or Python services under the LAMP architecture: the existing LAMP (Linux Apache MySQL PHP) architecture website needs...

Question about Django time range query: Why is the end date not included? When using Django for database queries, we often need to use the time...

In Foreach...

Using Django and MySQL to process large data volumes When using Django and MySQL databases, if your data volume reaches hundreds of thousands to one or two million...

The problem of boxing when adding Chinese characters to images is found when PHP adds Chinese characters to watermarks. When adding Chinese characters to images, many developers will encounter a strange problem: Chinese characters become...
