Operating System - HP-UX
1752810 Members
5871 Online
108789 Solutions
New Discussion юеВ

SHMMAX = Available Memory

 
SOLVED
Go to solution
Alan Meyer_4
Respected Contributor

SHMMAX = Available Memory

In the setup for Oracle 10G on HP-UX 11.23, it specifies that SHMMAX should be set to Available Memory.

How does one determine available memory?
" I may not be certified, but I am certifiable... "
4 REPLIES 4
Don Morris_1
Honored Contributor
Solution

Re: SHMMAX = Available Memory

pstat_getstatic() or Glance would be the most reliable way -- but since this is a fence line setting anyway, just set it to the amount of RAM on the box (it doesn't matter much if you don't account for the memory used by the kernel, etc.)
Alzhy
Honored Contributor

Re: SHMMAX = Available Memory

Use vmstat.
The "free" column is your free memory.
Hakuna Matata.
Alan Meyer_4
Respected Contributor

Re: SHMMAX = Available Memory

Thanks for all your help.
" I may not be certified, but I am certifiable... "
A. Clay Stephenson
Acclaimed Contributor

Re: SHMMAX = Available Memory

Let me say that this is a very dumb way to set SHMMAX. What should be done is to ask the DBA's what their largest anticipated SGA will need and set SHMMAX a bit above that. SHMMAX has almost nothing to do with the amount of physical memory in a system because HP-UX is a virtual memory based system; however, allowing a single process to grab all the available memory is normally considered a bad thing. Moreover, SHMMAX is a per-process limit rather than a system-wide limit so even with values much smaller than total memory size, it is possible to drive your box to its knees because of excessive swapping.

Setting SHMMAX to a very large value does no harm in itself but it does allow the potential (intended or otherwise) for abuse there this should be a planned limit based upon maximum anticipated needs rather than
tying it to some value directly related to the total amount of physical memory.
If it ain't broke, I can fix that.