Setting up BL-C30A on a Dimension 3000

Support and queries relating to all previous versions of ZoneMinder
Locked
camus
Posts: 8
Joined: Fri Jun 24, 2005 11:50 pm

Setting up BL-C30A on a Dimension 3000

Post by camus »

I'm trying to setup zoneminder on a dell dimensions 3000 with 512MB of memory. I'm running debian unstable with kernel version 2.6.8. I have successfully compiled and installed zoneminder. However, I'm having problems with zoneminder having enough shared memory for the BL-C30A cameras.

The camera is setup for 320x240x 24bit color.
Image buffer size: 15
warm up frames: 15
pre/post : 5

A buffer size of 15 seems to be the maximum I can use before getting the shmget error in the logs. I have already added the following in /etc/sysctl.conf (and checked for them after rebooting)
kernel.shmall = 134217728
kernel.shmmax = 134217728

top shows 182M used and 325M free. Zoneminder works ok for 1 camera at this setting, but its not scaling any.


So I have the following questions:
1. Is there anything I'm missing so I can get get better, more usable performance?
2. What is a reasonable image buffer size for ip cameras

thanks
Baylink
Posts: 338
Joined: Sun Jun 19, 2005 3:19 am

Post by Baylink »

The c30 is just the wireless c-10, and I have 2 of those running in 256MB real memory. What are you seeing in your syslog?
camus
Posts: 8
Joined: Fri Jun 24, 2005 11:50 pm

Post by camus »

If I set both cameras with a buffer size of 10, I get this:

Jun 23 06:37:45 localhost zma_m3[30586]: WAR [Approaching buffer overrun, consider increasing ring buffer size]

If its any greater, I get the shmget error.
Jun 23 21:30:14 localhost zma_m3[3658]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]

I followed the info on shmget listed in the faq but i still get this problem.

What buffer size and resolution are you retrieving images at?

thanks
Baylink
Posts: 338
Joined: Sun Jun 19, 2005 3:19 am

Post by Baylink »

At the moment I'm at 320x240, and I don't remember what the SMH settings are. The machine is off-line until I get the wireless hung Monday morning; I'll pull a setup dump after that.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Don't forget to do a full ZM restart if you increase buffer sizes of image sizes (or anything that increases shm use). Otherwise not everything lets go of the existing segment and it can't delete it and create a new bigger one.

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

Post by jameswilson »

im getting one of these to try and was wondering what you all think of them and can you disable the privacy button??

James

**edit the c10 non wireless ones
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

A buffer size of 10 is a bit small by the way. I would try it at at least 40 initially.

Phil
Locked