@NickM-27 commented on GitHub (Nov 21, 2023):
You can also use pyspy to see what is using cpu over time as a flamegraph
@YBonline commented on GitHub (Nov 21, 2023):
In general we've not had any other complaints of high cpu usage like this so it seems isolated at least with what we know right now
But is that…
@NickM-27 commented on GitHub (Nov 21, 2023):
There are a couple other users who have more cameras than you and they reported issues in the 0.13 dev cycle earlier but have not reported issues…
@YBonline commented on GitHub (Nov 23, 2023):
Alright, so I've been investigating and much of the changes with the motion detection seem to have increased CPU usage.... but at the same time, my…
@NickM-27 commented on GitHub (Nov 23, 2023):
Assuming you're waiting for a larger set of motion on that camera from a vehicle, I'd expect a large contour area would be good to reduce motion
@blakeblackshear commented on GitHub (Nov 23, 2023):
You can try setting improve_contrast to false on that camera. It is enabled by default in 0.13.
@YBonline commented on GitHub (Nov 27, 2023):
So I think improve_contrast was another change that did cause more motion to be detected, and selectively disabling it on select cameras (mainly my…
@YBonline commented on GitHub (Nov 21, 2023):
Firepit is one of the few cameras I run at full resolution and not on a substream for detection, that one mainly because I want to make sure I…
@NickM-27 commented on GitHub (Nov 21, 2023):
The CPU usage of the main python process is higher which the PR reverted.
Also I'm general the biggest cpu users are processes that don't do…
@YBonline commented on GitHub (Nov 21, 2023):
Here is the same 20 minute runtime for without PR 8258 (same as original run, just same runtime) [frigate_logs_wo_8258.txt](https://github.com/blakeb…
@NickM-27 commented on GitHub (Nov 21, 2023):
Personally, I think the best strategy is to look at what's using cpu and try to reduce it. Trying different builds is a little bit arbitrary because…
@YBonline commented on GitHub (Nov 21, 2023):
I'm a little stuck on exactly what to try then... the issue is that my load average went from about 50% (usually around 15, peaking at 20 load…
@NickM-27 commented on GitHub (Nov 21, 2023):
We can see what's using cpu time in htop, I'm not sure why something would be that substantial but not show up as a high usage in htop.
In general…
@YBonline commented on GitHub (Nov 21, 2023):
Here is with PR 8258 (not reverted) running for 15 minutes ![Screenshot 2023-11-21 114732](https://github.com/blakeblackshear/frigate/assets/11162258…