-
-
Notifications
You must be signed in to change notification settings - Fork 756
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
borg2 initial chunk merge is very slow #8661
Comments
The log looks like it works as intended. As we are talking about the chunks index (which is for all the chunks in the repo), the time does not depend on the archives count, but on the chunks count. In 2.0.0b14 I added some partial/incremental chunks index tuning, so borg only saves the NEW chunks it created in a Compared to borg 1.x, these chunk indexes are stored in the repo, so depending on the repo speed, that might be slower than the chunks.archives.d/ local cache of borg 1.x (which grew rather big for many archives). But the advantage with the new method is that for multiple clients, the current full chunks index can be computed rather easily, without having to iterate over all archives or over all cached per-archive chunk indexes. That's a lot of new code, so maybe some more tuning is possible after analyzing the issue. |
that much we understood, and it's working really well. all index sizes are much smaller, which is really awesome to us who've been bit by our |
borg2.0.0b14 seems to very slow during the initial chunk index processing:
the repo used here has 120 archives with ~1.4M objects, and the initial chunk index merge takes 30 seconds. on a large repo with 430 archives and over 2M objects it takes over a minute. during this time the progress bar of a non-
--debug
run is stuck at zero and no indication what's happening, but one core pegged at 100%. total backup time of an unchanged source more than doubled compared to borg1 (but the .cache space it needs is two orders of magnitude smaller, which is greatly appreciated!)is this a tuning problem that we haven't found the documentation for, or is the borg2 setup just legitimately that high?
The text was updated successfully, but these errors were encountered: