-
Notifications
You must be signed in to change notification settings - Fork 104
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
improve restores by posix_fallocate #260
Comments
Note: I tried using posix_fallocate for the repo segment writes done by "attic create", but somehow it triggered malfunctions. I guess it is somehow caused by the file append mode and that the file then looks like it is the allocated size big even if you did not yet write any data into it. I tried to solve with seek, but it did not work. I think it is still worth trying for "attic extract" and files not using append mode. Here's some more info: http://www.lucas-nussbaum.net/blog/?p=332 So, it looks like attic would have to stop using append mode for these files to get posix_fallocate working. |
See borgbackup/borg#5 (comment)
(both m, cross-media quoting so to speak) |
on POSIX systems, one can tell the filesystem how much data one intends to write into a new file, so it can optimize disk space allocation (and maybe avoid fragmentation when other space allocation on the filesystem happens in parallel).
it's not a very critical thing to have, but if we can simply add it, why not...
see also #252 about posix_fadvise, which is somehow related.
The text was updated successfully, but these errors were encountered: