What is the problem you are having with rclone?
Mounting Ceph S3 using rclone, memory consumption becomes abnormal after continuously writing files for a short period.
Using top to monitor, the RES memory usage keeps increasing. After writing around 200,000 files of 512KB each, the RES grows to 4.2GB. Even after calling rc vfs/forget and rc core/gc, the reduction in memory usage is insignificant.
In comparison, with rclone version 1.67 under the same workload of writing 200,000 similar files, the RES memory usage is only 900MB.
I suspect this is related to the upgrade to AWS Go SDK v2, as we upgraded the SDK version after rclone 1.67. ( I also tried versions 1.69.3 and 1.70.2, and they are both affected.)
Run the command 'rclone version' and share the full output of the command.
[root@lbr-rclone ~]# rclone version
rclone v1.70.3
- os/version: almalinux 9.5 (64 bit)
- os/kernel: 5.14.0-503.23.2.el9_5.x86_64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.24.4
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
ceph S3 (RGW)
The command you were trying to run (eg rclone copy /tmp remote:tmp)
/usr/bin/rclone mount zos:lbr-rclone-test /mnt/rc --vfs-cache-mode full --cache-dir /cache --log-file /var/log/rc.log --log-level info --uid 1000 --gid 1000 --allow-other --rc --rc-addr=127.0.0.1:5572
The rclone config contents with secrets removed.
[zos]
type = s3
provider = Ceph
access_key_id = akak
secret_access_key = sksk
endpoint = http://xxx.xxx.xxx.xxx
A log from the command with the -vv flag
nothing interesting threre...
pmap
pmap `pidof rclone`
5124: /usr/bin/rclone mount zos:lbr-rclone-test /mnt/rc --vfs-cache-mode full --cache-dir /cache --log-file /var/log/rc.log --log-level info --uid 1000 --gid 1000 --allow-other --rc --rc-addr=127.0.0.1:5572
0000000000400000 30416K r-x-- rclone
00000000021b4000 33552K r---- rclone
0000000004278000 2172K rw--- rclone
0000000004497000 332K rw--- [ anon ]
000000c000000000 5062656K rw--- [ anon ]
000000c135000000 49152K ----- [ anon ]
00007f846299f000 61404K rw--- [ anon ]
00007f846659f000 27708K rw--- [ anon ]
00007f84680b4000 18668K rw--- [ anon ]
00007f84692f9000 12060K rw--- [ anon ]
00007f8469ec1000 7956K rw--- [ anon ]
00007f846a68d000 5772K rw--- [ anon ]
00007f846ac3a000 3524K rw--- [ anon ]
00007f846afac000 2692K rw--- [ anon ]
00007f846b252000 1800K rw--- [ anon ]
00007f846b418000 1088K rw--- [ anon ]
00007f846b530000 6788K rw--- [ anon ]
00007f846bbd1000 1024K rw--- [ anon ]
00007f846bcd1000 68K rw--- [ anon ]
00007f846bce2000 1144K rw--- [ anon ]
00007f846be00000 30720K rw--- [ anon ]
00007f846dc00000 904K rw--- [ anon ]
00007f846dce2000 263680K ----- [ anon ]
00007f847de62000 12K rw--- [ anon ]
00007f847de65000 524276K ----- [ anon ]
00007f849de62000 12K rw--- [ anon ]
00007f849de65000 293556K ----- [ anon ]
00007f84afd12000 4K rw--- [ anon ]
00007f84afd13000 36692K ----- [ anon ]
00007f84b20e8000 4K rw--- [ anon ]
00007f84b20e9000 4580K ----- [ anon ]
00007f84b2562000 4K rw--- [ anon ]
00007f84b2563000 508K ----- [ anon ]
00007f84b25e2000 384K rw--- [ anon ]
00007ffe31437000 132K rw--- [ stack ]
00007ffe315eb000 16K r---- [ anon ]
00007ffe315ef000 8K r-x-- [ anon ]
ffffffffff600000 4K --x-- [ anon ]
total 6485472K
