Change all fsync to fdatasync#31229
Conversation
|
listar seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
|
macOS does not have |
@zhanglistar do you have any performance numbers for this change? I think that the difference for MergeTree code for example (where we write the whole file and only after this calling sync) should be negligible. |
@azat In the clickhouse-keeper code, I try to use fdatasync instead of fsync, the writing performance increase about 30%. And there is a conversation about this in the end of pr: |


Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Improve performance of syncing data to block device. This closes #31181.