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
borg diff / borg extract --progress memory leak? #5162
Comments
So you're saying |
Correct. When running with tracing the memory usage will go up to about 350Mb and the execution completes within a minute. I don't understand either: it's something I noticed after trying a lot of things to try to figure out what is happening. |
If somebody wants to help: it would be nice to independently verify this behavious: Different host, different OS (can be linux, but maybe a different distribution), maybe also different python version, but same borg version. Can this be reproduced elsewhere? |
Did you create both archives with the same If you never used this option, it means it used the same default value, so the answer would be yes. |
I never used the |
I had a look at the code. If chunker params are same, there is nothing super expensive. Other than that, it builds some data structures in memory that are about O(filecount*chunksperfile) size. ~60k files is not much. Neither do your archives seem to have many huge files. |
I made few tests
|
@MorgothSauron can you try 1.1.11 on that ubuntu machine? if that also works, it would likely rule out a bug in borg. |
I started few new diffs on ubuntu server 19.10 with borg 1.1.10 and the same problem did happen once in 5 runs. What is interesting is that when it gets stuck it is always after displaying diff stats for the same file
@ThomasWaldmann How do I get v1.1.11 ? Download the binary or try to install from source ? |
https://launchpad.net/~costamagnagianfranco/+archive/ubuntu/borgbackup not sure if any of these work on 19.10, but you could try. the fat binary from github releases should work on most linux dists, but the ppa package would be better. |
@MorgothSauron is there something special with the BeetMusicLibrary.blb file or the file that comes directly after that in the archive? |
@ThomasWaldmann As far as I know there is nothing special with I checked the few files before and after. Nothing special there
I'll try to test v1.1.11 on my existing ubuntu server. I want try the fat binary first: I avoid everything from PPA. For testing I may setup a new ubuntu VM. I'll do few more tests tomorrow. I'll document them and post back. Thanks for the help. |
(f): "Fat" binary |
I forgot 2 things:
Based on that I would say that the repository is in a good state. |
Just to clarify previous post ^^^^ - the commands were locally running on the backup repo server in these cases. |
Just stumbled over this bug. I think i have the same issue (or at least related to it). |
Hey, thanks for the suggestion about On my computer:
On server:
(Server is 32-bit Linux, that should explain lower memory usage there) |
OK, so it looks like:
|
could be a duplicate of #5202. |
@MorgothSauron could you do a test with current 1.1-maint branch code? The fix for #5202 was merged into 1.1-maint, so maybe your issue is also fixed. |
@domrim @taandrighetti ^^^ could you also test? |
@ThomasWaldmann I built borg from 1.1-maint (
It looks like it is fixed. |
OK, thanks for testing. Closing this. |
Have you checked borgbackup docs, FAQ, and open Github issues?
Yes. I didn't find anything that would match the problem I'm experiencing. I also used the IRC channel but nobody could help on this issue.
Is this a BUG / ISSUE report or a QUESTION?
Issue
System information. For client/server mode post info for both machines.
Repository hosted on rsync.net
Your borg version (borg -V).
Operating system (distribution) and version.
Fedora 31 (Python 3.7.7).
Hardware / network configuration, and filesystems used.
How much data is handled by borg?
Full borg commandline that lead to the problem (leave away excludes and passwords)
Describe the problem you're observing.
The command will start to display diff information. After few files it will stop processing. The command will run for hours before being killed by Linux. The process is killed because the system run out of memory. My Internet download speed is capped when borg is running.
nmon
:psrecord
:Can you reproduce the problem?
Include any warning/errors/backtraces from the system logs
borg is killed by Linux (return code 137). no backtrace, even with debug enabled
The text was updated successfully, but these errors were encountered: