B2_Command_Line_Tool icon indicating copy to clipboard operation
B2_Command_Line_Tool copied to clipboard

Memory leak when using "sync --delete" command

Open dpedu opened this issue 8 years ago • 1 comments

I'm using the following command:

b2 sync --delete . b2://my-bucket-name

The current directory has nothing in it; I'm using this to "empty out" a bucket. The bucket contains no "normal" files and over 1 million "hidden" files.

After about 250,000 files are deleted, the b2 program is killed by my linux system's OOM killer:

May 30 22:15:54 homeapps8 kernel: [2299486.889839] Out of memory: Kill process 73571 (b2) score 474 or sacrifice child
May 30 22:15:54 homeapps8 kernel: [2299486.889940] Killed process 73571 (b2) total-vm:1736112kB, anon-rss:961892kB, file-rss:0kB

dpedu avatar May 31 '17 23:05 dpedu

This is a perfect task for someone who never investigated memory consumption issues.

ppolewicz avatar Jun 01 '17 00:06 ppolewicz

The 1GB of memory use doesn't sound disastrous, so it may have happened just due to the sheer amount of parallelization. Limiting threads may help. Nevertheless, please reopen if error still occurs with current version and default parallelization.

mjurbanski-reef avatar Nov 10 '23 09:11 mjurbanski-reef