LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to calculate shmmax when install Oracle in Linux (https://www.linuxquestions.org/questions/linux-software-2/how-to-calculate-shmmax-when-install-oracle-in-linux-147029/)

exper 02-17-2004 12:36 AM

how to calculate shmmax when install Oracle in Linux
 
I don't know how to calculate the numerical in /proc/sys/kernel/shmmax file when I install Oracle 9.

Does any one pleased to provide formula to make it out.

Thanks

hw-tph 02-17-2004 05:15 AM

Quote:

1.

Set shmmax (largest shared memory segment size) to at least half of the RAM size. For example, if your RAM size is 512 MB, then shmmax size should be at least
256 * 1024 * 1024 = 268435456
The default value is 33554432 bytes.
2. Switch to root user, then

echo newsize > /proc/sys/kernel/shmmax
Example:
Code:

$ echo "268435456" > /proc/sys/kernel/shmmax
$ echo /proc/sys/kernel/shmmax
268435456


http://otn.oracle.com/sample_code/tu...onRedHat8.html

Hope that helps.

Håkan


All times are GMT -5. The time now is 03:19 AM.