Page 1 of 1

Off camera causes heavy load on the CPU

Posted: Fri Jul 10, 2015 2:50 pm
by ThreeLeaf
Hello. I use the translator. Have Zoneminder 1.28 on Ubuntu Server and 19 cameras. The i3 processor and 12gb RAM. Typically each core loaded ~ 30%. But recently noticed if the power turns off one of the cameras, the load from the process of this flow increases to ~100% (max 400%). What can you recommend? Заранее спасибо.

Re: Off camera causes heavy load on the CPU

Posted: Fri Jul 10, 2015 8:19 pm
by knight-of-ni
Yes, that's a known issue.
What you want to do is place a value in your zoneminder MAX Fps field that is a little higher than the frame rate in the camera. That will prevent your cpu from exploding if a camera goes offline.
Setting this value higher than the frame rate in the camera is ok. Never set it lower.

Re: Off camera causes heavy load on the CPU

Posted: Sat Jul 11, 2015 5:35 am
by ThreeLeaf
knnniggett wrote:Yes, that's a known issue.
What you want to do is place a value in your zoneminder MAX Fps field that is a little higher than the frame rate in the camera. That will prevent your cpu from exploding if a camera goes offline.
Setting this value higher than the frame rate in the camera is ok. Never set it lower.
This question has been raised me to another topic and repeatedly on the forum. If I put MAX FPS then there is a long delay.

Re: Off camera causes heavy load on the CPU

Posted: Sat Jul 11, 2015 12:57 pm
by knight-of-ni
ThreeLeaf wrote: This question has been raised me to another topic and repeatedly on the forum. If I put MAX FPS then there is a long delay.
That was me that pointed that out to you in the other thread.
I know you are translating this so I'll try to re-word this.

Do not put a fps value in the MAX FPS field that is less than the frame rate you programmed into the camera.

You CAN put a fps value in the MAX FPS field that is slightly greater than the frame rate you programmed into the camera.

If you don't want your cpu to overload when a camera drops offline, this is currently the only known workaround.

Re: Off camera causes heavy load on the CPU

Posted: Sun Jul 12, 2015 4:00 am
by ThreeLeaf
knnniggett wrote:
ThreeLeaf wrote: This question has been raised me to another topic and repeatedly on the forum. If I put MAX FPS then there is a long delay.
That was me that pointed that out to you in the other thread.
I know you are translating this so I'll try to re-word this.

Do not put a fps value in the MAX FPS field that is less than the frame rate you programmed into the camera.

You CAN put a fps value in the MAX FPS field that is slightly greater than the frame rate you programmed into the camera.

If you don't want your cpu to overload when a camera drops offline, this is currently the only known workaround.
I understand you perfectly. Nevertheless, I tried to set MAX FPS more and not much more than settings in camera. The result in either case is to increase the delay.

Re: Off camera causes heavy load on the CPU

Posted: Sun Jul 12, 2015 12:57 pm
by knight-of-ni
That is because you are trying to do too much with too little hardware resources as you described in your first thread. There is no getting around that.

Growing up in the US, we had a game called "whack a mole". There was a grid of holes and a stuffed animal would quickly pop its head, then another, and so on.... Your job was to whack as many of them on the head, as quickly as you could, before each went back into the hole.

When you push your system to it limits, you end up with something like that. You will experience one problem after another. You might have some success fixing the symptoms, but the overall problem never goes away. This is what you will continue to experience until you address your resource issue.