Re: UGA inside PGA, yes or no?

  • From: "Powell, Mark" <mark.powell2@xxxxxxx>
  • To: ORACLE-L <oracle-l@xxxxxxxxxxxxx>
  • Date: Thu, 2 Feb 2017 20:08:26 +0000

Just some ramblings


If the UGA in not part of the PGA then why does a dump of the PGA Heaps produce 
the UGA Heap as part of its output?  What does physically stored in the PGA 
mean anyway in this context since the PGA as far as I know is not a single 
contiguous chunk of memory to begin with.  Aren't the posted blocks just 
pointers and sizes of chunks of memory allocated from available memory on 
request?  So isn't the UGA location (PGA vs SGA) just a logical location when 
not stored in the SGA?  With dedicated server Oracle just takes the memory for 
the UGA out of the same pool as the PGA hence logically it is in the PGA.




________________________________
From: oracle-l-bounce@xxxxxxxxxxxxx <oracle-l-bounce@xxxxxxxxxxxxx> on behalf 
of Stefan Koehler <contact@xxxxxxxx>
Sent: Thursday, February 2, 2017 1:43:26 PM
To: lsantos@xxxxxxxxx; ORACLE-L
Subject: Re: UGA inside PGA, yes or no?

Hey Luis,
so what is your question?

Yes, Tanel is right (as always). You can cross-check this on your own if you 
dump the PGA heaps. Here is an example from Oracle 12.2.

...
HEAP DUMP heap name="pga heap"  desc=0x7f0aba7ba260
 extent sz=0x20c0 alt=256 het=32767 rec=0 flg=0x2 opc=0
 parent=(nil) owner=(nil) nex=(nil) xsz=0x1fff0 heap=(nil)           <<< 
Top-Level PGA heap as no parent
...
HEAP DUMP heap name="diag pga"  desc=0x7f0aba7757b0
 extent sz=0x1040 alt=32767 het=32767 rec=0 flg=0x3 opc=0
 parent=0x7f0aba7ba260 owner=(nil) nex=(nil) xsz=0x70228 heap=(nil)  <<< 
Sub-Heap of PGA heap (0x7f0aba7ba260)
...
...
HEAP DUMP heap name="top uga heap"  desc=0x7f0aba7bc920
 extent sz=0xffc0 alt=288 het=32767 rec=0 flg=0x2 opc=0
 parent=(nil) owner=(nil) nex=(nil) xsz=0xfff8 heap=(nil)            <<< 
Top-Level UGA heap as no parent (= not in PGA heap)
...

Best Regards
Stefan Koehler

Independent Oracle performance consultant and researcher
Website: http://www.soocs.de
Twitter: @OracleSK
Upcoming online seminar: http://tinyurl.com/17-06-13-Shared-Pool-Internals

Luis Santos <lsantos@xxxxxxxxx> hat am 2. Februar 2017 um 19:20 geschrieben:

 Nearly all general articles about UGA and PGA states that UGA is stored in 
the PGA http://www.orafaq.com/wiki/PGA , when using dedicated server.

 http://www.orafaq.com/wiki/UGA
 https://sudhdba.wordpress.com/2014/04/13/a-lot-more-about-pga/

 But in this deep old article, Tanel Poder states (look the first comment 
from Martin and Tanel's reply) that UGA is not physically inside PGA
anymore...



 --
 Att
 Luis Santos


--
//www.freelists.org/webpage/oracle-l


Other related posts: