InnoDB On-Disk Structures(四)--Doublewrite Buffer (转载)
转载、节选于 https://dev.mysql.com/doc/refman/8.0/en/innodb-doublewrite-buffer.html
The doublewrite buffer is a storage area located in the system tablespace where
InnoDBwrites pages that are flushed from the
InnoDBbuffer pool, before the pages are written to their proper positions in the data file. Only after flushing and writing pages to the doublewrite buffer, does
InnoDBwrite pages to their proper positions. If there is an operating system, storage subsystem, or mysqld process crash in the middle of a page write,
InnoDBcan later find a good copy of the page from the doublewrite buffer during crash recovery.
Although data is always written twice, the doublewrite buffer does not require twice as much I/O overhead or twice as many I/O operations. Data is written to the doublewrite buffer itself as a large sequential chunk, with a single
fsync()call to the operating system.
The doublewrite buffer is enabled by default in most cases. To disable the doublewrite buffer, set innodb_doublewrite
to 0.
If system tablespace files (“ibdata files”) are located on Fusion-io devices that support atomic writes, doublewrite buffering is automatically disabled and Fusion-io atomic writes are used for all data files. Because the doublewrite buffer setting is global, doublewrite buffering is also disabled for data files residing on non-Fusion-io hardware. This feature is only supported on Fusion-io hardware and is only enabled for Fusion-io NVMFS on Linux. To take full advantage of this feature, an innodb_flush_method
setting of
O_DIRECTis recommended.
转载、节选于 https://dev.mysql.com/doc/refman/8.0/en/innodb-doublewrite-buffer.html
- InnoDB中的doublewrite buffer技术原理
- MySQL InnoDB 的 Double Write Buffer
- MySQL性能测试 : 新的InnoDB Double Write Buffer
- InnoDB On-Disk Structures(五)-- Redo Log & Undo Logs (转载)
- innodb double write buffer--刷新页
- innodb double write buffer--buf_dblwr_write_single_page
- innodb double write buffer--struct
- innodb double write buffer--buf_dblwr_add_to_batch
- innodb double write buffer刷单页场景
- innodb double write buffer--buf_dblwr_add_to_batch调用write、fsync的函数buf_dblwr_flush_buffered_writes
- innodb double write buffer批量刷场景
- innodb double write buffer
- MySQL Doublewrite Buffer及业务评估
- std::string的Copy-on-Write:不如想象中美好 转载
- Innodb Double Write
- InnoDB关键特性之double write
- 【MySQL 5.7 Reference Manual】15.4.7 Doublewrite Buffer(双写缓冲)
- InnoDB关键特性之doublewrite
- 转载_Copy-On-Write技术
- 关于InnoDB Double Write