What is the problem you are having with rclone?
Copying data to a SFTP remote via rclone mount commant, takes 100% of cpu usage. It breaks everything else in the server. The main usecase for me is to transfer big video files (10-20GB) from this SFTP remote to my Onedrive remote.
The onedrive remote sometimes has high cpu usage but it doesn't go over 50%.
My server is highly performant.
is there any config I can add or remove which would make it use less cpu?
Run the command 'rclone version' and share the full output of the command.
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 5.15.0-78-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.20.6
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
The command you were trying to run (eg
rclone copy /tmp remote:tmp)
/usr/local/bin/rclone mount seedbox:/var/lib/deluge/Downloads/ /mnt/seedbox/ \
--umask 002 \
--vfs-cache-mode full \
--vfs-cache-max-size 100G \
--vfs-read-chunk-size 512M \
--vfs-cache-max-age 9999h \
--tpslimit 50 \
--log-level INFO \
--log-file /var/log/rclone/rclone-seedbox.log \
The rclone config contents with secrets removed.
type = sftp
host = myhost
user = myuser
key_file = /root/.ssh/id_rsa
key_use_agent = false
use_insecure_cipher = true
shell_type = unix
md5sum_command = md5sum
sha1sum_command = sha1sum
To? From? Both?
Not clear at all what you are doing. Can you show example of command you are using when you see high CPU usage?
I mount rclone SFTP to /mnt/sftp
Whenever I copy anything to and from /mnt/sftp, the CPU usage goes to 150%.
Not sure whether you are looking for more info.
The log file doesn't show anything for this mount.
Try to remove this - old ciphers can be very slow without hardware acceleration.
I deleted it from the rclone config and restarted the mount.
Same problem. CPU usage is high.
Try some other SFTP client - e.g. FileZilla to see whether problem is with
rclone or SFTP and your machine performance in general.
Not sure if I get your point. These are 2 different things. I cannot mount with Filezilla.
This setup was working fine before I deleted the rclone mount command for SFTP and I cannot remember how I had it. It worked fine. Maybe the dev can provide some feedback on which parameters might increase the cpu usage.
correct. But you can use FileZilla to e.g. download one of this big files. If it also gets 100%+ CPU usage then problem is not with
rclone/mount but with SFTP performance in your specific configuration. If not then it indeed can be rclone issue.
For mount itself you can also add:
It should improve performance but I would not expect miracle
This is on an ubuntu server. I cannot use Filezilla. Also I believe even if I could, Filezilla is doing a simple download. I don't think it would give any feedback.
I will try your other recommentation and report back.
Does not have to be FileZilla.
You can just use cmd
The purpose is to see what is CPU load when running simple sftp transfer from your
might check out my howto guide, very simple way to move files from seedbox to cloud.
does the seedbox offer any modern protocols such as webdav?
This didn't do anything. I still see quite a lot of CPU usage 100%+.
My rclone is in a different server than my deluge instance. I would prefer to keep it this way.
My seedbox is a VPS where I installed Deluge myself.
SFTP protocol is quite CPU intensive - this is how it is.
You can try to throttle it down. Start with for example:
And tweak based on what CPU usage your machine can afford.
Also you can try to increase sftp-chunk-size.
There is no known issue with CPU usage and rclone so what you experience is your specific system limits or configuration.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.