PDA

View Full Version : Debian Shared Memory


hayward6
08-26-2008, 08:38 AM
In the wiki there's some steps to take for changing the shared memory amount. I used vi to add the line below and it seemed to work, but I was wondering if that number is good, or should I increase it. And in the sysctl.conf file almost everything was #'d out... so I hope thats the way it should be... it just didn't look right, because I expected to see a similar line with a smaller number there to change.

Permanent
To changed the shared memory limit permanently, you will have to edit the /etc/sysctl.conf file to reflect the following:

kernel.shmmax = 134217728

This will set the limit to 128MB (134217728 bytes) permanently. You can then run the following command for it to take effect immediately:

/sbin/sysctl -p

Flare83
08-26-2008, 09:24 AM
128mb should be plenty, been running with 128mb and no problems here =)

hayward6
08-26-2008, 10:14 AM
Thank you!