Hello
How do I even begin to find out why my Frigate app goes from running for some hours requiring <50% CPU burden to suddenly always demanding greater than 80% for no apparent reason?
Frigate 0.13.2 ran and ran and ran on my TN box, without problems, using a USB coral TPU. Total use was perhaps 50%, with 25% due to Frigate.
I upgraded from one Dragonfish to another (without problems) and ultimately to Electric Eel. In doing the EE upgrade I needed to also u/g Frigate to the new base version which EE supports, namely 0.14 and then 0.14.1. This also entails changes to the config.yaml for Frigate.
Frigate 0.14/0.14.1 runs OK but then suddenly the demand shoots up. Recently, in each case when the demand abruptly increases, I find several problems which mean that
1 - the inference time for the TPU doubles from around the usual and correct 7-8 ms and might even rise to 40 ms
2 - the CPU temperatures change from a nominal 50 deg c to around 75 deg c
3 - this is because the 8 cores are now all at >80% and sometimes peaking to 99% rather than sitting at a nominal 50%
4 - stopping and starting the app needs to happen twice because the first time results in a stale web session, meaning that the Frigate UI doesn’t work and the app’s UI (on the app page) says “0%” use meaning it isn’tr doing anything. Then the second time I stop/start it the app now might say 25% (which is normal) and the inference time is then back to < 10 ms and the Frigate webUI works again.
5 - sometimes, this double restart doesn’t help and the NASbox is running flat out trying to process Frigate.
Eventually, the working system with low inference times and low CPU snaps to high inference time and CPU use and I can’t see any change in external circumstances (room temperature, video feeds coming and going, other apps starting and stopping) to cause it
Here’s an example of use:
A = normal daytime running …approx 50-60% CPU
B = overnight running = 40-50%
C = suddenly it’s shot up for no apparent reason
D onwards = I have stopped it and then it has restarted at high utilisation again
I have had to shut down Frigate for now (attempts to run it via dockge/docker compose have failed because I don’t know how to configure the compose file) so I am left with trying to get the official app to work. Something is stopping it from behaving properly and I hope I can find out what the problem is (or is not).
Please can someone suggest some “official app” faultfinding approaches, even if not “Frigate” specific?