Shared memeoy problem. I think

Support and queries relating to all previous versions of ZoneMinder
Locked
Alan87i
Posts: 116
Joined: Sun Jul 27, 2008 9:58 am

Shared memeoy problem. I think

Post by Alan87i »

Code: Select all

05/15/12 12:47:58.070168 zmdc[7984].INF [Starting pending process, zmc -m 20]
05/15/12 12:47:58.114392 zmdc[7984].INF ['zmc -m 20' starting at 12/05/15 12:47:58, pid = 8278]
05/15/12 12:47:58.133346 zmdc[7984].ERR ['zmc -m 20' exited abnormally, exit status 255]
05/15/12 12:57:58.070160 zmdc[7984].INF [Starting pending process, zmc -m 20]
05/15/12 12:57:58.101418 zmdc[7984].INF ['zmc -m 20' starting at 12/05/15 12:57:58, pid = 8378]
05/15/12 12:57:58.132620 zmdc[7984].ERR ['zmc -m 20' exited abnormally, exit status 255]
05/15/12 13:03:45.280534 zmdc[7984].INF ['zmc -m 20' starting at 12/05/15 13:03:45, pid = 8441]
05/15/12 13:03:45.324641 zmdc[7984].ERR ['zmc -m 20' exited abnormally, exit status 255]

Code: Select all

05/15/12 12:34:08.093340 zmwatch[7734].INF [Restarting capture daemon for New, shared memory not valid]
05/15/12 12:34:08.331420 zmwatch[7734].INF ['zmc -m 20' starting at 12/05/15 12:34:08, pid = 7898]
05/15/12 12:37:24.720156 zmwatch[8049].INF [Watchdog starting]
05/15/12 12:37:24.722681 zmwatch[8049].INF [Watchdog pausing for 30 seconds]
05/15/12 13:03:45.086546 zmwatch[8049].INF [Restarting capture daemon for New, shared memory not valid]
05/15/12 13:03:45.286367 zmwatch[8049].INF ['zmc -m 20' starting at 12/05/15 13:03:45, pid = 8441]

Code: Select all

root@allan-cameras:/home/allan# ipcs -m

------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status
0x7a6d3008 851968     www-data  700        9217188    2
0x7a6d300d 884737     www-data  700        9217188    2
0x7a6d300c 917506     www-data  700        9217188    2
0x7a6d300e 950275     www-data  700        9217188    2
0x7a6d3009 983044     www-data  700        9217188    2
0x7a6d300a 1015813    www-data  700        9217188    2
0x7a6d3014 1146886    www-data  700        14132228   0
0x7a6d300b 1048583    www-data  700        9217188    3
0x00000000 262152     root      600        393216     2          dest

Code: Select all

root@allan-cameras:/home/allan# ipcs -s

------ Semaphore Arrays --------
key        semid      owner      perms      nsems
0x00000000 0          www-data  600        1

root@allan-cameras:/home/allan# ipcs -l

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

------ Semaphore Limits --------
max number of arrays = 128
max semaphores per array = 250
max semaphores system wide = 32000
max ops per semop call = 32
semaphore max value = 32767

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

root@allan-cameras:/home/allan#
I'm trying too add an IP camera The system is 1.22.3 with a 8 port working clone bttv card.
Above is errors and what I can remember to post from all the trouble shooting I have done.
I can add monitors from another ZM system but not this IP cam. It outputs video at 640x368 with IP/snap.jpeg in any browser.
I'm stumped at this point.
Flasheart
Posts: 342
Joined: Thu Jul 06, 2006 2:27 pm

Re: Shared memeoy problem. I think

Post by Flasheart »

Have you increased your shared memory? It catches a lot of people out - so follow the relevent section at http://www.zoneminder.com/wiki/index.php/FAQ

You don't mention resolution but I'm guessing your ip cam is higher than the analogues?
Alan87i
Posts: 116
Joined: Sun Jul 27, 2008 9:58 am

Re: Shared memeoy problem. I think

Post by Alan87i »

The system has 2 Gb of ram , and I have tested the shared memory settings to past that amount.
Alan87i
Posts: 116
Joined: Sun Jul 27, 2008 9:58 am

Re: Shared memeoy problem. I think

Post by Alan87i »

Code: Select all

> sysctl -p
kernel.printk = 4 4 1 7
kernel.maps_protect = 1
fs.inotify.max_user_watches = 524288
vm.mmap_min_addr = 65536
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
kernel.shmall = 1512000000
kernel.shmmax = 6042000000

Code: Select all

------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status      
0x00000008 0          www-data  700        9217188    2                       
0x0000000d 32769      www-data  700        9217188    2                       
0x0000000c 65538      www-data  700        9217188    2                       
0x0000000e 98307      www-data  700        9217188    2                       
0x00000009 131076     www-data  700        9217188    2                       
0x0000000a 163845     www-data  700        9217188    2                       
0x0000000b 196614     www-data  700        9217188    3                       
0x00000001 294919     www-data  700        7066548    0                       
0x00000000 262152     root      600        393216     2          dest  
I have tried everything I can find here on the forums Anyone?


CPU load averages 0.17 (1 min) 0.32 (5 mins) 0.22 (15 mins)
CPU usage 14% user, 2% kernel, 0% IO, 84% idle
Real memory 1.72 GB total, 257.55 MB used

I set the shared memory above what the system has it's as if ZM doesn't even try too grab the image. only 257 mb used from 2 gb.
Locked