Page 1 of 1

Speed up zmeventserver alerts

Posted: Thu Apr 16, 2020 12:35 pm
by PeterSM
After much learning I have Zoneminder and Event server set up successfully. The two combined are doing a wonderful; job for me.

I was wondering if there was a way to speed up the triggering of alerts I am particularly interested in getting mqtt events to Home Assistant asap.
Currently alerts take about 8s. Is it possible to speed this up?
What would influence this?
I am interested in both hardware and software tweeks. Currently I am using an old i5 with 16GB of ram and a fast HDD with Ubuntu 18.4.
Would a SSD speed up alerts?
Are there any software tweeks?

Thanks for any thoughts or sugestions.

Re: Speed up zmeventserver alerts

Posted: Thu Apr 16, 2020 8:06 pm
by asker
1 - the ES checks for alarms every 5 seconds. To change that, change "event_check_interval" in zmeventnofication.ini and restart ES

2. If you are using hooks, there are many things in objectconfig.ini:
- There is a wait parameter that will wait X seconds till the hook starts. Make sure you are not waiting more than needed.
- Hooks take time - model load/init time. Read the docs on how to improve this part (gpu/mlapi/tinyyolo)

3. Study debug logs and figure out where the delay is and then we can help you more.

Re: Speed up zmeventserver alerts

Posted: Fri Apr 17, 2020 7:43 am
by PeterSM
Thanks for the heads up. I am not using hooks (yet!) as for me speed is more important. I will look at the "event_check_interval" and the logs and see where that gets me.