QUESTION 1
===========
What is the maximum value of SHMMAX for a 32-bit (x86) Linux system?
QUESTION 2
===========
What is the maximum value of SHMMAX for a 64-bit (x86-64) Linux system?
ANSWER 1
============
Oracle Global Customer Support officially recommends a " maximum" for SHMMAX of just less than 4Gb, or 4294967295.
The
maximum size of a shared memory segment is limited by the size of the
available user address space. On 32-bit systems, this is a theoretical
4GB. The maximum possible value for SHMMAX is just less than 4Gb, or
4294967295. Setting SHMMAX to 4GB exactly will give you 0 bytes as max,
as this value is interpreted as a 32-bit number and it wraps around.
ANSWER 2
===========
Oracle Global Customer Support officially recommends a " maximum" for SHMMAX of "1/2 of physical RAM".
The
maximum size of a shared memory segment is limited by the size of the
available user address space. On 64-bit systems, this is a theoretical
2^64bytes. So the "theoretical limit" for SHMMAX is the amount of
physical RAM that you have. However, to actually attempt to use such a
value could potentially lead to a situation where no system memory is
available for anything else. Therefore a more realistic "physical
limit" for SHMMAX would probably be "physical RAM - 2Gb".
In an
Oracle RDBMS application, this "physical limit" still leaves inadequate
system memory for other necessary functions. Therefore, the common
"Oracle maximum" for SHMMAX that you will often see is "1/2 of physical
RAM". Many Oracle customers chose a higher fraction, at their
discretion.
Occasionally, Customers may erroneously think that
that setting the SHMMAX as recommended in this NOTE limits the total
SGA. That is not true. Setting the SHMMAX as recommended only causes
a few more “shared memory segments” to be used for whatever total SGA
that you subsequently configure in Oracle. For additional detail,
please see Document 15566.1, "SGA, SHMMAX, Semaphores and Shared Memory Explained"
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/19423/viewspace-1043528/ ,如需转载,请注明出处,否则将追究法律责任。