Hey @Beatwolf, I like @ts678’s suggestion of testing a larger block size.If you have the space / time I’d suggest making a second test backup to a new folder on B2 but with a larger block size just to see if it makes a difference in your upload speeds.
thanks for your replies. I made an error in my OP it’ was actually KB/s, not bits per second.
Not sure about the burstiness, there doesn’t seem to be any idle periods. I will keep an eye on it though. I tried creating a new backup job (to the same buckets though) but without encryption, and this increased my upload speed to a steady 370-375 KB/s. Which is an improvement. The next thing I will test is larger block size. What would you recommend? 75MB?
Sure, give it a try and see if it makes a difference. (My guess is it won’t.) Most people seem to stick in the 50-250MB range, though I’ve seen some go as high as 1GB for local storage.
You can change dblock size all you want and Duplicati will adjust (though only newly upload dblocks will use the new size, old ones will stay the size they were created with).
Assuming when you say “block size” you mean dblock (Upload volume) size then that’s a tougher question than it appears because it depends on a few other things such as your bandwidth speed and potential limits.
By default Duplicati will download 1 fileset for testing after each backup is completed. This means that if you choose a 75MB dblock (“Upload volume”) size then for each backup run ~75MB of your B2 download allocation will be used for testing files.
At 75MB that’s likely not going to be a problem, but I know some users who have used dblock sizes of 500MB then suddenly run out of bandwidth. So it all depends on how often you run backups, how many filesets you test per run (default is 1), and how much bandwidth allocation you have with your destination provider.
Also consider that when restoring files, the SMALLEST download chunk will be your dblock size. So even if you only want to restore a 1MB file, at least one 75MB block will need to be downloaded (possibly more if the blocks of your 1MB file are spread across multiple dblocks.
Oh - if you’re using a retention policy to thin your backups over time, you might also need to account for multiple dblock sized downloads during that process as well.
This page might help explain things a bit better than I did:
Old thread, but @seantempleton just submitted a pull request to implement parallel uploads.
I just did the network performance monitor on my ongoing Duplicati upload to B2 and found it was maxing out around 10-12 Mbps (my connection is at least 50Mbit). So I loaded my B2 account in a tab in Chrome and directly uploaded a new ~200MB file and it blasted away at ~40Mbps and finished within a minute. Meanwhile my ~250MB duplicati dblock files are taking up to 10 - 15 minutes apiece.
Same experience here. 320 kb/S is max upload speed regardless of what I have tried. Uploading via Arq’s client however is quite fast…
I’m in the middle of a 200 GB re-upload to B2 in a new backup job… I have 500MB dblock size selected, and the backup’s been running since yesterday afternoon, and was averaging maybe 5 minutes per chunk in upload time based on the logs (reasonable but not great); suddenly this morning at about 8:30 Duplicati’s pipe seems to have tanked and now each chunk is taking upwards of an hour and a half to upload (reported speed in Duplicati is hovering around 90 KB/s).
Using the Backblaze bandwidth tester, I should be getting at least 20 megabit up… so around 20x the upload speed I’m currently getting. I don’t want to interrupt this new backup job but it’s taking approximately forever. I wish there was a way to see some more detail as to what might be causing the throughput choke i’m seeing.
Although it probably won’t immediately reveal any cause, I think it might be useful to look at throughput over time, preferably as a graph. On Windows, Task Manager shows this nicely for me provided I don’t have any other network-intensive things running. I just look at Wi-Fi and assume the sends are pretty much Duplicati.
Looking at CPU can be useful to see if it looks plausible that Duplicati’s other activities are impeding sends.
Looking at disk can be useful to see if possibly it’s disk-affected.Task Manager only goes to 100% busy, but Resource Monitor can be started from Task Manager for a closer look, such as how overbooked the disk is.
If you weren’t right in the middle of a backup, I’d have suggested Duplicati.CommandLine.BackendTool.exe to try a
put of a file without all the other Duplicati processing, just to see if the basic upload method is slow. Because you’re going SO slowly, you possibly could try that, at little risk of slowing down the backup more.
For technical analysis at a network level, netstat can sort of help, and Wireshark definitely can (but is hard).
Getting back to rough estimation, –asynchronous-upload-limit defaulting to 4 says that if you’re truly limited by the network (which sounds quite plausible), you might have 4 files of your 500MB size in your temporary file area (e.g. what echo %TEMP% at a command prompt says). They should be new, and flowing through.
If it helps, I’ve had task manager open to the processes and performance tab for about a day - for the most part Duplicati is the only thing using any significant amount of CPU (not all that much) or network bandwidth. I get 40 - 50 megabits upload and duplicati is currently using maybe 1 megabit.
How do I enable asynchronous upload? As far as I can tell from the log files, only one dblock is being uploaded at a time. I don’t have a setting added for async-upload-limit so I assume it’s using the default of 4. Edit: I guess I was remembering incorrectly in thinking “asynchronous upload” meant multi-threaded simultaneous uploads (as opposed to the ability to prepare new dblock files while the previous one is in transit). So I guess we wait on that one a bit longer.
Since two weeks I’ve been experiencing slow uploads with B2 as well.
I have 512mb dblock size and one file would upload with usual speed (~50mbit), the next one with 0.7mbit. This behaviour has been consistent for several days.
I think it’s the default, and you have to use –synchronous-upload to turn it off. Note that this isn’t parallel simultaneous uploads. I’m just asking you to check if your queue waiting for one-at-a-time is actually 4. Seems like uploading is not CPU limited. Please look at the disk utilization and upload graph sometime.
Some other things you can look into are whether you seem to be getting retries at some level. Duplicati retries at the dblock level are suggested if you go to Job --> Show log --> Remote, and find dblock files being
put repeatedly, probably with no dindex file in between. The file name will change, but clicking the file’s line will show its Size and Hash. If they’re the same, it’s probably the same file with retry of its
Getting into slightly exotic network things, opening a Command Prompt to run
netstat -s will look like
TCP Statistics for IPv4 Active Opens = 605279 Passive Opens = 25160 Failed Connection Attempts = 87880 Reset Connections = 27373 Current Connections = 100 Segments Received = 150439003 Segments Sent = 147518709 Segments Retransmitted = 375289
and if you look at the change in the last two lines over some portion of the upload, you can see how well your system is able to send. If something is going wrong, e.g. in network, expect a higher percentage of retransmissions. You might also be able to see this sort of stall in the network graph I mentioned earlier.
@simsim what OS are you on? Most non-Windows ones have a very nice way to see network queues. Beyond that, help yourself to the troubleshooting and investigative steps being suggested in this topic…
It’s running inside a FreeNAS jail.
However I just wanted to add my 2 cents in case more users are seeing this behaviour and it turns out it’s a Backblaze issue, not duplicati.
I gave up on Backblaze and moved to jottacloud - cheaper + faster.
Are there any details on the BB issue?
I notice that while Duplicati is really slow (70-80KB/s during file uploads so 50MB chunk files take about 10 minutes each to upload) adding a file manually through the BB web interface is quick, and uploads through other apps (I tested restic) don’t seem to be slowed down so much.
Maybe it’s something to do with the particular calls used by Duplicati being used to put files?
B2 upload speed suddenly plummeting has Backblaze seemingly fixing a network setting at their end, and increasing a Duplicati user’s upload speed by 10 times. They also say people can ask Backblaze support.
While testing on my own slow system yesterday, I raised its upload speed 20 times by reconnecting WiFi, which cleaned up its packet-level behavior quite a bit, and had it uploading at nearly my lines’s upload rate.
Below are before and after graphs, per my earlier comments about using Task Manager to see throughput.
You can see a slow and very uneven upload followed by a download spike which is the verification sample. After disconnecting and reconnecting my PC WiFi connection, the graph looks much faster and smoother:
That reddit thread was actually mine, lol. I was just about to come back in here and report that the issue seems to have been the pipe at Backblaze and appears (from my end) to have just cleared up by itself.
Yes I have also noticed a marked improvement in the past day or so.
B2 uploads working as they should! I put all backup traffic in a lower priority QoS class so that it can consume all my unused upload bandwidth, but not interfere with my regular upload traffic. Backup traffic is shown as green in this chart:
Before Backblaze fixed the issue, I was not maxing out my upstream bandwidth (which is about 20M).
I wish it would max out mine (or closer at least) - i’m still averaging 10 to 15 megabits and my connection is supposed to support 50 up.
Just a quick update to say that this morning yet again (much like last week at around the same time), my speeds suddenly plummeted by a factor of ~20. A 500mb dblock is now taking from a half hour to 80 minutes to upload.
Interestingly now when I try uploading a file directly to B2 via the web GUI, it goes at basically full speed. All while my Duplicati upload is struggling along at maybe 100KB/s.
Another small update - Backblaze support walked me through installing the backblaze CLI tool and asked me to do a CLI file upload. When I did, it ran at approaching 50 megabits - i tested using a copy of one of the duplicati chunks currently in my queue (roughly 500MB), and a file that duplicati is currently taking between a half hour and an hour to upload, took about 1 minute via the CLI. That’s discouraging.