Hi, i started using rclone a while ago, mostly i used rclone copy to upload a huge file to google drive, manly around 1TB with the following code:rclone copy -v -vv --stats 5s --drive-chunk-size 512M --fast-list D:\"file-name" remote:.
With this command, i can get around 50MB/s upload speed.
However, when i mount the remote: withrclone mount -v -vv --fast-list --drive-chunk-size 512M remote: K: and copy a local file to the mounted g-drive in WINDOWS file explorer, the upload speed caps out at 2xMB/s, which is quite slow.
So, is there any way i could make the speed of copying files to the mounted drive be the same as copying with rclone?
(I tried using buffer-size but that doesn’t help much, as my file size is huge)
using v1,46 rclone if my memory is correct.
And yes, i did make my own api key and client-id to increase copy speed.
However, i believe it is not V3 api limits because i never saw any rate limited message while running with “-v -vv”, and using rclone copy can achieve 50MB/s speed, so i think it is something related to the rclone mount?
while manually copying to rclone mounted drive , windows explorer showed 2xMB/s, even by manually calculating the speed by size/time, so i am sure windows is reporting the correct speed
So is there any way i could use copy method on rclone mount?
In fact, let me tell you my use case.
Normally i would have a bunch of small files generated by a program, and i have 2 way to merge them.
Using cmd with copy “xxx+ yyy” and then use rclone copy
Program merge the file and it automatically write it to the rclone mounted drive.
Since 2 is more convenient, i would prefer using method 2. However, from your reply, it seems that it is not possible for me to use method 2 while having decent speed
The first part was the regular copy and the second part is a chunked upload. At that point, it really doesn’t matter as the upload happens in the background anyway. It also honors the drive-chunk-size using that method as well, whereas the normal writes do their own thing.
But then…what should i set the vfs write cache size to.
As i said, i mainly copy large files to g drive, and if i need to have 1tb local space for cache in order to upload a 1tb file eith fast speed…thats a big problem…So is there any formula for the size of cache per uploaded file size?
Or, can i set the location of the cache to the location of the file i need to upload, so it could start using copy immediately?(detecting the file is in the cache directory, so assume the file is in the cache and start upload immediately, without putting the file in cache)
There is cache-tmp-upload-path. Which I believe you can move the file to and it’ll trigger the next wait time (configurable). Might be an option for you.
Thanks for your reply.
Since i will upload 5TB file at some time.And i dont have another 5TB free partition in my windows machine for cache.Is there any way i can use cache to speed up 5TB upload?
What if my cache directory size is smaller than the file size(ie: 1tb cache but 5tb file), what will happen then?
And…is there any way that i can merge bunch of small files into a large files on rclone copy. Like merging 1.abc and 2.abc into a 1+2.abc file on the REMOTE only. Should i use rclone cat? But i don’t understand how to use rclone cat to merge 2 file into 1 on the fly
Thanks for your reply,
So if i copy a 5tb file to a 1tb cache, it will first upload the chunk in the cache, then copy the files to the cache again? and upload it again?
I believe the way it works is the tmp upload path doesn’t have a limit. You’ll move or copy a file there, it will upload it. Add then it will move that file to the regular cache. If it’s too big based on your limit, it simply won’t and delete it. If it was small enough, it’ll add it and add it grows it’ll purge up to the max size.
Hi, i tried using vfs-cache-mode writes and cache-dir to a 1G drive, while copying a 5TB file to a mounted remote, IO error always occur, and rclone shows something like “cannot update because the file is still using”? i don’t remember correctly. So, is there any way for me to use a small cache, but achieve copy speed with mount? Thanks