Rclone mount RAM cache

Hi, i want to use RAM caching on my headless server (to make video seeking, and random access faster) for my rclone mount which have backend like this: hasher(crypt(1fichier))

I don’t have too much RAM on my server (16 gb), but the most of it isnt used.

I was thinking about setting vfs-cache-mode full, and setting /tmp/ (ramdrive) as cache location. But what if the file size is bigger than the max vfs size, or the tmpfs size?

Can you help me what is the best, and bullet proof way to achieve this?

1 Like

As per docs:

If using --vfs-cache-max-size or --vfs-cache-min-free-space note that the cache may exceed these quotas for two reasons. Firstly because it is only checked every --vfs-cache-poll-interval. Secondly because open files cannot be evicted from the cache.

Use disk for cache. It is almost always sufficient. I genuinely doubt that video seeking requires RAM speed…

Or if you insist on using RAM then get whatever RAM is needed for your files and usage.

1 Like