Performance Issues? Cams? Server?

Previous development branch now released as 1.36
Locked
aj3
Posts: 28
Joined: Fri Aug 30, 2019 5:47 pm

Performance Issues? Cams? Server?

Post by aj3 »

Hello!
Using ZoneMinder 1.35 super happily for two months now.
I have two Reolink cameras.

In the cameras themselves, they're set at 2048x1536 and 2 fps.
In Zoneminder, I have them at 2048x1536 via RTP/Unicast.

I added a third Reolink camera, and I couldn't get it to show up.
All configurations were the same.
Yet when I lowered the resolution of this third cam, Zoneminder was able to start monitoring it.

Any general suggestions?
Maybe my server hardware?
What other info can I provide so you can make a better suggestion?
Settings Reolink.png
Settings Reolink.png (84.12 KiB) Viewed 2754 times
User avatar
burger
Posts: 472
Joined: Mon May 11, 2020 4:32 pm

Re: Performance Issues? Cams? Server?

Post by burger »

If you lower the resolution of a camera, and then it suddenly starts working, it's probably an issue of running out of CPU. This occurs with the RPI, which is limited in performance (although much less power is drawn).

Either upgrade hardware, or tune your system to use ZM more efficiently. Tuning ZM would be something like:
* limit resolution on cameras (some cameras don't need high res)
* limit fps on cameras (same as above)
* record or nodect (w/linked monitors) on high res stream, mocord / modect on sub stream
* make less zones. make zones smaller.
* limit analysis fps
* run mysql-optimize
* RPI4 - config GPU_MEM to be 512
* use x86 instead of ARM.

And there's probably some others I could think of.
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Performance Issues? Cams? Server?

Post by knight-of-ni »

Sounds like you filled up /dev/shm

Code: Select all

df -h /dev/shm
By the way, your screenshot is not from a recent version of 1.35.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
aj3
Posts: 28
Joined: Fri Aug 30, 2019 5:47 pm

Re: Performance Issues? Cams? Server?

Post by aj3 »

burger wrote: Thu Oct 15, 2020 11:01 pm And there's probably some others I could think of.
Thank you for taking the time to post this up!
I had to re-read because of my n00bness, yet there are some things that make a lot of sense.

I'll try the modect on the substream... that is awesome.
And also, I think some cams can do record... no need for detection per-se.
aj3
Posts: 28
Joined: Fri Aug 30, 2019 5:47 pm

Re: Performance Issues? Cams? Server?

Post by aj3 »

knight-of-ni wrote: Fri Oct 16, 2020 1:16 am Sounds like you filled up /dev/shm

Code: Select all

df -h /dev/shm
By the way, your screenshot is not from a recent version of 1.35.
I'll check /dev/shm!

Regarding v1.35... wow... sorry on my part.
I thought I was on the latest.
I'll upgrade today (if time permits).

So far, Zoneminder is awesome.
Thanks to everyone that makes it possible!
Locked