Page 1 of 1
shmall and shmmax
Posted: Fri Aug 03, 2007 5:45 pm
by ynn
I have 1 gig of RAM, what is the max shmall and shmmax I can put bigger than 134217728 , because It seems always give me an error 'Can't shmget: Invalid argument' on peak time.
thanks.
Posted: Sat Aug 04, 2007 9:12 am
by voronwe
Hi Ynn
My normal practice is to assign half of the system memory as shared memory.
That seems to fix most of my shmget problems.
For a 1024mb system that results in my sysctl file having the following values:
Code: Select all
kernel.shmmax=536674304
kernel.shmall=536674304
Posted: Sat Aug 04, 2007 9:49 am
by ynn
thank you for your help.
Posted: Sat Jan 03, 2009 4:10 pm
by Athlon64
My camera server has 4GB RAM. It's going to run a Zoneminder system connected up to seven 1.3MP Axis cameras. What values should I give kernel.shmmax and kernel.shmall for my setup?
Posted: Sun Jan 04, 2009 3:24 am
by cordel
See the calculation description in the
FAQ: Shared Memory