CPU usage when idle
Posted: Fri Nov 15, 2019 5:22 pm
Hello
I was looking for a solution to store video streams from my video cams in case an external event is triggered (external motion detection). I found Zoneminder and gave it a try. Install was on Debian 10 via the tutorial on Zoneminder docs. As a test I used two Xiaomi 1080p home cameras with additional rtsp server enabled.
I configured the monitors in ZM as "nodect", no still recording and video recording as "Passthrough" (as the video stream is a H264 stream). The idea was that the system should be pretty idle, when not recording or not using the web interface for live streams.
Strangely, I am getting about 20% CPU usage per cam I defined that way. Even when only on the Console tab (so no live stream visible). No recording was triggered (as no external trigger was defined) and there was no disk activity. So, with two cams defined, I already had a 40-50% CPU usage in idle state.
I am wondering, if I misconfigured something. The system is a pretty low powered system, indeed. But it should be doing nothing at that time. I would expect only very little CPU load then and, when I trigger recording, the CPU load should be slightly higher, but not much (as I am using Passthrough). I would also expect a higher load when live streaming on the web interface or watching recorded video.
Any help is much appreciated. Also, if ZM is not the right solution for my use case, I'd be happy if you could point me to a more suitable solution.
Thanks
Michael
I was looking for a solution to store video streams from my video cams in case an external event is triggered (external motion detection). I found Zoneminder and gave it a try. Install was on Debian 10 via the tutorial on Zoneminder docs. As a test I used two Xiaomi 1080p home cameras with additional rtsp server enabled.
I configured the monitors in ZM as "nodect", no still recording and video recording as "Passthrough" (as the video stream is a H264 stream). The idea was that the system should be pretty idle, when not recording or not using the web interface for live streams.
Strangely, I am getting about 20% CPU usage per cam I defined that way. Even when only on the Console tab (so no live stream visible). No recording was triggered (as no external trigger was defined) and there was no disk activity. So, with two cams defined, I already had a 40-50% CPU usage in idle state.
I am wondering, if I misconfigured something. The system is a pretty low powered system, indeed. But it should be doing nothing at that time. I would expect only very little CPU load then and, when I trigger recording, the CPU load should be slightly higher, but not much (as I am using Passthrough). I would also expect a higher load when live streaming on the web interface or watching recorded video.
Any help is much appreciated. Also, if ZM is not the right solution for my use case, I'd be happy if you could point me to a more suitable solution.
Thanks
Michael