Kbase P47970: How to change SHMMAX / SHMSEG kernel variables on LINUX ?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  15/06/2008 |
|
Status: Verified
GOAL:
How to change SHMMAX kernel variable on LINUX ?
GOAL:
How to change SHMSEG kernel variable on LINUX ?
GOAL:
How to list Kernel variables on LINUX?
FACT(s) (Environment):
Linux Intel
FIX:
An immediate change:
echo "value" > /proc/sys/kernel/shmmax
echo "value" > /proc/sys/kernel/shmmni
To make these changes permanent (after reboot), please edit /etc/sysctl.conf and put following 2 lines in there
kernel.shmmax = value
kernel.shmmni = value
On Linux, the SHMSEG value inherits value from SHMMNI and by default has sufficient value (4096). The SHMMAX is by default set to 33554432 (32 MB). Since the maximum shared memory segment Progress can access is 128 MB, the minimum recommended value for SHMMAX would be 134217728.