Off camera causes heavy load on the CPU
Off camera causes heavy load on the CPU
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? Заранее спасибо.
- knight-of-ni
- Posts: 2406
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Off camera causes heavy load on the CPU
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.
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.
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/
All of these can be found at https://zoneminder.blogspot.com/
Re: Off camera causes heavy load on the CPU
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.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.
- knight-of-ni
- Posts: 2406
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Off camera causes heavy load on the CPU
That was me that pointed that out to you in the other thread.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.
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.
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/
All of these can be found at https://zoneminder.blogspot.com/
Re: Off camera causes heavy load on the CPU
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.knnniggett wrote:That was me that pointed that out to you in the other thread.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.
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.
- knight-of-ni
- Posts: 2406
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Off camera causes heavy load on the CPU
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.
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.
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/
All of these can be found at https://zoneminder.blogspot.com/