--vfs-cache-mode full still rebuilds cache on remount

I observed that even after shifting from --vfs-cache-mode writes to --vfs-cache-mode full the cache completely rebuilds when i unmount and remount a remote(gdrive). What is the meaning of caching if eventually the cache will rebuild itself after unmount and remount? I usually view my zoom videos(huge files so would like to cache it as it buffers a bit) from the remote and want it to be cached and buffer less while viewing it again but on remounting the remote after maybe a restart, the whole cache rebuilds and the video buffers again. My current mount command is:

rclone mount --daemon --allow-other --vfs-read-chunk-size 32M --vfs-cache-max-size 10G --poll-interval 15m --vfs-cache-mode full --tpslimit 10 --tpslimit-burst 0 --cache-dir /Users/ishaanrathod/rclone/cache --disable About GDrive: /Users/ishaanrathod/rclone/GDrive

Please explain me whats the reason behind cache afterall?

Also would like to know if there are any other directories where cache is being built, i would like to be aware of it and would want to shift it to a custom folder to be aware of disk space usage as i do not have a lot of disk space and hence using remote storage.

hi,
hard to know the exact issue, as no debug log was posted and no rclone version was posted??

when you restart the mount, rclone as to figure out what was in the cache, remove old/stale data.

use a rclone debug log, can see exactly what rclone is doing.

when rclone runs out of space, it removes the old data not in use/locked.
maybe need to increase the value for --vfs-cache-max-size

When rclone mount is invoked on Unix with --daemon flag, the main rclone program will wait for the background mount to become ready or until the timeout specified by the --daemon-wait flag
might test --daemon-wait=0

rclone config paths

The remount really has nothing to do with it.

By default, anything older than an hour is removed from the cache.

--vfs-cache-max-age duration           Max time since last access of objects in the cache (default 1h0m0s)
1 Like

Is the default duration 1hr?

i’m sorry i did not provide logs because i just wanted to understand a concept, im not facing any errors

can u share the flag used to set a custom path for it?

Im guessing u r talking about the config file path, that’s fine. I just wanna know if my cache is getting built up somewhere else on the system too and if there’s no max limit to it i would want to change the folder path and apply a max limit to it. New to rclone and do not understand these arguments!

Im using a mac btw

--cache-dir string                     Directory rclone will use for caching.

rclone config paths, run the command, and check the docs.
Show paths used for, ..., cache, ...
also, the debug output would show that info.

--vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off)
that is not a hard limit, as if files are in use, rclone will not remove them.

okay so this is the only path where cache is used, i have already used this flag to set a custom path

got it!

btw what is the default duration of --vfs-cache-max-age duration? maybe this is a problem

--vfs-cache-max-age duration Max time since last access of objects in the cache (default 1h0m0s)

add -vv to the command for debug output.
rclone will let you know when a file is added to the cache, removed from the cache. when the file is already in the cache, when chunks of a file need to be downloaded.