shmall and shmmax

Support and queries relating to all previous versions of ZoneMinder
Locked
ynn
Posts: 152
Joined: Fri Mar 17, 2006 2:30 am

shmall and shmmax

Post 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.
User avatar
voronwe
Posts: 193
Joined: Tue Jan 18, 2005 12:40 am
Location: Copenhagen Denmark

Post 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
Best Regards
Tom Stage
ynn
Posts: 152
Joined: Fri Mar 17, 2006 2:30 am

Post by ynn »

thank you for your help.
Athlon64
Posts: 4
Joined: Fri Jan 02, 2009 7:36 pm

Post 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?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

See the calculation description in the FAQ: Shared Memory
Locked