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.
shmall and shmmax
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:
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
Tom Stage
See the calculation description in the FAQ: Shared Memory