The queue is full

Current Development version likely to have breaking changes
TheRoth
Posts: 28
Joined: Tue May 05, 2020 3:57 am

The queue is full

Post by TheRoth »

Hi,

My Configuration
Xeon 2,4Ghz - 32 GB RAM
SSD 1TO
8 IPCam 3Mp Xmeyes

System debian Bulleyes 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64

All Monitor => CameraPasstrought/Save JPEG: false / ImageBufferCount: 2 / MaxImageBufferCount:5

Error for all cam

2021-11-08 14:29:27 zmc_m8 8745 WAR You have set the max video packets in the queue to 5. The queue is full. Either Analysis is not keeping up or your camera's keyframe interval is larger than this setting. zm_packetqueue.cpp 113
2021-11-08 14:29:27 zmc_m4 8516 WAR You have set the max video packets in the queue to 5. The queue is full. Either Analysis is not keeping up or your camera's keyframe interval is larger than this setting.

root@ZoneMinder-Server:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 1.3M 3.2G 1% /run
/dev/sda1 915G 49G 820G 6% /
tmpfs 16G 162M 16G 2% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 3.2G 84K 3.2G 1% /run/user/116
tmpfs 3.2G 48K 3.2G 1% /run/user/0
root@ZoneMinder-Server:~#


root@ZoneMinder-Server:~# free -m
total used free shared buff/cache available
Mem: 32103 2256 27356 183 2490 29270
Swap: 41935 0 41935
root@ZoneMinder-Server:~#

Did you have an idea why i hate this problem ? Thanks a lot
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: The queue is full

Post by Magic919 »

This bit - MaxImageBufferCount:5

Up it.
-
TheRoth
Posts: 28
Joined: Tue May 05, 2020 3:57 am

Re: The queue is full

Post by TheRoth »

It's worse ! And if MaxImageBufferCount is 0 (unlimited)
I have "Restarting capture demon" every 10 seconds and all video is broken...

Thanks
TheRoth
Posts: 28
Joined: Tue May 05, 2020 3:57 am

Re: The queue is full

Post by TheRoth »

Maybe the problem is here ?

ipcs -l

------ Messages Limits --------
max queues system wide = 32000
max size of message (bytes) = 8192
default max size of queue (bytes) = 16384

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 18014398509465599
max total shared memory (kbytes) = 18014398509481980
min seg size (bytes) = 1

------ Semaphore Limits --------
max number of arrays = 32000
max semaphores per array = 32000
max semaphores system wide = 1024000000
max ops per semop call = 500
semaphore max value = 32767
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: The queue is full

Post by Magic919 »

It might just be broken.
-
TheRoth
Posts: 28
Joined: Tue May 05, 2020 3:57 am

Re: The queue is full

Post by TheRoth »

Thanks Magic919 ^^

It's already a new fresh clean install...
What is broken ? RAM ? ZoneMinder ?
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: The queue is full

Post by Magic919 »

This is a development version of ZM.
-
dougmccrary
Posts: 1172
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: The queue is full

Post by dougmccrary »

Did you have an idea why i hate this problem ?
Because it’s taking up too much time? :lol:
You probably would be happier with 1.36.10,
Either the release or proposed. They work for me out of the box on Ubuntu.
TheRoth
Posts: 28
Joined: Tue May 05, 2020 3:57 am

Re: The queue is full

Post by TheRoth »

Sorry for the revealing slip, english is not my native language ^^

New test... It's work very well with 5 camera IP... if i turn on 6 cameras..., the problem appears...
Do you think this could be a network problem?
i'm sure i will find an solution ^^
TheRoth
Posts: 28
Joined: Tue May 05, 2020 3:57 am

Re: The queue is full

Post by TheRoth »

So, i downgrade to v1.36.10 for bullseye... and same problem.
TheRoth
Posts: 28
Joined: Tue May 05, 2020 3:57 am

Re: The queue is full

Post by TheRoth »

Maybe you will find an error on this ?


root@ZoneMinder-Server:~# ls -l /run/shm/zm* | awk 'BEGIN {sum=0} {sum += $5} END {print sum/1024/1024."M"}'
2214.89M

root@ZoneMinder-Server:~# ls -l /run/shm/zm*
-rw-rw-rw- 1 www-data www-data 414726312 Nov 9 23:17 /run/shm/zm.mmap.1
-rw-rw-rw- 1 www-data www-data 207365912 Nov 9 23:00 /run/shm/zm.mmap.2
-rw-rw-rw- 1 www-data www-data 207365912 Nov 9 22:33 /run/shm/zm.mmap.3
-rw-rw-rw- 1 www-data www-data 298604312 Nov 9 23:38 /run/shm/zm.mmap.4
-rw-rw-rw- 1 www-data www-data 298604312 Nov 9 23:02 /run/shm/zm.mmap.5
-rw-rw-rw- 1 www-data www-data 298604312 Nov 9 23:40 /run/shm/zm.mmap.6
-rw-rw-rw- 1 www-data www-data 298604312 Nov 9 23:39 /run/shm/zm.mmap.7
-rw-rw-rw- 1 www-data www-data 298604312 Nov 9 23:39 /run/shm/zm.mmap.8

root@ZoneMinder-Server:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 1.3M 3.2G 1% /run
/dev/sda1 915G 52G 817G 6% /
tmpfs 16G 2.2G 14G 14% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 3.2G 84K 3.2G 1% /run/user/116
tmpfs 3.2G 48K 3.2G 1% /run/user/0
root@ZoneMinder-Server:~#
dougmccrary
Posts: 1172
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: The queue is full

Post by dougmccrary »

Can you lower the frame rate in the camera? Like it said earlier - analysis can't keep up.
Try 5 or 6 fps on the cams.
TheRoth
Posts: 28
Joined: Tue May 05, 2020 3:57 am

Re: The queue is full

Post by TheRoth »

Thanks Doug,
It's Work well with 8 cam IP ;)
But... 5 FPS that's not really good ! What did you think? Bug ZoneMinder? Problem Hardware, Problem Network ? System Problem ?
TheRoth
Posts: 28
Joined: Tue May 05, 2020 3:57 am

Re: The queue is full

Post by TheRoth »

If you want more information...
This configuration work. Load 5 % ... But CPU 50-60% on top -i
Screenshot 2021-11-10 at 16.42.53.png
Screenshot 2021-11-10 at 16.42.53.png (121.46 KiB) Viewed 19238 times
Screenshot 2021-11-10 at 16.42.20.png
Screenshot 2021-11-10 at 16.42.20.png (164.38 KiB) Viewed 19238 times
User avatar
kitkat
Posts: 193
Joined: Sun Jan 27, 2019 5:17 pm

Re: The queue is full

Post by kitkat »

TheRoth wrote: Wed Nov 10, 2021 3:48 pm Load 5 % ... But CPU 50-60% on top -i
Load isn't a simple percentage :)

Roughly speaking, a load of 1.0 means one CPU core/thread at 100%, so if the load is greater than the number of CPU cores (or threads) then the CPU may be overloaded.

nmon is useful and gives much more information that top: http://nmon.sourceforge.net/pmwiki.php - You can probably install it using your normal package manager (apt/yum/etc.).
Post Reply