fsync() system call flushes redo logs to disk, including metadata and data. But metadata contains unimportant information such as the last modified time. You can enable the
fdatasync() system call to skip metadata when flushing redo logs in order to reduce costs.
This feature is suitable for use cases with heavy write pressure.
TPS is improved by about 10%, according to the sysbench test in a high-concurrency continuous write scenario using the oltp_write_only.lua script.
innodb_flush_redo_using_fdatasync parameter to enable or disable
fdatasync(). Valid values:
false (disable). Default value:
fdatasync() is enabled, metadata of redo logs won't be flushed to disk in real time.
|Parameter||Effective Immediately||Type||Default Value||Valid Values/Value Range||Description|
|innodb_flush_redo_using_fdatasync||Yes||bool||false||true/false||Whether to call