|
|
Re: pgs allocated issue [message #529296 is a reply to message #529040] |
Sun, 30 October 2011 20:40 |
andy huang
Messages: 498 Registered: July 2011
|
Senior Member |
|
|
hi,
What about the v$process.Pga_Used_Mem?
SQL> Select Sid From v$mystat Where Rownum<=1;
SID
----------
150
SQL> Select Pga_Used_Mem
2 From V$process Aa, V$session Bb
3 Where Aa.Addr = Bb.Paddr
4 And Bb.Sid = 150
5 /
PGA_USED_MEM
------------
1043314
|
|
|
|
Re: pgs allocated issue [message #529298 is a reply to message #529297] |
Sun, 30 October 2011 21:07 |
andy huang
Messages: 498 Registered: July 2011
|
Senior Member |
|
|
hi,
The "USED" is not equal to "allocated" by flowing test:
SQL> Select Sid From v$mystat Where Rownum<=1;
SID
----------
150
SQL> Select Pga_Used_Mem,PGA_ALLOC_MEM
2 From V$process Aa, V$session Bb
3 Where Aa.Addr = Bb.Paddr
4 And Bb.Sid = 150;
PGA_USED_MEM PGA_ALLOC_MEM
------------ -------------
1049566 1214486
|
|
|
|
|
|
|
|
Re: pgs allocated issue [message #529956 is a reply to message #529933] |
Thu, 03 November 2011 12:20 |
|
Michel Cadot
Messages: 68716 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
For Oracle it is possible, it just have to sum each time it calls "malloc" and decrease each time it calls "free" and both are embedded into their function which means only a single point to modify and not spread all over the code.
Regards
Michel
[Updated on: Thu, 03 November 2011 12:20] Report message to a moderator
|
|
|
|
|
|