Poor performance?
Posted: Wed Mar 13, 2019 2:45 am
Hi,
I recently decided to rebuild my "old" 1.30.x ZoneMinder server. It has been running correctly for a couple of years but some recent hardware crash seems to have caused some problems. The server was running Debian virtualized under VMware vSphere in my home lab. 2 vCPU, 4Gb of RAM and some relatively fast HD (with SSD cache and tiering).
I decided to migrate to 1.32. Reinstalled a new Debian 9.8 and installed 1.32. Followed the "easy way" on the wiki using the experimental repo:
https://wiki.zoneminder.com/Debian_9_64 ... e_Easy_Way
Didn't work in the end. Seems like the API are broken on the Debian packages, they simply aren't there and I saw some post with people just copying the API from Ubuntu.
Anyway, since most people seems to run ZM on Ubuntu, I decided to go that way. Installed Ubuntu minimal and followed the instruction here:
https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way
Install went well and the server is running.
I added my 3 monitors, they are Amcrest camera and I am using the 640x480 substreams at 15 FPS. Used to work well with my previous server.
It works, problem is, it is soooooo slow that it is mostly unusable. The camera usually start around 12 FPS but after some time, ends up around 5-6 and often below 3. If you look at the live view of a camera, you can see it often skip multiple seconds on the timestamp and the video feed can be as far as 1 minute behind real time. Recorded event using motion detect are mostly unusable as they miss so many frames, up to 5 or 6 seconds sometime. I had some buffer overrun log at first, I raised the buffer since then. I am not getting these message anymore but the performance or the result hasn't improved.
The server doesn't seems to be overloaded, load averages are around 0.05, plenty of memory available, disk are totally idle. I also did some testing with only that VM running on a vSphere host to see if there might be some ressource contention with the host, same result.
Any ideas or suggestions?
I recently decided to rebuild my "old" 1.30.x ZoneMinder server. It has been running correctly for a couple of years but some recent hardware crash seems to have caused some problems. The server was running Debian virtualized under VMware vSphere in my home lab. 2 vCPU, 4Gb of RAM and some relatively fast HD (with SSD cache and tiering).
I decided to migrate to 1.32. Reinstalled a new Debian 9.8 and installed 1.32. Followed the "easy way" on the wiki using the experimental repo:
https://wiki.zoneminder.com/Debian_9_64 ... e_Easy_Way
Didn't work in the end. Seems like the API are broken on the Debian packages, they simply aren't there and I saw some post with people just copying the API from Ubuntu.
Anyway, since most people seems to run ZM on Ubuntu, I decided to go that way. Installed Ubuntu minimal and followed the instruction here:
https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way
Install went well and the server is running.
I added my 3 monitors, they are Amcrest camera and I am using the 640x480 substreams at 15 FPS. Used to work well with my previous server.
It works, problem is, it is soooooo slow that it is mostly unusable. The camera usually start around 12 FPS but after some time, ends up around 5-6 and often below 3. If you look at the live view of a camera, you can see it often skip multiple seconds on the timestamp and the video feed can be as far as 1 minute behind real time. Recorded event using motion detect are mostly unusable as they miss so many frames, up to 5 or 6 seconds sometime. I had some buffer overrun log at first, I raised the buffer since then. I am not getting these message anymore but the performance or the result hasn't improved.
The server doesn't seems to be overloaded, load averages are around 0.05, plenty of memory available, disk are totally idle. I also did some testing with only that VM running on a vSphere host to see if there might be some ressource contention with the host, same result.
Any ideas or suggestions?