Low upload speed on Onedrive w/o any throttling(spacer)

What is the problem you are having with rclone?

having low upload speed around 15MB/s on onedrive but i am able to get almost 60MB/s on download from the onedrive remote. I have checked the DEBUG logs
and there is no such "SPACER" or any kind of throttling indications on the logs

---Download---
Transferred: 5.552 GiB / 5.552 GiB, 100%, 57.474 MiB/s, ETA 0s
Transferred: 1 / 1, 100%
Elapsed time: 1m37.1s

---Upload---
Transferred: 5.552 GiB / 5.552 GiB, 100%, 10.350 MiB/s, ETA 0s
Transferred: 1 / 1, 100%
Elapsed time: 6m25.8s

Run the command 'rclone version' and share the full output of the command.

rclone v1.65.1

  • os/version: ubuntu 22.04 (64 bit)
  • os/kernel: 5.15.0-91-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.21.5
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Onedrive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone copy ~/1.mkv "gdrive:/A/" -P --log-file=/home/swizz/logg/rlog.txt --log-level DEBUG

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

**BY MISTAKE I HAVE NAMED MY ONEDRIVE CONFIG AS "gdrive"**

[gdrive]
type = onedrive
client_id = XXX
client_secret = XXX
token = XXX
drive_id = XXX
drive_type = business
chunk_size = 60Mi

A log from the command that you were trying to run with the -vv flag

2024/02/05 01:31:05 DEBUG : rclone: Version "v1.65.1" starting with parameters ["rclone" "copy" "/home/swizz/1.mkv" "gdrive:/A/" "-P" "--log-file=/home/swizz/logg/rlog.txt" "--log-level" "DEBUG"]
2024/02/05 01:31:05 DEBUG : Creating backend with remote "/home/swizz/1.mkv"
2024/02/05 01:31:05 DEBUG : Using config file from "/home/swizz/.config/rclone/rclone.conf"
2024/02/05 01:31:05 DEBUG : fs cache: adding new entry for parent of "/home/swizz/1.mkv", "/home/swizz"
2024/02/05 01:31:05 DEBUG : Creating backend with remote "gdrive:/A/"
2024/02/05 01:31:06 DEBUG : fs cache: renaming cache item "gdrive:/A/" to be canonical "gdrive:A"
2024/02/05 01:31:07 DEBUG : 1.mkv: Need to transfer - File not found at Destination
2024/02/05 01:31:07 DEBUG : 1.mkv: Starting multipart upload
2024/02/05 01:31:07 DEBUG : 1.mkv: Uploading segment 0/5961139965 size 62914560
2024/02/05 01:31:11 DEBUG : 1.mkv: Uploading segment 62914560/5961139965 size 62914560
2024/02/05 01:31:14 DEBUG : 1.mkv: Uploading segment 125829120/5961139965 size 62914560
2024/02/05 01:31:18 DEBUG : 1.mkv: Uploading segment 188743680/5961139965 size 62914560
2024/02/05 01:31:22 DEBUG : 1.mkv: Uploading segment 251658240/5961139965 size 62914560
2024/02/05 01:31:26 DEBUG : 1.mkv: Uploading segment 314572800/5961139965 size 62914560
2024/02/05 01:31:29 DEBUG : 1.mkv: Uploading segment 377487360/5961139965 size 62914560
2024/02/05 01:31:32 DEBUG : 1.mkv: Uploading segment 440401920/5961139965 size 62914560
2024/02/05 01:31:36 DEBUG : 1.mkv: Uploading segment 503316480/5961139965 size 62914560
2024/02/05 01:31:39 DEBUG : 1.mkv: Uploading segment 566231040/5961139965 size 62914560
2024/02/05 01:31:43 DEBUG : 1.mkv: Uploading segment 629145600/5961139965 size 62914560
2024/02/05 01:31:47 DEBUG : 1.mkv: Uploading segment 692060160/5961139965 size 62914560
2024/02/05 01:31:50 DEBUG : 1.mkv: Uploading segment 754974720/5961139965 size 62914560
2024/02/05 01:31:54 DEBUG : 1.mkv: Uploading segment 817889280/5961139965 size 62914560
2024/02/05 01:31:58 DEBUG : 1.mkv: Uploading segment 880803840/5961139965 size 62914560
2024/02/05 01:32:01 DEBUG : 1.mkv: Uploading segment 943718400/5961139965 size 62914560
2024/02/05 01:32:04 DEBUG : 1.mkv: Uploading segment 1006632960/5961139965 size 62914560
2024/02/05 01:32:08 DEBUG : 1.mkv: Uploading segment 1069547520/5961139965 size 62914560
2024/02/05 01:32:11 DEBUG : 1.mkv: Uploading segment 1132462080/5961139965 size 62914560
2024/02/05 01:32:16 DEBUG : 1.mkv: Uploading segment 1195376640/5961139965 size 62914560
2024/02/05 01:32:19 DEBUG : 1.mkv: Uploading segment 1258291200/5961139965 size 62914560
2024/02/05 01:32:22 DEBUG : 1.mkv: Uploading segment 1321205760/5961139965 size 62914560
2024/02/05 01:32:26 DEBUG : 1.mkv: Uploading segment 1384120320/5961139965 size 62914560
2024/02/05 01:32:30 DEBUG : 1.mkv: Uploading segment 1447034880/5961139965 size 62914560
2024/02/05 01:32:34 DEBUG : 1.mkv: Uploading segment 1509949440/5961139965 size 62914560
2024/02/05 01:32:37 DEBUG : 1.mkv: Uploading segment 1572864000/5961139965 size 62914560
2024/02/05 01:32:41 DEBUG : 1.mkv: Uploading segment 1635778560/5961139965 size 62914560
2024/02/05 01:32:43 DEBUG : 1.mkv: Uploading segment 1698693120/5961139965 size 62914560
2024/02/05 01:32:47 DEBUG : 1.mkv: Uploading segment 1761607680/5961139965 size 62914560
2024/02/05 01:32:51 DEBUG : 1.mkv: Uploading segment 1824522240/5961139965 size 62914560
2024/02/05 01:32:55 DEBUG : 1.mkv: Uploading segment 1887436800/5961139965 size 62914560
2024/02/05 01:32:58 DEBUG : 1.mkv: Uploading segment 1950351360/5961139965 size 62914560
2024/02/05 01:33:01 DEBUG : 1.mkv: Uploading segment 2013265920/5961139965 size 62914560
2024/02/05 01:33:05 DEBUG : 1.mkv: Uploading segment 2076180480/5961139965 size 62914560
2024/02/05 01:33:09 DEBUG : 1.mkv: Uploading segment 2139095040/5961139965 size 62914560
2024/02/05 01:33:12 DEBUG : 1.mkv: Uploading segment 2202009600/5961139965 size 62914560
2024/02/05 01:33:16 DEBUG : 1.mkv: Uploading segment 2264924160/5961139965 size 62914560
2024/02/05 01:33:20 DEBUG : 1.mkv: Uploading segment 2327838720/5961139965 size 62914560
2024/02/05 01:33:23 DEBUG : 1.mkv: Uploading segment 2390753280/5961139965 size 62914560
2024/02/05 01:33:28 DEBUG : 1.mkv: Uploading segment 2453667840/5961139965 size 62914560
2024/02/05 01:33:31 DEBUG : 1.mkv: Uploading segment 2516582400/5961139965 size 62914560
2024/02/05 01:33:35 DEBUG : 1.mkv: Uploading segment 2579496960/5961139965 size 62914560
2024/02/05 01:33:38 DEBUG : 1.mkv: Uploading segment 2642411520/5961139965 size 62914560
2024/02/05 01:33:42 DEBUG : 1.mkv: Uploading segment 2705326080/5961139965 size 62914560
2024/02/05 01:33:47 DEBUG : 1.mkv: Uploading segment 2768240640/5961139965 size 62914560
2024/02/05 01:33:50 DEBUG : 1.mkv: Uploading segment 2831155200/5961139965 size 62914560
2024/02/05 01:33:54 DEBUG : 1.mkv: Uploading segment 2894069760/5961139965 size 62914560
2024/02/05 01:33:58 DEBUG : 1.mkv: Uploading segment 2956984320/5961139965 size 62914560
2024/02/05 01:34:02 DEBUG : 1.mkv: Uploading segment 3019898880/5961139965 size 62914560
2024/02/05 01:34:06 DEBUG : 1.mkv: Uploading segment 3082813440/5961139965 size 62914560
2024/02/05 01:34:10 DEBUG : 1.mkv: Uploading segment 3145728000/5961139965 size 62914560
2024/02/05 01:34:14 DEBUG : 1.mkv: Uploading segment 3208642560/5961139965 size 62914560
2024/02/05 01:34:18 DEBUG : 1.mkv: Uploading segment 3271557120/5961139965 size 62914560
2024/02/05 01:34:22 DEBUG : 1.mkv: Uploading segment 3334471680/5961139965 size 62914560
2024/02/05 01:34:26 DEBUG : 1.mkv: Uploading segment 3397386240/5961139965 size 62914560
2024/02/05 01:34:30 DEBUG : 1.mkv: Uploading segment 3460300800/5961139965 size 62914560
2024/02/05 01:34:33 DEBUG : 1.mkv: Uploading segment 3523215360/5961139965 size 62914560
2024/02/05 01:34:37 DEBUG : 1.mkv: Uploading segment 3586129920/5961139965 size 62914560
2024/02/05 01:34:47 DEBUG : 1.mkv: Uploading segment 3649044480/5961139965 size 62914560
2024/02/05 01:34:51 DEBUG : 1.mkv: Uploading segment 3711959040/5961139965 size 62914560
2024/02/05 01:34:55 DEBUG : 1.mkv: Uploading segment 3774873600/5961139965 size 62914560
2024/02/05 01:35:08 DEBUG : 1.mkv: Uploading segment 3837788160/5961139965 size 62914560
2024/02/05 01:35:12 DEBUG : 1.mkv: Uploading segment 3900702720/5961139965 size 62914560
2024/02/05 01:35:15 DEBUG : 1.mkv: Uploading segment 3963617280/5961139965 size 62914560
2024/02/05 01:35:19 DEBUG : 1.mkv: Uploading segment 4026531840/5961139965 size 62914560
2024/02/05 01:35:23 DEBUG : 1.mkv: Uploading segment 4089446400/5961139965 size 62914560
2024/02/05 01:35:27 DEBUG : 1.mkv: Uploading segment 4152360960/5961139965 size 62914560
2024/02/05 01:35:36 DEBUG : 1.mkv: Uploading segment 4215275520/5961139965 size 62914560
2024/02/05 01:35:40 DEBUG : 1.mkv: Uploading segment 4278190080/5961139965 size 62914560
2024/02/05 01:35:44 DEBUG : 1.mkv: Uploading segment 4341104640/5961139965 size 62914560
2024/02/05 01:35:47 DEBUG : 1.mkv: Uploading segment 4404019200/5961139965 size 62914560
2024/02/05 01:35:59 DEBUG : 1.mkv: Uploading segment 4466933760/5961139965 size 62914560
2024/02/05 01:36:03 DEBUG : 1.mkv: Uploading segment 4529848320/5961139965 size 62914560
2024/02/05 01:36:07 DEBUG : 1.mkv: Uploading segment 4592762880/5961139965 size 62914560
2024/02/05 01:36:10 DEBUG : 1.mkv: Uploading segment 4655677440/5961139965 size 62914560
2024/02/05 01:36:14 DEBUG : 1.mkv: Uploading segment 4718592000/5961139965 size 62914560
2024/02/05 01:36:22 DEBUG : 1.mkv: Uploading segment 4781506560/5961139965 size 62914560
2024/02/05 01:36:28 DEBUG : 1.mkv: Uploading segment 4844421120/5961139965 size 62914560
2024/02/05 01:36:32 DEBUG : 1.mkv: Uploading segment 4907335680/5961139965 size 62914560
2024/02/05 01:36:36 DEBUG : 1.mkv: Uploading segment 4970250240/5961139965 size 62914560
2024/02/05 01:36:40 DEBUG : 1.mkv: Uploading segment 5033164800/5961139965 size 62914560
2024/02/05 01:36:44 DEBUG : 1.mkv: Uploading segment 5096079360/5961139965 size 62914560
2024/02/05 01:36:48 DEBUG : 1.mkv: Uploading segment 5158993920/5961139965 size 62914560
2024/02/05 01:36:51 DEBUG : 1.mkv: Uploading segment 5221908480/5961139965 size 62914560
2024/02/05 01:36:55 DEBUG : 1.mkv: Uploading segment 5284823040/5961139965 size 62914560
2024/02/05 01:36:59 DEBUG : 1.mkv: Uploading segment 5347737600/5961139965 size 62914560
2024/02/05 01:37:11 DEBUG : 1.mkv: Uploading segment 5410652160/5961139965 size 62914560
2024/02/05 01:37:15 DEBUG : 1.mkv: Uploading segment 5473566720/5961139965 size 62914560
2024/02/05 01:37:24 DEBUG : 1.mkv: Uploading segment 5536481280/5961139965 size 62914560
2024/02/05 01:37:28 DEBUG : 1.mkv: Uploading segment 5599395840/5961139965 size 62914560
2024/02/05 01:37:32 DEBUG : 1.mkv: Uploading segment 5662310400/5961139965 size 62914560
2024/02/05 01:37:36 DEBUG : 1.mkv: Uploading segment 5725224960/5961139965 size 62914560
2024/02/05 01:37:40 DEBUG : 1.mkv: Uploading segment 5788139520/5961139965 size 62914560
2024/02/05 01:37:43 DEBUG : 1.mkv: Uploading segment 5851054080/5961139965 size 62914560
2024/02/05 01:37:47 DEBUG : 1.mkv: Uploading segment 5913968640/5961139965 size 47171325
2024/02/05 01:37:54 DEBUG : 1.mkv: quickxor = af56fc2b89b0de80cb80533682d3a32055244bec OK
2024/02/05 01:37:54 INFO  : 1.mkv: Copied (new)
2024/02/05 01:37:54 INFO  : 
Transferred:   	    5.552 GiB / 5.552 GiB, 100%, 10.426 MiB/s, ETA 0s
Transferred:            1 / 1, 100%
Elapsed time:      6m49.1s

2024/02/05 01:37:54 DEBUG : 9 go routines active

If you share the download log, I'm pretty sure the download is multi streamed so it has multiple streams on by default so it's getting you a tricky result there.

      --multi-thread-streams int                    Number of streams to use for multi-thread downloads (default 4)

So 4*15 is about what you are seeing.

The upload is 1 stream as it's not multi threaded so seems to all check out.

That's what I've always got with OneDrive; about 10 to 15MB/s per file upload, or around 40 to 50MB/s for uploading 4 files simultaneously.

Download is much faster at 70 to 80MB/s.

try to bind connection to ipv4 only with --bind 0.0.0.0

this helped on my side.