Alarms are dropping frames
Posted: Mon May 09, 2016 3:32 am
Hi All, hope someone can help me troubleshoot my issue.
I just installed ZM 1.29 on a fresh Ubuntu 16.04 machine -- following the guide on these forums. I'm running this on Intel NUC with Pentium 4-core processor and 8GB of RAM. I've got a Samsung 2TB 2.5" drive installed. I have 2 Dahua 4MP cameras running in Modect mode. I'm using ffmpeg mode on the ZM side to process. The cams output 1920x1080 @ 10 FPS, and I'm recording in 8bit greyscale. The load on the system varies between 1.5 and 0.4 (CPU usage stays pretty much constant at 25%).
The PROBLEM: very much the same as skidd described here: viewtopic.php?t=23529
i.e.: during alarms I'm getting about 1 second of frame drop after the first alarm frame and consecutive frames FPS drop to about 4 or 5 for the remainder. I have no problems with setting the cams into Record mode, all frames are recorded, no drops. The live view also works perfectly, no drops.
I've tried pretty much all the items skidd outlined in the linked post (except playing around with RAID, as it doesn't apply). But I'm still having this issue.
MAX FPS and ALARM MAX FPS are blank
Analysis FPS is set to 8
Image Buffer Size (frames) 25
Warmup Frames 20
Pre Event Image Count 20
Post Event Image Count 20
Stream Replay Image Buffer 300
Alarm Frame Count 1
Enabled OPT_FRAME_SERVER, and set my wmem_max to 12GB (recommended in some forums) - I don't get "only read 219224 bytes" errors
Turned off CREATE_ANALYSIS_IMAGES
I followed advice on MySQL tuning here and elsewhere and from mysqltuner, added recommended values to conf file. I saw InnoDB is enabled by default, so, as I understand ZM already uses InnoDB (I use MarinaDB version of mysql) -- or is that not true? How can I check?
PATH_MAP and PATH_SWAP are in default directories: PATH_MAP (/dev/shm) and PATH_SWAP (/tmp/zm) -- however, I don't know if they're mapped to RAMDISK? When installing Ubuntu I only created 2 partitions, "/" and "swap".
most of the other stuff is default -- I only had a couple of days to play with this. Otherwise, the system works great!
Thanks a lot for your help!
I just installed ZM 1.29 on a fresh Ubuntu 16.04 machine -- following the guide on these forums. I'm running this on Intel NUC with Pentium 4-core processor and 8GB of RAM. I've got a Samsung 2TB 2.5" drive installed. I have 2 Dahua 4MP cameras running in Modect mode. I'm using ffmpeg mode on the ZM side to process. The cams output 1920x1080 @ 10 FPS, and I'm recording in 8bit greyscale. The load on the system varies between 1.5 and 0.4 (CPU usage stays pretty much constant at 25%).
The PROBLEM: very much the same as skidd described here: viewtopic.php?t=23529
i.e.: during alarms I'm getting about 1 second of frame drop after the first alarm frame and consecutive frames FPS drop to about 4 or 5 for the remainder. I have no problems with setting the cams into Record mode, all frames are recorded, no drops. The live view also works perfectly, no drops.
I've tried pretty much all the items skidd outlined in the linked post (except playing around with RAID, as it doesn't apply). But I'm still having this issue.
MAX FPS and ALARM MAX FPS are blank
Analysis FPS is set to 8
Image Buffer Size (frames) 25
Warmup Frames 20
Pre Event Image Count 20
Post Event Image Count 20
Stream Replay Image Buffer 300
Alarm Frame Count 1
Enabled OPT_FRAME_SERVER, and set my wmem_max to 12GB (recommended in some forums) - I don't get "only read 219224 bytes" errors
Turned off CREATE_ANALYSIS_IMAGES
I followed advice on MySQL tuning here and elsewhere and from mysqltuner, added recommended values to conf file. I saw InnoDB is enabled by default, so, as I understand ZM already uses InnoDB (I use MarinaDB version of mysql) -- or is that not true? How can I check?
PATH_MAP and PATH_SWAP are in default directories: PATH_MAP (/dev/shm) and PATH_SWAP (/tmp/zm) -- however, I don't know if they're mapped to RAMDISK? When installing Ubuntu I only created 2 partitions, "/" and "swap".
most of the other stuff is default -- I only had a couple of days to play with this. Otherwise, the system works great!
Thanks a lot for your help!