question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use tmpfs for temp recordings and only write to media storage during events

See original GitHub issue

As per comments here, the recording changes in 0.9 are positive and have long-term storage benefits, but the continual recording requires any external storage/NAS devices to stay powered on/spinning. If tmpfs could be used to store temporary clips so Frigate only writes to media storage during detected events (if retain_days: 0), then any external devices/NAS could power down/sleep during periods of no object detection. i.e. when no one is home, or overnight.

(I have seen a small increase in my rack’s power usage since moving to 0.9, with my 2-bay NAS running 24/7.)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:6
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
blakeblackshearcommented, Sep 30, 2021

There are some changes needed to make this work, but it’s on the list for post 0.9.0.

0reactions
blakeblackshearcommented, Dec 13, 2021

The days section just moved under retain. See example here: https://github.com/blakeblackshear/frigate/discussions/2447

Note that the new retain modes apply to the cache copy operation too. Using the new modes will reduce writes to disk even more.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to make /tmp directory use RAM over FileSystem - Medium
For faster access to /tmp directory, like you are storing a video stream in it, it would then be best to have it...
Read more >
transcoding to RAM : r/PleX - Reddit
The SSD I use for transcoding (and as a general temp drive) has a 1200TB write rating, and in the ~2.5 years I've...
Read more >
Temporary files: RAM or disk? - LWN.net
Mounting /tmp on tmpfs puts all of the temporary files in RAM. ... of the mount options, but the memory is only actually...
Read more >
How can I use RAM storage for the /tmp directory ... - Ask Ubuntu
My temporary files never get written to the disk. They get written to a RAM disk. I did put tmpfs /tmp tmpfs defaults,noatime,mode=1777...
Read more >
PiKrellCam: motion vector detect + OSD web interface - Page 44 ...
wuster wrote: Hi I am trying to run a command at the end of the motion detect event. So in pikrejllcam.conf I am...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found