ZM is filling /dev/shm

Forum for questions and support relating to the 1.30.x releases only.
Locked
raydude
Posts: 65
Joined: Sun Jul 21, 2013 6:09 pm

ZM is filling /dev/shm

Post by raydude »

Why does it do this? How can I stop it?

Code: Select all

server ~ # df -h /dev/shm 
Filesystem      Size  Used Avail Use% Mounted on 
shm             7.6G  7.6G     0 100% /dev/shm 
server ~ # ls /dev/shm 
squid-cf__metadata.shm  squid-cf__readers.shm  zm.mmap.2  zm.mmap.4 
squid-cf__queues.shm    zm.mmap.1              zm.mmap.3 
server ~ # ls /dev/shm 
squid-cf__metadata.shm  squid-cf__readers.shm  zm.mmap.2  zm.mmap.4 
squid-cf__queues.shm    zm.mmap.1              zm.mmap.3 
server ~ # ls /dev/shm -lah 
total 3.7G 
drwxrwxrwt  2 root   root    180 Jun 28 18:03 . 
drwxr-xr-x 18 root   root   4.1K Jun 26 19:05 .. 
-rw-------  1 squid  squid     8 Jun 26 19:05 squid-cf__metadata.shm 
-rw-------  1 squid  squid  8.1K Jun 26 19:05 squid-cf__queues.shm 
-rw-------  1 squid  squid    44 Jun 26 19:05 squid-cf__readers.shm 
-rw-------  1 apache apache 475M Jun 27 22:53 zm.mmap.1 
-rw-------  1 apache apache 475M Jun 27 22:52 zm.mmap.2 
-rw-------  1 apache apache 3.9G Jun 28 18:07 zm.mmap.3 
-rw-------  1 apache apache 211M Jun 26 19:06 zm.mmap.4 
server ~ # /etc/init.d/zoneminder stop 
 * Caching service dependencies ...                                                    [ ok ] 
 * Stopping zoneminder ...                                                             [ ok ] 
server ~ # ls /dev/shm -lah 
total 12K 
drwxrwxrwt  2 root  root   100 Jun 28 18:07 . 
drwxr-xr-x 18 root  root  4.1K Jun 26 19:05 .. 
-rw-------  1 squid squid    8 Jun 26 19:05 squid-cf__metadata.shm 
-rw-------  1 squid squid 8.1K Jun 26 19:05 squid-cf__queues.shm 
-rw-------  1 squid squid   44 Jun 26 19:05 squid-cf__readers.shm 
server ~ # df -h /dev/shm 
Filesystem      Size  Used Avail Use% Mounted on 
shm             7.6G   12K  7.6G   1% /dev/shm 
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: ZM is filling /dev/shm

Post by bbunge »

Lower the camera resolution is the best way.
raydude
Posts: 65
Joined: Sun Jul 21, 2013 6:09 pm

Re: ZM is filling /dev/shm

Post by raydude »

For those who find themselves in this situation.

I have two 1080P cameras setup with ffmpeg, they are the 475M listings in /dev/shm. The 211M is a 720P camera with ffmpeg.

The 3.9G camera is setup as "remote" rtsp and apparently requires a huge amount of shared memory. I'll try to configure it as ffmpeg to resolve this issue when I have a little more time.
raydude
Posts: 65
Joined: Sun Jul 21, 2013 6:09 pm

Re: ZM is filling /dev/shm

Post by raydude »

I should mention the big camera is also 1080P...
Locked