Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fsync is not working properly with nrfiles #1677

Open
Tulsishah opened this issue Nov 28, 2023 · 1 comment
Open

fsync is not working properly with nrfiles #1677

Tulsishah opened this issue Nov 28, 2023 · 1 comment

Comments

@Tulsishah
Copy link

Tulsishah commented Nov 28, 2023

When nrfiles is set to 2 and fsync is set to 1, the sync system call is only executed after each write operation for the first file. This results in the following pattern for the first file:

Write
Sync
Write
Sync
Write
Sync

For the second file, the sync system call is not executed after each write operation.

Write
Write
Write
Flush

When nrfiles is increased to 3, the sync system call is only executed after each write operation for the first two file. The third file is not subject to any sync calls.

In summary, the sync behavior for files is determined by the value of nrfiles. When nrfiles is set to 1, all files are synced after each write operation. When nrfiles is greater than 1, only the first nrfiles-1 files are synced after each write operation.

e.g.

nrfiles=3
fsync=1
filesize=3M
bs=1M

calls for 1st file
8UFDmtBkLggvkmV

calls for 2nd file
AMUwWEaqTcvhwhT

calls for 3rd file
3JCi5A8J3hYLXJg

@Tulsishah Tulsishah changed the title fsync is now working properly with nrfiles fsync is not working properly with nrfiles Nov 28, 2023
@Tulsishah
Copy link
Author

Is there any update on this bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant