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

O_DIRECT + nocow + no snapshots + noatime + lazytime + prefilled writes should be fast! #47

Open
socketpair opened this issue Jun 13, 2023 · 0 comments

Comments

@socketpair
Copy link

Suppose case:

O_DIRECT
nocow set (chattr +C)
no snapshots on the whole FS
Mounted with noatime,lazytime
prefilled file (i.e. dd from urandom)
No reflink copies

App does radom aligned O_DIRECT writes.
For my understanding, these writes should be as fast as writing to raw blockdev. In Ext4 it is.

In BTRFS it gives more than 2 times less iops.

This should be fixed. At least with restrictions (for example swapfile requires some). Yes, making snapshots whil at least one such file is open should be declined. The same with reflink.

Possibly, a new attribute to work with a file as with swapfile.

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