Shared Memory problems remain after following FAQ

Support and queries relating to all previous versions of ZoneMinder
Locked
cdavis
Posts: 6
Joined: Sat Jun 24, 2006 4:09 pm

Shared Memory problems remain after following FAQ

Post by cdavis »

I have my NC1000 set to 640x480 and I still get:

Jun 24 12:13:23 localhost zmu[8745]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Jun 24 12:13:23 localhost zms[8751]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]


I have done the following to increase the shared memory:

echo 134217728 >/proc/sys/kernel/shmall && echo 134217728 >/proc/sys/kernel/shmmax

In FC4

If I change the resolution to 320x240 it seems to work fine. But I would sure like to take advantage of the camera as much as I can, or am I just not able to do 640x480?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

Have you restarted zm after changing shared mem allocation
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
cdavis
Posts: 6
Joined: Sat Jun 24, 2006 4:09 pm

Post by cdavis »

Well I had thought so, but obviously not since that fixed it. Thanks. My proc usage went so high after that I had to take it back down anyway.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

It shouldnt effect prec usage (not adjusting shared mem) unless you are short on ram. If you upped the resololution this would obvisouly increase proc usage
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Actually his proc usage would increase because zm is actually able to now analyze images assuming the modetect or mocord are being used. You might try lowering your FPS.

Regards,
Corey
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

lol i meant that using 320x240 and just increasing shared mem shouldnt increase the proc usage but if using 640x480 prox usage wouls increase. Quite a bit even at the same fps. I must learn to write things better so more people understand what i mean!
James
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Yeah same here eh?
I will try to do a bit better. I am assuming that 640x480 was being used when he said it started working after restarting zm.
:D

Corey
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

Corey i thoink we need a tech support manual mate!!
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Locked