I see that, yes. I tried full mode, creating a 2G memory tmpfs because I don't want to store cache files in secondary storage due to high IOwait and stuff.
rc-cache /mnt/rc_cache tmpfs size=2G,noauto,defaults,uid=1001,gid=1001,mode=0755 0 0
However, as you might expect once it was full, another file could not be opened. It loads in chunks but cannot empty in FIFO manner.
#--vfs-cache-mode=full \
#--vfs-cache-max-size=2000M \
#--vfs-cache-max-age 3h \
#--vfs-read-ahead 500M \
#--cache-dir=/mnt/rc_cache/crypt \
#--multi-thread-streams 4 \
The current implementation I'm using is almost perfect, except if it didn't drop the cache.
I'm using mergerFS and the dropcacheonclose
option doesn't seem to have an effect on this.