High RAM and CPU Usage, Broken OpenVINO Support, and Stability Issues with RTMP and go2rtc After Upgrade to 0.13.1 #9926
Replies: 4 comments 50 replies
-
There is not much information to go off of here, I'd suggest providing your full config, logs, and a screenshot of the system page. The release notes noted that motion detection changed and would be more sensitive by default potentially resulting in higher CPU usage for some users. Sounds like this may be the case and motion detection should be tuned https://docs.frigate.video/configuration/motion_detection |
Beta Was this translation helpful? Give feedback.
-
I'd suggest initiating an issue tracker and welcoming bug reports. It appears that the introduction of new features might be impacting the performance and functionality of existing ones. |
Beta Was this translation helpful? Give feedback.
-
Thanks, @NickM-27, for your patience with the responses in this thread. Your answers prompted me to conduct some tests. The first thing I noticed was a change in how motion detection works for all cameras. The parameters in detect:
# Optional: width of the frame for the input with the detect role (default: use native stream resolution)
width: 1280
# Optional: height of the frame for the input with the detect role (default: use native stream resolution)
height: 720 partially reduced CPU usage. Memory usage increased, but I understand this is the cost for the new motion detection method. Considering all these changes, even OpenVINO struggles to keep up with tracking the changes. Therefore, one must pay attention to the parameter: motion:
# Optional: The threshold passed to cv2.threshold to determine if a pixel is different enough to be counted as motion. (default: shown below)
# Increasing this value will make motion detection less sensitive and decreasing it will make motion detection more sensitive.
# The value should be between 1 and 255.
threshold: 25 If you have a mini PC, the only solution is to buy an Edge TPU and set up the correct model. The one that comes with Frigate for Edge TPU is about twice as bad as the one for OpenVINO. I'll say this: if you have a lot of time, you can play around and even get good results. But for the average person, it's all too complicated. It probably also played a role that the backend uses Python, where solutions in, for example, Go/Rust would probably use half as many resources. In any case, thanks to the team for your work and your contribution to open source. And once again, my apologies to @NickM-27 for my harsh messages. |
Beta Was this translation helpful? Give feedback.
-
Issue Summary
After upgrading to version 0.13.1, we are experiencing multiple critical issues that significantly degrade the performance and functionality of our application. The problems include unexpectedly high RAM and CPU usage, apparent broken support for OpenVINO, RTMP functionality ceasing, and instability in go2rtc (versions 1.7.1 and up).
Detailed Description
Increased Resource Usage: Post-upgrade, the application's RAM usage has more than doubled 500->1200, and CPU usage has also unexpectedly spiked. This increase is observed under normal operating conditions, without any changes to our usage patterns or configurations.
OpenVINO Support: The integration with OpenVINO now seems to be broken, with processors showing much higher usage than expected. This suggests a possible issue with OpenVINO support or optimization in the latest version.
RTMP and go2rtc Stability: RTMP functionality has stopped working entirely post-upgrade. Additionally, the go2rtc integration has become highly unstable, with issues beginning from version 1.7.1. The specific go2rtc issue is documented here: go2rtc issue #947.
Environment
Expected Behavior
Prior to the upgrade, the application was running efficiently with manageable RAM and CPU usage. OpenVINO support was stable, and both RTMP and go2rtc functionalities were working as expected without any issues.
Actual Behavior
Steps to Reproduce
Request
We are seeking guidance on mitigating these issues or an update that addresses these critical problems. Any workarounds or patches that can temporarily alleviate these issues would also be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions