[Beta Support]: Potential performance regression in 0.17.0-beta1 #21490
Replies: 3 comments 14 replies
-
|
It's not clear which process is actually being pointed at here. All we can see is the start command which pulls in from forkserver and a few pre-loaded imports (including camera maintainer) which greatly improves startup time. |
Beta Was this translation helpful? Give feedback.
-
|
Full |
Beta Was this translation helpful? Give feedback.
-
|
This seems to be related to the audio detection, which was enabled in my setup. After disabling it completely clone3() syscalls dropped by almost 10x to ~7/s, and CPU utilization dropped ~3x to ~3% for the forkserver process. I didn't look into what exactly causes audio decoder to induce this behavior. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the problem you are having
I have noticed that 15min system load has increased by ~0.3 on my Frigate machine after upgrading to 0.17.0-beta1 (chart bellow). While this does not seem to be significant, I wanted to report it. It looks like this is caused by some kind of a maintenance process which constantly takes ~10% of CPU due to high rate (~50/s) of clone3()->accept4()->read()/write() chain of system calls.
While this could be working as expected, it seems absurd to me that a maintenance process takes more compute resources than a ffmpeg capture process (~7% CPU utilization).
See bellow for data points I collected.
15min system load
Offending process
Excessive cloning seems to be the culprit
Beta Version
0.17.0-beta1
Issue Category
Performance / Stability
Frigate config file
Relevant Frigate log output
Relevant go2rtc log output (if applicable)
No response
Install method
Docker Compose
docker-compose file or Docker CLI command
Operating system
Debian
CPU / GPU / Hardware
No response
Screenshots
No response
Steps to reproduce
No response
Any other information that may be helpful
No response
Beta Was this translation helpful? Give feedback.
All reactions