Upgraded from 1.30 to 1.32 (Also upgraded Ubuntu 16.04 to 18.04) - High CPU with zmaudit.pl

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
lightenup
Posts: 14
Joined: Mon Oct 22, 2018 6:36 pm

Upgraded from 1.30 to 1.32 (Also upgraded Ubuntu 16.04 to 18.04) - High CPU with zmaudit.pl

Post by lightenup »

For starters, ZoneMinder 1.32 looks great, keep up the great work!

This past weekend I upgraded my server from Ubuntu 16.04 to 18.04, all went well. In doing this upgrade I also moved to ZoneMinder 1.32 from 1.30. The upgrade went well, everything came up just fine, even my old events are present.

Now for my issue, zmaudit is consuming 30% cpu on one of my cores and a good bit more disk IO. It seems like zmaudit kicks off and runs for about an hour and half, this seems to occur every 2 hours. I do use a dedicated drive for my events. I have RUN_AUDIT enabled and OPT_FAST_DELETE is disabled. The issue seems to be related to the purge filter that I have (if I remove the filter the issue goes away). Any help resolving this issue would be appreciated.


Filter:
filter.PNG
filter.PNG (56.12 KiB) Viewed 2791 times
CPU and Disk IO:
cpu.PNG
cpu.PNG (818.55 KiB) Viewed 2791 times
disk.PNG
disk.PNG (658.99 KiB) Viewed 2791 times
lightenup
Posts: 14
Joined: Mon Oct 22, 2018 6:36 pm

Re: Upgraded from 1.30 to 1.32 (Also upgraded Ubuntu 16.04 to 18.04) - High CPU with zmaudit.pl

Post by lightenup »

I think I may go in a different direction with this issue, I am going to give fast delete another try. I restored the original "PurgeWhenFull" filter, set it to 80%. We will see how this goes. I will follow up tomorrow on the system performance.
User avatar
iconnor
Posts: 2904
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Upgraded from 1.30 to 1.32 (Also upgraded Ubuntu 16.04 to 18.04) - High CPU with zmaudit.pl

Post by iconnor »

Turn off zmaudit. It is no longer neccessary
lightenup
Posts: 14
Joined: Mon Oct 22, 2018 6:36 pm

Re: Upgraded from 1.30 to 1.32 (Also upgraded Ubuntu 16.04 to 18.04) - High CPU with zmaudit.pl

Post by lightenup »

That would explain it, thank you sir! I disabled fast deletes and turned off zmaudit. Should I be running zmaudit via cron once a week as a consistency check?
lightenup
Posts: 14
Joined: Mon Oct 22, 2018 6:36 pm

Re: Upgraded from 1.30 to 1.32 (Also upgraded Ubuntu 16.04 to 18.04) - High CPU with zmaudit.pl

Post by lightenup »

I just wanted to follow up, I added a cron entry for zmaudit to run once a week. Also I took a a look at the default settings for a camera under 1.32, and copied these settings onto my existing cameras carried over from 1.30. My disk I/O is now better than it was under 1.30. I feel that enabling the Video Writer using X264 encode really made the most gains. Thanks again!
lbdroid
Posts: 5
Joined: Thu Nov 01, 2018 3:03 pm

Re: Upgraded from 1.30 to 1.32 (Also upgraded Ubuntu 16.04 to 18.04) - High CPU with zmaudit.pl

Post by lbdroid »

Little hint: If your cameras output h264, you might be better off using h264 passthrough. This will prevent the video quality from degrading due to a re-encoding, and will lighten CPU load.
lightenup
Posts: 14
Joined: Mon Oct 22, 2018 6:36 pm

Re: Upgraded from 1.30 to 1.32 (Also upgraded Ubuntu 16.04 to 18.04) - High CPU with zmaudit.pl

Post by lightenup »

Thanks for the clarification on that point, I have updated my cameras!
Post Reply