ZoneMinder / zmeventnotification

Machine Learning powered Secure Websocket & MQTT based ZoneMinder event notification server
408 stars 128 forks source link

zm_detect.py eats cpu with mlapi enabled #414

Closed thanxx closed 2 years ago

thanxx commented 2 years ago

Event Server version

6.1.28

Hooks version (if you are using Object Detection)

app:6.1.28, pyzm:0.3.56

Are you using MLAPI? (Y/N)

Yes 2.2.24

The version of ZoneMinder you are using:

1.36.14

What is the nature of your issue

Question

Details Hi, I have cpu_max_processes=1 and ml_fallback_local=no

Is that expected that zm_detect.py takes some of the CPU time (~15-50%) while waiting in a queue? please look at the screenshot of top 2022-05-09 18_05_24-Window

Don't understand why there is a relatively high load for just waiting, maybe I have misconfiguration? Thanks!