Skip to content

RAM rclone_cache

Join DockServer on Discord Total Releases Downloaded from GitHub Latest Official Release on GitHub GNU General Public License

rclone_cache into ram

Since our servers usually have a lot of ram that is not used at all, there is a possibility to save some ssd memory by putting the rclone_cache into the ram.

IMPORTANT! | Only for advanced Users

You should give rclone at least 50GB cache! This tutorial is only recommended if you have at least 128GB RAM.

Setup

For this we proceed as follows:

  1. how much ram is available? in my example 128GB
  2. the /dev/shm directory is the ram cache in linux, by default ½ of the ram However, we can increase this.
  3. sudo nano /etc/fstab add tmpfs /dev/shm tmpfs defaults,size=116g 0 0

  4. disable swap: sudo swapoff -a

  5. sudo nano /opt/appdata/system/mount/mount.env

  6. change TMPRCLONE=/ram_cache

  7. change VFS_CACHE_MAX_SIZE=80G

  8. reboot machine sudo reboot -n

  9. check if /mnt/unionfs get still mounted, if not redeploy mount app ( sudo mountpoint /mnt/unionfs/ & sudo docker log mount )

Support

Kindly report any issues/broken-parts/bugs on github or discord

  • Join our Discord: https://discord.gg/A7h7bKBCVa for Support
Back to top