-
-
Notifications
You must be signed in to change notification settings - Fork 757
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
increase segment size? #599
Comments
While playing with borg I noticed theres a setting for it in the config file. Will anything terrible happen because I did this ? |
I never tried, but IIRC it just reads and follows that value when it opens a repo (there is just no init option to set that value). Expected outcome would be a repo with some 5MB segments (before change) and some segments of other size (after the change). |
I did a small speed test for comparison, backing up the same data to two repos, one with 5 MiB default segments, one modified to save 10 MiB segments. After working around caching issues (making the second backup always faster) I found no significant difference in backup times. I used borg 0.30.0 with
I noticed that the number of chunks is slightly different, after the second backup the 5 MiB repo has 69922 unique chunks, the other 69935. Bug or harmless side effect? |
OK, I am closing this as it currently seems pointless to increate segment size. @pszxzsd thanks for your experiments / measurements. Yes, the chunk difference is strange. Maybe open another issue if you can reproduce. |
Q: "Could it be beneficial to raise the repo segment size? Maybe to a multiple of the new default chunk size?"
A: There is not really a "default chunk size" though, it's only some statistically medium value (and thus, there is no precise multiple practically, compression and encryption also come into play).
But roughly, it used to target 64kiB (chunk) and 5MiB (segment).
Now (1.0) it targets 2MiB (chunk) and still 5MiB (segment) yet.
Considerations:
The text was updated successfully, but these errors were encountered: