frigate: [Support]: Retaining recordings looks to cause a memory leak

Describe the problem you are having

I have been testing with frigate, and loving it so far, however when I attempt to enable recording with a retain period, there appears to be a memory leak.

Once a retain period is set within config memory usage slowly, and constantly increases until 80-85% memory usage, once it gets to this level the logs starting being populate with errors explaining that the camera are unable to read frames from ffmpeg process, and eventually ffmpeg process is not running. exiting capture thread…

Once we get to exiting the capture thread, there are then warnings around a corrupt segment of recording, which is then discarded.

Version

0.12.1-367d724

Frigate config file

mqtt:
  enabled: False
  host: 192.168.0.2

ffmpeg:
  hwaccel_args: preset-vaapi
  #hwaccel_args: preset-intel-qsv-h265
  
record:
  enabled: true
  expire_interval: 5
  retain:
    days: 2
    mode: all

birdseye:
  enabled: true
  mode: continuous

cameras:
  garage: # <------ Name the camera
    ffmpeg:
      #hwaccel_args: preset-intel-qsv-h265
      inputs:
        - path: rtsp://<credentials>@192.168.0.11:554//Streaming/Channels/101/?transportmode=unicast.sdp # <----- The stream you want to use for detection
          roles:
            - record
    record:
      enabled: True
  frontgaragedoor: # <------ Name the camera
    ffmpeg:
      inputs:
        - path: rtsp://<credentials>@192.168.0.10:554//Streaming/Channels/101/?transportmode=unicast.sdp # <----- The stream you want to use for detection
          roles:
            - record
    record:
      enabled: True
  backyard: # <------ Name the camera
    ffmpeg:
      inputs:
        - path: rtsp://<credentials>@192.168.0.12:554/Streaming/Channels/101/?transportmode=unicast.sdp # <----- The stream you want to use for detection
          roles:
            - record
    record:
      enabled: True
  frontside: # <------ Name the camera
    ffmpeg:
      inputs:
        - path: rtsp://<credentials>@192.168.0.13:554//Streaming/Channels/101/?transportmode=unicast.sdp # <----- The stream you want to use for detection
          roles:
            - record
    record:
      enabled: True
    # detect:
    #   enabled: False # <---- disable detection until you have a working camera feed
    #   width: 1280 # <---- update for your camera's resolution
    #   height: 720 # <---- update for your camera's resolution

Relevant log output

2023-08-06 21:40:13.567595244  [INFO] Starting Frigate...
2023-08-06 21:40:14.320721355  [2023-08-06 21:40:14] frigate.app                    INFO    : Starting Frigate (0.12.1-367d724)
2023-08-06 21:40:14.346760313  [2023-08-06 21:40:14] peewee_migrate                 INFO    : Starting migrations
2023-08-06 21:40:14.351002327  [2023-08-06 21:40:14] peewee_migrate                 INFO    : There is nothing to migrate
2023-08-06 21:40:14.364214830  [2023-08-06 21:40:14] frigate.app                    INFO    : Output process started: 289
2023-08-06 21:40:14.366256081  [2023-08-06 21:40:14] detector.cpu                   INFO    : Starting detection process: 288
2023-08-06 21:40:14.366262644  [2023-08-06 21:40:14] frigate.detectors              WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
2023-08-06 21:40:14.370280503  [2023-08-06 21:40:14] frigate.app                    INFO    : Camera processor started for garage: 293
2023-08-06 21:40:14.374256406  [2023-08-06 21:40:14] frigate.app                    INFO    : Camera processor started for frontgaragedoor: 294
2023-08-06 21:40:14.378199766  [2023-08-06 21:40:14] frigate.app                    INFO    : Camera processor started for backyard: 295
2023-08-06 21:40:14.382546730  [2023-08-06 21:40:14] frigate.app                    INFO    : Camera processor started for frontside: 296
2023-08-06 21:40:14.386858716  [2023-08-06 21:40:14] frigate.app                    INFO    : Capture process started for garage: 298
2023-08-06 21:40:14.391570486  [2023-08-06 21:40:14] frigate.app                    INFO    : Capture process started for frontgaragedoor: 302
2023-08-06 21:40:14.395536384  [2023-08-06 21:40:14] frigate.app                    INFO    : Capture process started for backyard: 304
2023-08-06 21:40:14.401248209  [2023-08-06 21:40:14] frigate.app                    INFO    : Capture process started for frontside: 309
2023-08-06 21:43:36.313412640  [2023-08-06 21:43:36] frigate.output                 WARNING : Unable to copy frame backyard1691358206.161676 to birdseye.
2023-08-06 21:43:36.313548098  [2023-08-06 21:43:36] frigate.output                 WARNING : Unable to copy frame frontgaragedoor1691358206.206698 to birdseye.
2023-08-06 21:43:36.313631236  [2023-08-06 21:43:36] frigate.output                 WARNING : Unable to copy frame garage1691358206.137755 to birdseye.
2023-08-06 22:52:58.784828974  [2023-08-06 22:52:58] frigate.output                 WARNING : Unable to copy frame frontgaragedoor1691362358.019419 to birdseye.
2023-08-06 22:52:58.785765119  [2023-08-06 22:52:58] frigate.output                 WARNING : Unable to copy frame garage1691362357.932939 to birdseye.
2023-08-06 22:56:23.106994019  [2023-08-06 22:56:23] frigate.output                 WARNING : Unable to copy frame backyard1691362567.198413 to birdseye.
2023-08-06 22:56:23.106997466  [2023-08-06 22:56:23] frigate.output                 WARNING : Unable to copy frame frontgaragedoor1691362567.208843 to birdseye.
2023-08-06 22:56:23.106998907  [2023-08-06 22:56:23] frigate.output                 WARNING : Unable to copy frame garage1691362567.147154 to birdseye.
2023-08-06 23:15:29.463237226  [2023-08-06 23:15:29] frigate.video                  ERROR   : frontside: Unable to read frames from ffmpeg process.
2023-08-06 23:15:29.463595480  [2023-08-06 23:15:29] frigate.video                  ERROR   : frontside: Unable to read frames from ffmpeg process.
2023-08-06 23:15:29.463877892  [2023-08-06 23:15:29] frigate.video                  ERROR   : frontside: Unable to read frames from ffmpeg process.
2023-08-06 23:15:29.464174247  [2023-08-06 23:15:29] frigate.video                  ERROR   : frontside: Unable to read frames from ffmpeg process.
2023-08-06 23:15:29.464444120  [2023-08-06 23:15:29] frigate.video                  ERROR   : frontside: Unable to read frames from ffmpeg process.
2023-08-06 23:15:29.464709435  [2023-08-06 23:15:29] frigate.video                  ERROR   : frontside: Unable to read frames from ffmpeg process.
2023-08-06 23:15:29.464993632  [2023-08-06 23:15:29] frigate.video                  ERROR   : frontside: Unable to read frames from ffmpeg process.
2023-08-06 23:15:29.465258937  [2023-08-06 23:15:29] frigate.video                  ERROR   : frontside: Unable to read frames from ffmpeg process.
2023-08-06 23:15:29.465552226  [2023-08-06 23:15:29] frigate.video                  ERROR   : frontside: Unable to read frames from ffmpeg process.
2023-08-06 23:15:29.467791518  [2023-08-06 23:15:29] frigate.video                  ERROR   : frontside: Unable to read frames from ffmpeg process.
2023-08-06 23:15:29.467921563  [2023-08-06 23:15:29] frigate.video                  ERROR   : frontside: Unable to read frames from ffmpeg process.
2023-08-06 23:15:29.468063639  [2023-08-06 23:15:29] frigate.video                  ERROR   : frontside: Unable to read frames from ffmpeg process.
2023-08-06 23:15:29.468156409  [2023-08-06 23:15:29] frigate.video                  ERROR   : frontside: Unable to read frames from ffmpeg process.
2023-08-06 23:15:29.468235674  [2023-08-06 23:15:29] frigate.video                  ERROR   : frontside: Unable to read frames from ffmpeg process.
2023-08-06 23:15:29.468294408  [2023-08-06 23:15:29] frigate.video                  ERROR   : frontside: Unable to read frames from ffmpeg process.
2023-08-06 23:15:29.468387321  [2023-08-06 23:15:29] frigate.video                  ERROR   : frontside: Unable to read frames from ffmpeg process.
2023-08-06 23:15:29.468459380  [2023-08-06 23:15:29] frigate.video                  ERROR   : frontside: Unable to read frames from ffmpeg process.
2023-08-06 23:15:29.468492727  [2023-08-06 23:15:29] frigate.video                  ERROR   : frontside: Unable to read frames from ffmpeg process.
2023-08-06 23:15:29.468547441  [2023-08-06 23:15:29] frigate.video                  ERROR   : frontside: Unable to read frames from ffmpeg process.
2023-08-06 23:15:29.468606758  [2023-08-06 23:15:29] frigate.video                  ERROR   : frontside: Unable to read frames from ffmpeg process.
2023-08-06 23:15:29.468671038  [2023-08-06 23:15:29] frigate.video                  ERROR   : frontside: Unable to read frames from ffmpeg process.
2023-08-06 23:15:29.468735137  [2023-08-06 23:15:29] frigate.video                  ERROR   : frontside: ffmpeg process is not running. exiting capture thread...
2023-08-06 23:15:29.718174328  [2023-08-06 23:15:29] frigate.record                 WARNING : Failed to probe corrupt segment /tmp/cache/backyard-20230806231506.mp4: 0 - b'[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5589681986c0] moov atom not found\n/tmp/cache/backyard-20230806231506.mp4: Invalid data found when processing input\n'
2023-08-06 23:15:29.718267341  [2023-08-06 23:15:29] frigate.record                 WARNING : Discarding a corrupt recording segment: /tmp/cache/backyard-20230806231506.mp4
2023-08-06 23:15:29.731153260  [2023-08-06 23:15:29] frigate.record                 WARNING : Failed to probe corrupt segment /tmp/cache/frontside-20230806231506.mp4: 0 - b'[mov,mp4,m4a,3gp,3g2,mj2 @ 0x558d866dd6c0] moov atom not found\n/tmp/cache/frontside-20230806231506.mp4: Invalid data found when processing input\n'
2023-08-06 23:15:29.731231468  [2023-08-06 23:15:29] frigate.record                 WARNING : Discarding a corrupt recording segment: /tmp/cache/frontside-20230806231506.mp4
2023-08-06 23:15:31.392519800  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-08-06 23:15:31.392523841  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-08-06 23:15:31.392525211  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-08-06 23:15:31.392526470  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-08-06 23:15:31.392542810  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-08-06 23:15:31.392544286  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-08-06 23:15:31.394759787  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-08-06 23:15:31.394761587  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-08-06 23:15:31.394762810  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-08-06 23:15:31.394763902  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-08-06 23:15:31.394764951  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-08-06 23:15:31.394766056  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-08-06 23:15:31.394767152  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-08-06 23:15:31.394786184  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-08-06 23:15:31.394788063  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-08-06 23:15:31.394789106  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-08-06 23:15:31.395791753  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-08-06 23:15:31.395801431  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-08-06 23:15:31.395802480  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-08-06 23:15:31.395803382  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-08-06 23:15:31.395916589  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-08-06 23:15:31.396210077  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-08-06 23:15:31.396471877  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-08-06 23:15:31.396751980  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: Unable to read frames from ffmpeg process.
2023-08-06 23:15:31.396896610  [2023-08-06 23:15:31] frigate.video                  ERROR   : backyard: ffmpeg process is not running. exiting capture thread...
2023-08-06 23:15:34.498151374  [2023-08-06 23:15:34] watchdog.garage                INFO    : No frames received from garage in 20 seconds. Exiting ffmpeg...
2023-08-06 23:15:34.498312250  [2023-08-06 23:15:34] watchdog.garage                INFO    : Waiting for ffmpeg to exit gracefully...
2023-08-06 23:15:34.501419706  [2023-08-06 23:15:34] watchdog.backyard              ERROR   : Ffmpeg process crashed unexpectedly for backyard.
2023-08-06 23:15:34.501535428  [2023-08-06 23:15:34] watchdog.backyard              ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-06 23:15:34.501977019  [2023-08-06 23:15:34] ffmpeg.backyard.detect         ERROR   : [segment @ 0x5613ece73a40] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
2023-08-06 23:15:34.501979925  [2023-08-06 23:15:34] ffmpeg.backyard.detect         ERROR   : [segment @ 0x5613ece73a40] Non-monotonous DTS in output stream 0:0; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
2023-08-06 23:15:34.501981381  [2023-08-06 23:15:34] ffmpeg.backyard.detect         ERROR   : [AVHWFramesContext @ 0x5613ed1bc380] Failed to sync surface 0x1f: 34 (HW busy now).
2023-08-06 23:15:34.501982625  [2023-08-06 23:15:34] ffmpeg.backyard.detect         ERROR   : [hwdownload @ 0x5613ed1bd240] Failed to download frame: -5.
2023-08-06 23:15:34.501983751  [2023-08-06 23:15:34] ffmpeg.backyard.detect         ERROR   : Error while filtering: Input/output error
2023-08-06 23:15:34.501984977  [2023-08-06 23:15:34] ffmpeg.backyard.detect         ERROR   : Failed to inject frame into filter network: Input/output error
2023-08-06 23:15:34.501986056  [2023-08-06 23:15:34] ffmpeg.backyard.detect         ERROR   : Error while processing the decoded data for stream #0:0
2023-08-06 23:15:34.521929253  [2023-08-06 23:15:34] watchdog.frontside             ERROR   : Ffmpeg process crashed unexpectedly for frontside.
2023-08-06 23:15:34.521932625  [2023-08-06 23:15:34] watchdog.frontside             ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
2023-08-06 23:15:34.521934019  [2023-08-06 23:15:34] ffmpeg.frontside.detect        ERROR   : [rtsp @ 0x5638befcd2c0] DTS discontinuity in stream 0: packet 3 with DTS 152222221323780, packet 4 with DTS 152222221335271
2023-08-06 23:15:34.521935541  [2023-08-06 23:15:34] ffmpeg.frontside.detect        ERROR   : [segment @ 0x5638befdf700] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
2023-08-06 23:15:34.521937024  [2023-08-06 23:15:34] ffmpeg.frontside.detect        ERROR   : [segment @ 0x5638befdf700] Non-monotonous DTS in output stream 0:0; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
2023-08-06 23:15:34.522129606  [2023-08-06 23:15:34] ffmpeg.frontside.detect        ERROR   : [segment @ 0x5638befdf700] Non-monotonous DTS in output stream 0:0; previous: 1678, current: 1678; changing to 1679. This may result in incorrect timestamps in the output file.
2023-08-06 23:15:34.522132009  [2023-08-06 23:15:34] ffmpeg.frontside.detect        ERROR   : [segment @ 0x5638befdf700] Non-monotonous DTS in output stream 0:0; previous: 1679, current: 1679; changing to 1680. This may result in incorrect timestamps in the output file.
2023-08-06 23:15:34.522133657  [2023-08-06 23:15:34] ffmpeg.frontside.detect        ERROR   : [segment @ 0x5638befdf700] Non-monotonous DTS in output stream 0:0; previous: 19326926, current: 19326926; changing to 19326927. This may result in incorrect timestamps in the output file.
2023-08-06 23:15:34.522165421  [2023-08-06 23:15:34] ffmpeg.frontside.detect        ERROR   : [segment @ 0x5638befdf700] Non-monotonous DTS in output stream 0:0; previous: 59002867, current: 59002867; changing to 59002868. This may result in incorrect timestamps in the output file.
2023-08-06 23:15:34.522223675  [2023-08-06 23:15:34] ffmpeg.frontside.detect        ERROR   : [segment @ 0x5638befdf700] Non-monotonous DTS in output stream 0:0; previous: 63706365, current: 63706365; changing to 63706366. This may result in incorrect timestamps in the output file.
2023-08-06 23:15:34.522755110  [2023-08-06 23:15:34] ffmpeg.frontside.detect        ERROR   : [segment @ 0x5638befdf700] Non-monotonous DTS in output stream 0:0; previous: 64421908, current: 64421908; changing to 64421909. This may result in incorrect timestamps in the output file.
2023-08-06 23:15:34.522758585  [2023-08-06 23:15:34] ffmpeg.frontside.detect        ERROR   : [segment @ 0x5638befdf700] Non-monotonous DTS in output stream 0:0; previous: 67285206, current: 67285206; changing to 67285207. This may result in incorrect timestamps in the output file.
2023-08-06 23:15:34.522760420  [2023-08-06 23:15:34] ffmpeg.frontside.detect        ERROR   : [segment @ 0x5638befdf700] Non-monotonous DTS in output stream 0:0; previous: 67336417, current: 67336417; changing to 67336418. This may result in incorrect timestamps in the output file.
2023-08-06 23:15:34.522762097  [2023-08-06 23:15:34] ffmpeg.frontside.detect        ERROR   : [segment @ 0x5638befdf700] Non-monotonous DTS in output stream 0:0; previous: 71835590, current: 71835590; changing to 71835591. This may result in incorrect timestamps in the output file.
2023-08-06 23:15:34.522763391  [2023-08-06 23:15:34] ffmpeg.frontside.detect        ERROR   : [AVHWFramesContext @ 0x5638bf327740] Failed to sync surface 0x1f: 34 (HW busy now).
2023-08-06 23:15:34.522764546  [2023-08-06 23:15:34] ffmpeg.frontside.detect        ERROR   : [hwdownload @ 0x5638bf328600] Failed to download frame: -5.
2023-08-06 23:15:34.522765609  [2023-08-06 23:15:34] ffmpeg.frontside.detect        ERROR   : Error while filtering: Input/output error
2023-08-06 23:15:34.522766743  [2023-08-06 23:15:34] ffmpeg.frontside.detect        ERROR   : Failed to inject frame into filter network: Input/output error
2023-08-06 23:15:34.522769688  [2023-08-06 23:15:34] ffmpeg.frontside.detect        ERROR   : Error while processing the decoded data for stream #0:0

FFprobe output from your camera

ffprobe version n5.1-2-g915ef932a3-20220731 Copyright (c) 2007-2022 the FFmpeg developers
  built with gcc 12.1.0 (crosstool-NG 1.25.0.55_3defb7b)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20220731
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
Input #0, rtsp, from 'rtsp://<credentials>@192.168.0.11:554//Streaming/Channels/101/?transportmode=unicast.sdp':
  Metadata:
    title           : Media Presentation
  Duration: N/A, start: 0.040000, bitrate: N/A
  Stream #0:0: Video: hevc (Main), yuvj420p(pc), 3840x2160 [SAR 1:1 DAR 16:9], 25 fps, 25.08 tbr, 90k tbn

Frigate stats

{
    "backyard": {
        "camera_fps": 5.1,
        "capture_pid": 300,
        "detection_enabled": 1,
        "detection_fps": 0.0,
        "ffmpeg_pid": 314,
        "pid": 296,
        "process_fps": 5.1,
        "skipped_fps": 0.0
    },
    "cpu_usages": {
        "%Cpu(s):": {
            "cpu": "id,",
            "mem": "1.3"
        },
        "1": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "112": {
            "cpu": "1.7",
            "mem": "1.2"
        },
        "119": {
            "cpu": "0.0",
            "mem": "0.1"
        },
        "134": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "135": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "136": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "1360": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "137": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "15": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "1630": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "17": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "1732": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "1767": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "24": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "25": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "26": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "27": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "28": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "283": {
            "cpu": "0.0",
            "mem": "0.5"
        },
        "288": {
            "cpu": "0.3",
            "mem": "0.1"
        },
        "289": {
            "cpu": "71.4",
            "mem": "0.6"
        },
        "29": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "290": {
            "cpu": "5.3",
            "mem": "0.6"
        },
        "294": {
            "cpu": "0.3",
            "mem": "0.6"
        },
        "295": {
            "cpu": "3.0",
            "mem": "0.6"
        },
        "296": {
            "cpu": "0.7",
            "mem": "0.6"
        },
        "297": {
            "cpu": "0.3",
            "mem": "0.6"
        },
        "298": {
            "cpu": "1.0",
            "mem": "0.5"
        },
        "299": {
            "cpu": "1.0",
            "mem": "0.5"
        },
        "30": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "300": {
            "cpu": "1.7",
            "mem": "0.5"
        },
        "301": {
            "cpu": "1.3",
            "mem": "0.5"
        },
        "31": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "310": {
            "cpu": "5.3",
            "mem": "0.4"
        },
        "311": {
            "cpu": "4.7",
            "mem": "0.5"
        },
        "313": {
            "cpu": "0.0",
            "mem": "0.1"
        },
        "314": {
            "cpu": "5.3",
            "mem": "0.4"
        },
        "315": {
            "cpu": "5.3",
            "mem": "0.5"
        },
        "32": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "320": {
            "cpu": "0.0",
            "mem": "0.1"
        },
        "321": {
            "cpu": "0.0",
            "mem": "0.3"
        },
        "322": {
            "cpu": "0.0",
            "mem": "0.1"
        },
        "323": {
            "cpu": "1.7",
            "mem": "0.3"
        },
        "41": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "47": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "78": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "80": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "83": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "89": {
            "cpu": "0.0",
            "mem": "0.1"
        },
        "97": {
            "cpu": "0.0",
            "mem": "0.0"
        },
        "MiB": {
            "cpu": "14451.0",
            "mem": "avail"
        },
        "PID": {
            "cpu": "%CPU",
            "mem": "%MEM"
        },
        "Tasks:": {
            "cpu": "stopped,",
            "mem": "0"
        },
        "top": {
            "cpu": "load",
            "mem": "average:"
        }
    },
    "detection_fps": 6.0,
    "detectors": {
        "cpu": {
            "detection_start": 0.0,
            "inference_speed": 61.28,
            "pid": 289
        }
    },
    "frontgaragedoor": {
        "camera_fps": 5.0,
        "capture_pid": 299,
        "detection_enabled": 1,
        "detection_fps": 5.1,
        "ffmpeg_pid": 311,
        "pid": 295,
        "process_fps": 5.1,
        "skipped_fps": 0.0
    },
    "frontside": {
        "camera_fps": 5.1,
        "capture_pid": 301,
        "detection_enabled": 1,
        "detection_fps": 0.9,
        "ffmpeg_pid": 315,
        "pid": 297,
        "process_fps": 5.3,
        "skipped_fps": 0.0
    },
    "garage": {
        "camera_fps": 5.1,
        "capture_pid": 298,
        "detection_enabled": 1,
        "detection_fps": 0.0,
        "ffmpeg_pid": 310,
        "pid": 294,
        "process_fps": 5.1,
        "skipped_fps": 0.0
    },
    "gpu_usages": {
        "intel-vaapi": {
            "gpu": "3.48 %",
            "mem": "- %"
        }
    },
    "service": {
        "last_updated": 1691365846,
        "latest_version": "0.12.1",
        "storage": {
            "/dev/shm": {
                "free": 259.5,
                "mount_type": "tmpfs",
                "total": 268.4,
                "used": 8.9
            },
            "/media/frigate/clips": {
                "free": 221192.1,
                "mount_type": "ext4",
                "total": 260968.2,
                "used": 26445.1
            },
            "/media/frigate/recordings": {
                "free": 221192.1,
                "mount_type": "ext4",
                "total": 260968.2,
                "used": 26445.1
            },
            "/tmp/cache": {
                "free": 990.3,
                "mount_type": "tmpfs",
                "total": 1000.0,
                "used": 9.7
            }
        },
        "temperatures": {},
        "uptime": 960,
        "version": "0.12.1-367d724"
    }
}

Operating system

Proxmox

Install method

Docker Compose

Coral version

CPU (no coral)

Network connection

Wired

Camera make and model

annke ACZ800 (4)

Any other information that may be helpful

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 16

Most upvoted comments

I have also noticed a similar issue when running Frigate on Proxmox LXC.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

While I haven’t been able to resolve the root cause of this issue, I can clear the cache files with the command echo 3 > /proc/sys/vm/drop_caches within the docker container. This command clears out the pagecache, dentries, and inodes. Not ideal but seems to work until the issue gather more traction and is solved.

I have set the command to be run every hour using cron

The host VM running docker does not have a /tmp/cache directory, see below screen shot of df output image

Within the docker container, the /tmp/cache with memory full is often empty, and only occassionally has files in it image

here is the df output from within the container image