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

Writeback cache functionality #57

Open
lreisinger opened this issue Sep 19, 2021 · 4 comments
Open

Writeback cache functionality #57

lreisinger opened this issue Sep 19, 2021 · 4 comments

Comments

@lreisinger
Copy link

Is it possible to use autotier so that an ssd becomes a write cache for a zpool? So e.g. after copying a file via smb it is saved on tier 1 very fast and the transfer is shown as completed. After completion or after some time it will be copied to tier 2 and is deleted on tier 1.
I think this would be very beneficial to zfs users that want fast file transfers without having to invest in an ssd pool or a huge array. This is the one feature I am missing the most from zfs.

@lreisinger lreisinger changed the title [question] Writeback cache functionality Writeback cache functionality Sep 19, 2021
@joshuaboud
Copy link
Member

I just did a very quick and dirty test of this and I think it may be possible to use it in this way, at least in the development version I'm working on now. Try it out by setting your top tier quota to 0 B and let me know if it seems to be working how you'd expect. Keep in mind I haven't tried this with the current release so it may get tripped up on having a quota of 0 B. You can also just try a very low quota like 1 B if there are issues with having it at 0.

@joshuaboud
Copy link
Member

Just a heads up, with release 1.2.0, I've tested writeback cache functionality and it seems to work decently well. Give it a shot and let me know how you find it.

@joshuaboud
Copy link
Member

As long as Samba keeps a file handle open for the file being written, it will stay in the top tier. Once the file is closed, Autotier will move it off to the next tier given that the top tier's quota is 0%.

@TheLinuxGuy
Copy link

I am curious; what kind of performance did you observe in your tests with the latest version?

I was reading #38 that showed some differential of about ~40% performance penalty and so wondering if using '0 B' in configuration file behaves differently from the 2021 issue linked.

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

3 participants