Path: dp-news.maxwell.syr.edu!spool.maxwell.syr.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!postnews.google.com!u72g2000cwu.googlegroups.com!not-for-mail
From: "deebeeay@gmail.com" <deebeeay@gmail.com>
Newsgroups: comp.databases.oracle.server
Subject: Re: sga_max_size - pre-allocated at instance startup?
Date: 3 Mar 2006 01:16:53 -0800
Organization: http://groups.google.com
Lines: 45
Message-ID: <1141377413.100183.271930@u72g2000cwu.googlegroups.com>
References: <1141321044.417391.133330@z34g2000cwc.googlegroups.com>
   <1141373722.984104@proxy.dienste.wien.at>
NNTP-Posting-Host: 194.200.70.203
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1141377418 6021 127.0.0.1 (3 Mar 2006 09:16:58 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 3 Mar 2006 09:16:58 +0000 (UTC)
In-Reply-To: <1141373722.984104@proxy.dienste.wien.at>
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.0 gbahenc1 (NetCache NetApp/6.0.1P1D1)
Complaints-To: groups-abuse@google.com
Injection-Info: u72g2000cwu.googlegroups.com; posting-host=194.200.70.203;
   posting-account=E208Tg0AAACirDK0TjtbKeEjm05M6IEa
Xref: dp-news.maxwell.syr.edu comp.databases.oracle.server:262670

Thanks for your reply Laurenz. Our platform is HP-UX. I managed to find
a discussion on the HP forums which seems to suggest that Oracle grabs
all the memory specified in SGA_MAX_SIZE at startup.

And indeed running an ipcs -mb shows that Oracle has grabbed that
amount of memory

Cheers
Dee

Laurenz Albe wrote:
> deebeeay@gmail.com <deebeeay@gmail.com> wrote:
> > Is sga_max_size pre-allocated in memory at instance startup?
> >
> > I can't seem to find a definitive answer from docs or the web. Some
> > suggest yes but only on certain OSs.
>
> I can shed light on this as I was also dismayed by the woefully vague
> documentation and opened a service request to get the word from the source.
>
> We asked specifically for AIX and the answer was: yes, all the shared
> memory in SGA_MAX_SIZE is allocated at instance startup, but only
> SGA_TARGET of it is actually used.
>
> The documentation states that on Windows and Solaris the amount of
> allocated shared memory will change dynamically with SGA_TARGET.
>
> From that and the handwaving in the documentation ('On some UNIX
> platforms that do not support dynamic shared memory') I would guess
> that most UNIX platforms will have it like AIX.
>
> This is a little aggrevating as AIX is a UNIX platform that does support
> dynamic shared memory.
>
> You can try it out by setting SGA_MAX_SIZE different from SGA_TARGET
> and use the ipcs command to see how much shared memory is actually
> allocated.
>
> However, even if all the shared memory is allocated at instance startup,
> that is not a problem because as long as it is not actually accessed, it
> will get paged out and stay there.
> 
> Yours,
> Laurenz Albe

