Kbase P97592: How to calculate the minimum value for SHMMNI UNIX kernel parameter.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/03/2009 |
|
Status: Verified
GOAL:
How to calculate the minimum value for SHMMNI UNIX kernel parameter.
GOAL:
Program to calculate the minimum value for SHMMNI kernel parameter.
FACT(s) (Environment):
UNIX
Progress 8.x
Progress 9.x
OpenEdge 10.x
FIX:
To calculate the minimum value for SHMMNI and set the kernel to at least this value, will depend on your available RAM.
The product of SHMMNI * SHMMAX will yield the maximum addressable space in RAM.
To calculate the minimum value of SHMMNI for one DB use the following 4GL program:
/* This program calculates the minimum value for SHMMNI
Enter the value of the startup parameters -n and -B, if they are not defined leave them as blank */
DEFINE VAR Val-n AS INTEGER INITIAL 0 LABEL "[Value of -n]".
DEFINE VAR Val-B AS INTEGER INITIAL 0 LABEL "[Value of -B]".
DEFINE VAR SHMMNI AS INTEGER INITIAL 0 LABEL "[Minimum kernel value for SHMMNI]".
SET Val-n Val-B.
IF Val-n = 0 THEN Val-n=25.
IF Val-B = 0 THEN Val-B=8 * Val-n.
IF Val-n > 50 THEN SHMMNI=ROUND(Val-n / 25,0).
IF Val-B > 400 THEN SHMMNI=SHMMNI + ROUND(Val-B / 200, 0).
SHMMNI=SHMMNI + 2.
DISPLAY SHMMNI.