Vfs-cache-mode full vs writes

I just wanted to check something in order to try and improve my current setup. The below config is working fine but I recently changed some values and changed the --vfs-cache-mode to 'full' from 'writes'.

I was wondering what are the benefits of using full instead of writes and is there anything else I could possibly do to improve my mount args? Also when using 'full' do I always need 'vfs-read-ahead'?

I'm not having any issues specifically, but just wondering if there is any way to improve things and if there are any potential gains that I'm missing.

What is the problem you are having with rclone?

rclone v1.59.1

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

Google Drive

The rclone config contents with secrets removed.

ExecStart=/usr/bin/rclone mount \
  --log-file ${LOGS}/rcrypt.log \
  --log-level INFO \
  --dir-cache-time 2000h \
  --poll-interval 10s \
  --umask 002 \
  --allow-other \
  --vfs-cache-max-age 90h \
  --vfs-cache-mode full \
  --vfs-cache-max-size 100G \
  --vfs-cache-poll-interval 5m \
  --allow-other \
  --allow-non-empty \
  --config ${RCLONEHOME}/rclone.conf \

hi,

the goal of the vfs cache, is to have rclone emulate traditional local file system.
and how much emulation is required.

in short, one primary difference is how to handle read-only files
writes - files opened for read only are read directly from the remote, files are not cached
full - files opened for read only are cached.

let us know what you do with the mount, plex/emby/streaming, upload files or what?
we can suggest tweaks to your command and how the vfs cache mode affects that.

and can you post the redacted output of the rclone config file?

1 Like

Thanks.

Here is my redacted config. I use the mount for Plex/Sonarr/Radarr. I move the files from local SSD to remote every night at specific time with Rclone Move.

[gdrive]
type = drive
scope = drive
token = {"access_token":"[REDACTED]","token_type":"Bearer","refresh_token":"[REDACTED]","expiry":"2022-12-13T16:22:38.551830446+01:00"}
client_secret = [REDACTED]
client_id = [REDACTED]
root_folder_id = [REDACTED]
team_drive =

[gcrypt]
type = crypt
remote = gdrive:All/Encrypt
filename_encryption = standard
directory_name_encryption = true
password = [REDACTED]
password2 = [REDACTED]

for streaming, the cache is not required, as that is random access reads.
in that case, some rcloners do not use the cache at all.

it is not clear what practical value that flag is, almost never used.

in general, should not be used.

check out
https://github.com/animosity22/homescripts

https://github.com/animosity22/homescripts/blob/master/systemd/rclone-drive.service

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.