zmc_m2[10575]: ERR [Can't shmget, probably not enough shared

Forum for questions and support relating to the 1.24.x releases only.
Locked
baos
Posts: 14
Joined: Wed Jun 23, 2010 10:32 pm

zmc_m2[10575]: ERR [Can't shmget, probably not enough shared

Post by baos »

Can anyone tell me whats wrong?
Jun 25 03:25:23 -zmc_m2[10575]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Jun 25 03:25:23 -zmdc[1205]: ERR ['zmc -m 2' exited abnormally, exit status 255]


# sysctl -a |grep shm
kern.ipc.shm_allow_removed: 0
kern.ipc.shm_use_phys: 0
kern.ipc.shmall: 8192
kern.ipc.shmseg: 128
kern.ipc.shmmni: 192
kern.ipc.shmmin: 1
kern.ipc.shmmax: 33554432
kern.features.posix_shm: 1


FreeBSD --.net 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #1: Tue Jun 22 04:14:50 MDT 2010 root@:/usr/obj/usr/src/sys/DARREN i386


Using file zoneminder-1.24.2_3-freebsd-8.0.tar.gz
baos
Posts: 14
Joined: Wed Jun 23, 2010 10:32 pm

Post by baos »

Heres a better question. How do I figure out what the memory key is from freebsd?
baos
Posts: 14
Joined: Wed Jun 23, 2010 10:32 pm

Post by baos »

With no help from irc. Very useless.

b# ipcs -m
Shared Memory:
T ID KEY MODE OWNER GROUP
m 65536 2147418113 --rwa------ root wheel

So I throw 2147418113 in the field that had the hex. It's kind of weird. Now I just get tons of this...

Jun 25 16:14:06 digitalweb zmwatch[2905]: ERR [Can't get shared memory id '47410001', 1: No such file or directory]
jfkastner
Posts: 74
Joined: Wed Jun 17, 2009 11:52 pm

Post by jfkastner »

search for other posts with shared memory problems - this is very common since NO linux distro seems to have memory limits high enough for all the buffers that ZM uses

check your use with:

ipcs -l

and see how much memory each camera uses and which key:

ipcs -m

post your results and someone will help you further!

also check the permissions on /dev/video etc
baos
Posts: 14
Joined: Wed Jun 23, 2010 10:32 pm

Post by baos »

%ipcs -l
ipcs: illegal option -- l
usage: ipcs [-abcmopqstyMQST] [-C corefile] [-N namelist] [-u user]
%ipcs -m
Shared Memory:
T ID KEY MODE OWNER GROUP
m 65536 2053963777 --rwa------ www www
%ls -l /dev/cxm0
cr--r--r-- 1 root wheel 0, 81 Jun 27 21:02 /dev/cxm0
baos
Posts: 14
Joined: Wed Jun 23, 2010 10:32 pm

Post by baos »

I did lots of reading, tried different configs. maybe one that works? can't really know... now I get..

Jun 27 23:04:08 digitalweb zmwatch[1036]: ERR [Unable to read 'shared_data:size' from memory for monitor 1]
Jun 27 23:04:08 digitalweb kernel: cxm0: encoder dma not enough buffer space free
Jun 27 23:04:18 digitalweb last message repeated 258 times
Jun 27 23:04:18 digitalweb zmwatch[1036]: ERR [Can't read from shared memory '1/65536': Permission denied]
Jun 27 23:04:18 digitalweb zmwatch[1036]: ERR [Unable to read 'shared_data:size' from memory for monitor 1]
Jun 27 23:04:18 digitalweb zmwatch[1036]: ERR [Can't read from shared memory '1/65536': Permission denied]
Jun 27 23:04:18 digitalweb zmwatch[1036]: ERR [Unable to read 'shared_data:size' from memory for monitor 1]
Jun 27 23:04:18 digitalweb kernel: cxm0: encoder dma not enough buffer space free
Jun 27 23:04:18 digitalweb last message repeated 20 times
Jun 27 23:04:19 digitalweb kernel: pid 1436 (zma), uid 80: exited on signal 11
Jun 27 23:04:19 digitalweb kernel: cxm0: encoder dma not enough buffer space free
baos
Posts: 14
Joined: Wed Jun 23, 2010 10:32 pm

Post by baos »

Shared Memory:
T ID KEY MODE OWNER GROUP
m 65536 1 --rwa------ root wheel

don't know why it's root now, and at one time it was www.
jfkastner
Posts: 74
Joined: Wed Jun 17, 2009 11:52 pm

Post by jfkastner »

sorry i use ubuntu, the shared memory thingy seems different

you key looks weird though - usually it's something like 7A6D0001 etc, but BSD is a bit different

search the forums, i thought i'd seen a BSD guide somehwere here
baos
Posts: 14
Joined: Wed Jun 23, 2010 10:32 pm

Post by baos »

The harddrive I was using was bad. swap space was all corrupt. I replaced the harddrive, made a fresh install. with defaults everything is working. Also 10gigs of swap space. This bug is 'closed' =)
Locked