I'm using rclone to mount a Synology DS1821+ on my MacbookPro over my wifi network. I want to use it to mount remote photo library and get advantage of the rclone cache to work with Capture One.
If I run BlackMagic disk speed test on a local folder I can get impressive speed results (~2000MB/s read/write).
I've been curious to test it on a remote tmp folder and I see slow results (~40MB/s read/write).
I'm wondering if there is something I can improve to match the read/write speed of my ssd for the files that are cached.
I was convinced that caching worked a bit like Dropbox, i.e. giving the possibility to read/write to disk, and that rclone in the background would take care of the sync "unhurriedly"
Thanks for any suggestion on how to improve.
What is your rclone version (output from rclone version)
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Mac OSX 11.2.3 Big Sur
Which cloud storage system are you using? (eg Google Drive)
Synology DS1821+ in SHR2
The command you were trying to run (eg rclone copy /tmp remote:tmp)
rclone mount magnum:/ magnum --volname magnum --vfs-cache-mode full --log-level=DEBUG --log-file=rclone.log
The rclone config contents with secrets removed.
~/ cat .config/rclone/rclone.conf
[magnum]
type = sftp
host = 192.168.1.2
user = fabio
port = 22
pass = xxx
key_file_pass = xxx
md5sum_command = none
sha1sum_command = none
A log from the command with the -vv flag
link to rclone.log on pastebin that will expire in 30 days: where you see [...] I've cut the log with duplicated lines. I can paste the complete one if needed.
~/ rclone mount ~/Desktop/tmp magnum --volname magnum --vfs-cache-mode full -o iosize=33554432 --log-level=DEBUG --log-file=rclone155beta-local-iosize.log
~/ rclone mount ~/Desktop/tmp magnum --volname magnum -o iosize=33554432 --log-level=DEBUG --log-file=rclone155beta-local-iosize-only.log
no improvements so far, still around 40Mb/s. Let me know if there is something else I can test.
Looking at your log all the io is still being done in 4k chunks.
not sure, but this is probably due to the fact the Blackmagic Speedtest is stressing the disk writing/reading small files of that size.
I made the following tests, hoping I got well your suggestions:
~/ rclone mount ~/Desktop/tmp magnum --volname magnum -o iosize=131072 --log-level=DEBUG --log-file=rclone155beta-local-iosize-131072.log
~/ rclone mount ~/Desktop/tmp magnum --volname magnum -o iosize=16777216 --log-level=DEBUG --log-file=rclone155beta-local-iosize-16777216.log
~/ rclone mount ~/Desktop/tmp magnum --volname magnum -o iosize=8388608 --log-level=DEBUG --log-file=rclone155beta-local-iosize-8388608.log
~/ rclone mount ~/Desktop/tmp magnum --volname magnum --max-read-ahead 4k --log-level=DEBUG --log-file=rclone155beta-local-max-read-ahead-4k.log
~/ rclone mount ~/Desktop/tmp magnum --volname magnum --max-read-ahead 128k --log-level=DEBUG --log-file=rclone155beta-local-max-read-ahead-128k.log
~/ rclone mount ~/Desktop/tmp magnum --volname magnum --log-level=DEBUG --log-file=rclone155beta-local-tranfer-huge-file.log
I wanted to do a different test then try to move a folder on the mounted folder it took around 4 minutes to move it:
~/ rclone mount ~/Desktop/tmp magnum --volname magnum --vfs-cache-mode full --log-level=DEBUG --log-file=rclone155beta-local-huge-file.log
I managed to replicate this on Linux. I've tried a lot of things to fix it but haven't succeeded yet. I've asked for help on the cgofuse issue tracker.
Hi @ncw, I tried with these 2 commands on the local folder:
~/ rclone mount ~/Desktop/tmp magnum --volname magnum -o direct_io --log-level=DEBUG --log-file=rclone155beta-local-direct-io.log
~/ rclone mount ~/Desktop/tmp magnum --volname magnum --vfs-cache-mode full -o direct_io --log-level=DEBUG --log-file=rclone155beta-local-direct-io-cache-full.log
And no improvements, still around 40Mb/s. Here the logs:
I tried this command on the local disk; let me know if this is what you are suggesting:
~/ rclone mount ~/Desktop/tmp magnum --volname magnum --vfs-cache-mode full -o big_writes --log-level=DEBUG --log-file=rclone155beta-local-direct-big-writes.log
hi @darthShadow can you share your command? I'm not lucky.
With the following command I got an error (see screenshot attached) and Blackmagic is not able to write the test files.
This is the log:
Last login: Thu Mar 25 12:15:43 on ttys000
~/ rclone mount ~/Desktop/tmp magnum --volname magnum -o blocksize=1048576 --log-level=DEBUG --log-file=rclone155beta-local-blocksize.log