How do I cache read data on the RAM


I'm using VFS cache at the moment with Plex and SMB usingthese settings:

media.service (excerpt)
ExecStart=/usr/bin/rclone mount \
        --config=/home/pi/.config/rclone/rclone.conf \
        --read-only \
        --allow-other \
        --dir-cache-time 24h \
        --vfs-cache-mode minimal \
#       --cache-dir=/mnt/1TB \
        --cache-dir=/dev/shm \
        --buffer-size 256M \
        -v \
        --log-file /opt/media.log \
        media:/ /mnt/media

I may be wrong, but it doesn't look like /dev/shm is filling up when I'm accessing any file from any device using SMB.

Is using the cache backend the only way to cache the read data in the RAM?


When using --vfs-cache-mode minimal you'll only get file in the cache if something opens then for read and write.

If you use --vfs-cache-mode full then rclone will download the files first before serving them. This works OK for small files but for large files the cache backend is a better solution.

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