Suggestion on mounting /cache on tmpfs
See original GitHub issueI would recommend adding a bit in the Readme to mount the cache folder on to tmpfs or another ram based filesystem if possible to reduce wear on SSD’s and SD cards.
With 3 cameras keeping 10s cache each I only need about 50MB of cache, but to be safe I’ve gone with 100MB by adding this to my /etc/fstab and mapping it in my docker-compose.yml file. I know that fstab isn’t guaranteed to stay in ram compared to ramfs but ramfs can’t be limited in size which could cause other issues.
none /mnt/frigate-cache tmpfs nodev,nosuid,noexec,nodiratime,size=100M 0 0
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Is it a good idea to put ~/.cache in a tmpfs?
Sounds like you do have a problem. Yeah, so if the cache includes the tracker database, when you "clean" it you're just going...
Read more >Mount a folder into the RAM with TMPFS - WP Rocket
To take advantage of good performance if you are using a HDD a good solution is to mount the cache folder directly in...
Read more >Mount Cache Folders To Memory - RhodeCode Documentation
To increase the performance of folders containing cache data, you can mount them to memory. The following folders specified in the rhodecode.ini file...
Read more >Storing Files/Directories In Memory With tmpfs - HowtoForge
This article shows how you can store files and directories in memory instead of on the hard drive with the help of tmpfs...
Read more >tmpfs - Raspberry Pi Forums
Many Linux distros have /tmp mounted as tmpfs by default. There are also several other tmpfs filesystems, try the command "df" to see...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes I was going to suggest the same. Here is my Docker Compose (feel free to paste into docs)
Looks like this had been added to the readme now so closing.