-
Notifications
You must be signed in to change notification settings - Fork 240
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
Does current version of btrfs support Host-Managed Garbage Collection on Zone namespace ssd? #768
Comments
It's OK to ask here. Yes garbat collection is supported, it's not called like that though. In code you could find references to
The workload you describe could fill the drives too fast and the reclaim does not keep up, so it ends up as ENOSPC at some point. You'd need to watch how much unreclaimable space there is (eg. in
I'm not sure if I understand what you mean by copy operations and gc, it still sounds like what the reclaim process does. Block groups that have more unusable space than a threshold (configurable in sysfs) are put to a list and then reclaimed. This is done using the relocation mechanism that does copy the old data to new location and then updates pointers.
The zoned support is still improving in each release so you could also verify the behaviour on newer kernels, 6.8 or even the latest 6.9-rcX. There was a recent fix https://git.kernel.org/linus/a8b70c7f8600bc77d03c0b032c0662259b9e615e that could be related to what you see. |
Note for documentation: add section about the reclaim/gc behaviour, it's missing. |
Hello @sg20180546 As David said, Also, when a block group is fully unused, that block group is reset in Regarding the early ENOSPC issue, there is an on-going patch and discussion about that. In short, btrfs does the reclaiming, but it might not be fast enough. |
[ci skip] Issue: #768 Signed-off-by: David Sterba <[email protected]>
Documentation updated. |
[ci skip] Issue: #768 Signed-off-by: David Sterba <[email protected]>
hello I am Zone Namespace ssd researcher from south korea.
i have one question about btrfs but i cannot found way to ask btrfs maintainer.
so my question is,
does latest version of btrfs implement Host Manage Garbage collection ?
If i repeat write intensive filebench or rocksdb fillrandom and delete every files in mount directory,
btrfs emits error message for 'BTRFS: error (device nvme0n2: state A) in btrfs_del_csums:1014: errno=-28 No space left'.
but files are all deleted, invalidate space should be zone-reset and reclaimed.
however, as my knowledge, there's no codeline about copy operations for host managed gc.
is it not supported? or i'm missing some important facts.
thanks.
The text was updated successfully, but these errors were encountered: