Frigate 0.15 - GPU usage goes from ~16% to < 1% after about an hour #16317
-
Describe the problem you are havingHi All: I've noticed since upgrading to the 0.15 RC2 that my GPU % drops to 1% or lower after starting frigate. If I reboot the machine on which Home Assistant OS is running, then the GPU is back to about 16%. However, after an hour, it drops suddenly to 1% -- and restarting Home Assistant and Frigate doesn't change that, only a reboot of the whole machine brings it back. The log info below is for the successful server restart, when GPU is running (PS. Passwords changed to $XXX for purpose of publicly posting config.) Version0.15.0-cea210d Frigate config file# PW REMOVED FOR GITHUB
database:
path: /config/frigate.db
model:
path: plus://XXX
birdseye:
enabled: true
mode: objects
inactivity_threshold: 300
quality: 1
restream: true
layout:
scaling_factor: 5.0
go2rtc:
streams:
birdseye:
- rtsp://10.0.1.21:8554/birdseye
- ffmpeg:back#video=h264#audio=aac
driveway_hi:
- rtsp://admin:[email protected]:554/h264Preview_01_main
- ffmpeg:back#video=h264#audio=aac
# sidegate_hi:
# - rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0
# - ffmpeg:back#video=h264#audio=aac
# garage_hi:
# - rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0&authbasic=64
# - ffmpeg:back#video=h264#audio=aac
semantic_search:
enabled: True
reindex: False
model_size: "large"
genai:
enabled: true
provider: openai
api_key: “XXX”
model: gpt-4o
mqtt:
host: core-mosquitto
user: homeassistant
password: XXX
logger:
# Optional: Default log verbosity (default: shown below)
default: info
snapshots:
enabled: true
retain:
default: 60
record:
enabled: true
sync_recordings: true
retain:
days: 20
mode: motion
alerts:
retain:
days: 40
pre_capture: 5
post_capture: 5
detections:
retain:
days: 40
pre_capture: 5
post_capture: 5
detectors:
coral:
type: edgetpu
device: usb
audio:
enabled: True
listen:
- bark
- fire_alarm
- scream
- speech
- yell
ffmpeg:
hwaccel_args: preset-vaapi
output_args:
record: preset-record-generic-audio-aac
cameras:
1driveway:
ffmpeg:
inputs:
- path: rtsp://admin:[email protected]:554/h264Preview_01_main
roles:
- record
- detect
- audio
detect:
width: 1536
height: 576
fps: 5
motion:
mask:
- 382,0,379,34,0,38,0,0
objects:
filters:
car:
mask:
- 456,471,761,457,722,108,570,123
- 1321,166,1306,205,1237,149,1255,128
- 1127,0,1114,60,1020,50,1003,0
- 1316,329,1424,426,1236,576,1153,493
track:
- person
- car
- dog
5front_door:
ffmpeg:
inputs:
- path: rtsp://admin:[email protected]:554/h264Preview_01_main
roles:
- detect
- record
- audio
detect:
width: 1280
height: 960
fps: 5
objects:
filters:
car:
mask:
- 509,446,519,467,463,473,459,448
- 845,464,871,471,870,433,845,438
- 804,465,837,466,836,440,806,439
track:
- person
- dog
- amazon
- ups
- fedex
- package
- face
2back_door:
mqtt:
timestamp: false
bounding_box: false
crop: true
quality: 100
height: 500
ffmpeg:
inputs:
- path: rtsp://admin:[email protected]:554/h264Preview_01_main
roles:
- detect
- record
- audio
detect:
width: 1280
height: 960
fps: 5
motion: {}
objects:
filters:
car:
mask:
- 493,471,554,538,361,572,208,519
track:
- person
- dog
- amazon
- ups
- fedex
- package
- face
7backyard:
genai:
enabled: false
ffmpeg:
inputs:
- path: rtsp://admin:[email protected]:554/h264Preview_01_main
roles:
- record
- detect
- audio
detect:
width: 2304
height: 860
fps: 5
motion:
mask:
- 415,334,706,0,472,0,0,0,0,384,0,487
objects:
track:
- person
- dog
- bicycle
- motorcycle
- bus
- amazon
- ups
- fedex
- package
- face
- bird
- squirrel
- fox
- raccoon
- cat
8backyard2b:
genai:
enabled: false
ffmpeg:
inputs:
- path: rtsp://admin:[email protected]:554/h264Preview_01_main
roles:
- record
- detect
- audio
detect:
width: 1920
height: 1080
fps: 5
objects:
track:
- person
# - car
- dog
# - bicycle
- motorcycle
# - bus
- amazon
- ups
- fedex
# - package
- face
- bird
- squirrel
- fox
- raccoon
- cat
3back_gate:
ffmpeg:
inputs:
- path: rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0
roles:
# - record
- detect
- audio
detect:
width: 1920
height: 1080
fps: 5
objects:
track:
- person
- dog
motion:
mask:
- 0,892,228,838,337,733,343,467,274,278,0,159
- 1893,0,1891,38,1342,36,1342,0
# ----------------
4front_yard:
ffmpeg:
inputs:
- path: rtsp://admin:[email protected]:554/h264Preview_01_main
roles:
- record
- detect
- audio
detect:
width: 2304
height: 860
fps: 5
objects:
track:
- person
- car
- dog
- bicycle
- motorcycle
- bus
- amazon
- ups
- fedex
- package
- face
- bird
- squirrel
- fox
- raccoon
- cat
filters:
car:
mask:
- 1145,0,1145,55,1040,49,1038,0
- 2078,400,2221,506,2276,443,2132,362
- 689,49,687,89,621,91,611,47
person:
mask:
- 1320,36,1313,76,1226,63,1233,29
- 814,81,881,81,883,36,816,47
9garage1:
genai:
enabled: false
ffmpeg:
inputs:
- path: rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0&authbasic=64
roles:
- record
- detect
- audio
detect:
width: 1920
height: 1080
fps: 5
objects:
track:
- person
- dog
version: 0.15-1 docker-compose file or Docker CLI commandN/A - running as Home Assistant ADD ON Relevant Frigate log outputs6-rc: info: service s6rc-fdholder: starting
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service s6rc-fdholder successfully started
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service log-prepare: starting
s6-rc: info: service log-prepare successfully started
s6-rc: info: service nginx-log: starting
s6-rc: info: service go2rtc-log: starting
s6-rc: info: service frigate-log: starting
s6-rc: info: service certsync-log: starting
s6-rc: info: service go2rtc-log successfully started
s6-rc: info: service go2rtc: starting
s6-rc: info: service nginx-log successfully started
s6-rc: info: service frigate-log successfully started
s6-rc: info: service certsync-log successfully started
s6-rc: info: service go2rtc successfully started
s6-rc: info: service go2rtc-healthcheck: starting
s6-rc: info: service frigate: starting
s6-rc: info: service go2rtc-healthcheck successfully started
s6-rc: info: service frigate successfully started
s6-rc: info: service nginx: starting
2025-02-04 19:44:00.918534860 [INFO] Preparing new go2rtc config...
2025-02-04 19:44:00.918518139 [INFO] Preparing Frigate...
2025-02-04 19:44:00.918536331 [INFO] Starting NGINX...
2025-02-04 19:44:00.924895519 [INFO] No TLS certificate found. Generating a self signed certificate...
2025-02-04 19:44:00.946553038 [INFO] Got IP address from supervisor: 10.0.1.21
2025-02-04 19:44:00.966672440 [INFO] Got WebRTC port from supervisor: 8555
2025-02-04 19:44:01.059802916 [INFO] Starting Frigate...
2025-02-04 19:44:01.602497896 [INFO] Starting go2rtc...
2025-02-04 19:44:01.682059420 14:44:01.682 INF go2rtc platform=linux/amd64 revision=b2399f3 version=1.9.2
2025-02-04 19:44:01.682072971 14:44:01.682 INF config path=/dev/shm/go2rtc.yaml
2025-02-04 19:44:01.682376593 14:44:01.682 INF [api] listen addr=:1984
2025-02-04 19:44:01.682402940 14:44:01.682 INF [rtsp] listen addr=:8554
2025-02-04 19:44:01.682491103 14:44:01.682 INF [webrtc] listen addr=:8555/tcp
s6-rc: info: service nginx successfully started
s6-rc: info: service certsync: starting
2025-02-04 19:44:02.595580043 [INFO] Starting certsync...
s6-rc: info: service certsync successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
2025-02-04 19:44:02.701297769 127.0.0.1 - - [04/Feb/2025:14:44:02 -0500] "" 400 0 "-" "-" "-"
2025-02-04 19:44:04.173565870 [2025-02-04 14:44:04] frigate.util.config INFO : Checking if frigate config needs migration...
2025-02-04 19:44:04.202129774 [2025-02-04 14:44:04] frigate.util.config INFO : frigate config does not need migration...
2025-02-04 19:44:04.250496295 [2025-02-04 14:44:04] frigate.app INFO : Starting Frigate (0.15.0-cea210d)
2025-02-04 19:44:04.295552998 [2025-02-04 14:44:04] frigate.app INFO : Creating directory: /tmp/cache
2025-02-04 19:44:04.335619655 [2025-02-04 14:44:04] peewee_migrate.logs INFO : Starting migrations
2025-02-04 19:44:04.335752068 [2025-02-04 14:44:04] peewee_migrate.logs INFO : There is nothing to migrate
2025-02-04 19:44:04.346769837 [2025-02-04 14:44:04] frigate.app INFO : Recording process started: 378
2025-02-04 19:44:04.346817221 [2025-02-04 14:44:04] frigate.app INFO : Review process started: 380
2025-02-04 19:44:04.347923815 [2025-02-04 14:44:04] frigate.app INFO : go2rtc process pid: 98
2025-02-04 19:44:04.355195620 [2025-02-04 14:44:04] detector.coral INFO : Starting detection process: 394
2025-02-04 19:44:05.860997519 2025/02/04 14:44:05 [error] 192#192: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", subrequest: "/auth", upstream: "http://127.0.0.1:5001/auth", host: "127.0.0.1:5000"
2025-02-04 19:44:05.861013253 2025/02/04 14:44:05 [error] 192#192: *2 auth request unexpected status: 502 while sending to client, client: 127.0.0.1, server: , request: "GET /api/version HTTP/1.1", host: "127.0.0.1:5000"
2025-02-04 19:44:06.970062328 [2025-02-04 14:44:04] frigate.app INFO : Embedding process started: 396
2025-02-04 19:44:06.975059951 [2025-02-04 14:44:04] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as usb
2025-02-04 19:44:06.980169059 [2025-02-04 14:44:04] frigate.app INFO : Output process started: 419
2025-02-04 19:44:06.980208769 [2025-02-04 14:44:06] frigate.detectors.plugins.edgetpu_tfl INFO : TPU found
2025-02-04 19:44:07.108221557 [2025-02-04 14:44:07] frigate.app INFO : Camera processor started for 1driveway: 542
2025-02-04 19:44:07.115776605 [2025-02-04 14:44:07] frigate.app INFO : Camera processor started for 5front_door: 543
2025-02-04 19:44:07.116243745 [2025-02-04 14:44:07] frigate.app INFO : Camera processor started for 2back_door: 549
2025-02-04 19:44:07.120405113 [2025-02-04 14:44:07] frigate.app INFO : Camera processor started for 7backyard: 561
2025-02-04 19:44:07.128040219 [2025-02-04 14:44:07] frigate.app INFO : Camera processor started for 8backyard2b: 567
2025-02-04 19:44:07.132521745 [2025-02-04 14:44:07] frigate.app INFO : Camera processor started for 3back_gate: 570
2025-02-04 19:44:07.132607536 [2025-02-04 14:44:07] frigate.app INFO : Camera processor started for 4front_yard: 579
2025-02-04 19:44:07.136758557 [2025-02-04 14:44:07] frigate.app INFO : Camera processor started for 9garage1: 591
2025-02-04 19:44:07.152261814 [2025-02-04 14:44:07] frigate.app INFO : Capture process started for 1driveway: 606
2025-02-04 19:44:07.156705493 [2025-02-04 14:44:07] frigate.app INFO : Capture process started for 5front_door: 609
2025-02-04 19:44:07.174022108 [2025-02-04 14:44:07] frigate.app INFO : Capture process started for 2back_door: 616
2025-02-04 19:44:07.178663651 [2025-02-04 14:44:07] frigate.app INFO : Capture process started for 7backyard: 619
2025-02-04 19:44:07.183354095 [2025-02-04 14:44:07] frigate.app INFO : Capture process started for 8backyard2b: 623
2025-02-04 19:44:07.188220034 [2025-02-04 14:44:07] frigate.app INFO : Capture process started for 3back_gate: 628
2025-02-04 19:44:07.194269478 [2025-02-04 14:44:07] frigate.app INFO : Capture process started for 4front_yard: 634
2025-02-04 19:44:07.220208804 [2025-02-04 14:44:07] frigate.app INFO : Capture process started for 9garage1: 641
2025-02-04 19:44:07.276150793 [2025-02-04 14:44:07] frigate.audio_manager INFO : Audio processor started (pid: 644)
2025-02-04 19:44:07.297421658 [2025-02-04 14:44:07] frigate.api.fastapi_app INFO : Starting FastAPI app
2025-02-04 19:44:07.373827780 [2025-02-04 14:44:07] frigate.api.fastapi_app INFO : FastAPI started
2025-02-04 19:44:10.918202544 [INFO] Starting go2rtc healthcheck service...
2025-02-04 19:44:12.035463369 172.30.32.1 - - [04/Feb/2025:14:44:12 -0500] "GET /api/config HTTP/1.1" 200 45180 "-" "HomeAssistant/2025.1.4 aiohttp/3.11.11 Python/3.13" "-" Relevant go2rtc log output2025-02-04 19:44:00.918534860 [INFO] Preparing new go2rtc config...
2025-02-04 19:44:00.946553038 [INFO] Got IP address from supervisor: 10.0.1.21
2025-02-04 19:44:00.966672440 [INFO] Got WebRTC port from supervisor: 8555
2025-02-04 19:44:01.602497896 [INFO] Starting go2rtc...
2025-02-04 19:44:01.682059420 14:44:01.682 INF go2rtc platform=linux/amd64 revision=b2399f3 version=1.9.2
2025-02-04 19:44:01.682072971 14:44:01.682 INF config path=/dev/shm/go2rtc.yaml
2025-02-04 19:44:01.682376593 14:44:01.682 INF [api] listen addr=:1984
2025-02-04 19:44:01.682402940 14:44:01.682 INF [rtsp] listen addr=:8554
2025-02-04 19:44:01.682491103 14:44:01.682 INF [webrtc] listen addr=:8555/tcp
2025-02-04 19:44:10.918202544 [INFO] Starting go2rtc healthcheck service... FFprobe output from your cameraI don't know how to pull this in 0.15 Addon because it's no longer in the UI? Install methodHassOS Addon Object DetectorCoral Network connectionWired Camera make and modelA number of Reolink cameras, all working fine Screenshots of the Frigate UI's System metrics pagesAFTER ABOUT AN HOUR: Any other information that may be helpfulVAINFO OUTPUT WHILE GPU ~ 14% {"return_code":0,"stderr":"","stdout":"vainfo: VA-API version: 1.22 (libva 2.10.0) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
is there a reason you expect the GPU usage to be so high? What CPU do you have? |
Beta Was this translation helpful? Give feedback.
it depends how you're running the streams, most cameras sub streams are h264