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.innodb_flush_redo_using_fdatasync
parameter to enable or disable fdatasync()
. Valid values: true
(enable), false
(disable). Default value: false
. If 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 fdatasync() to flush redo logs |
Was this page helpful?