Yes, I've read the Wiki/FAQ & yes rtfm applies ....
A while back I purchased my wife & kids a new computer so I took the old system and made it into a security server running ZM. The problem I'm having is with Shared memory. Unfortunately the system has only 256MB of memory and its Rambus so adding memory is prohibitive due to its cost.
I have 4 cameras running, 2 are configured as follows:
RGB 565 16 bits per pixel
320x240 76,800 pixels
1,228,800 bits 15,3600 bytes
30 frame buffers 4,608,000 bytes
plus 10% overhead 460,800 bytes
Giving us a total of:
5,068,800 ~ 5MB each
so the two consume ~ 10MB
The other 2 have a 40 frame buffer but otherwise are exactly the same.
320x240 76,800 pixels
1,228,800 bits 15,3600 bytes
40 frame buffers 6,144,000 bytes plus 10%
6,758,400 ~ 6.8MB
So in total I figure the 4 cameras are consuming around 24MB give or take.
I've configured 96 MB of shared memory, with a max allocation of 64 MB.
ipcs -l
------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 65536
max total shared memory (kbytes) = 98304
min seg size (bytes) = 1
Based on these numbers it seems I should be able to increase the size of one or more of the cameras, but even a small increase in size to say 330x250 causes the infamous "Can't shmget, probably not enough shared memory space free:" So I have to admit I'm at a loss.
The only other thing worth mentioning is that I'm running Gentoo.
Any ideas on what is going on here would be welcome
Joe
Does not compute
Figured it out
Apache is allocating 33MB of shared memory at startup and the 4 cameras are consuming what remains of the 96MB so I'll have to take a look at Apache and see if it can be configured to run with less (or 0) shared memory.
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 2719744 root 600 33554432 3 dest
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 2719744 root 600 33554432 3 dest