Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> PGA Work Area Histogram by Memory Size
Hello, see questions below ....
select low_optimal_size/1024 low_kb, (high_optimal_size+1)/1024 high_kb,
optimal_executions, onepass_executions, multipasses_executions
from v$sql_workarea_histogram
where total_executions != 0;
LOW_KB HIGH_KB OPTIMAL_EXECUTIONS ONEPASS_EXECUTIONS MULTIPASSES_EXECUTIONS
8 16 64621975 00
16 32 106265 00
32 64 116750 00
64 128 52384 200
128 256 7537 00
256 512 98963 300
512 1024 92970 00
1024 2048 8208 180
2048 4096 7442 40
4096 8192 4547 640
8192 16384 1221 4012
16384 32768 82 2140
32768 65536 0 1000
65536 131072 2 180
131072 262144 3 800
524288 1048576 0 660
8388608 16777216 0 02
I run the query above (and other PGA related queries) once per day. After the last execution, I noticed two sorts that allocated between 8 GB and 16 GB of memory - but this still was not enough to sort the data in one pass. It required multiple passes over the data to perform the sort. The Oracle documentation makes it clear that a multi-pass sort is very undesirable.
I remember reading in the Oracle documentation that a 1 GB piece of data can sort in one-pass mode using just 22 MB of memory. Here I have a piece of data (or two pieces) that requires multiple passes and it has between 8 GB and 16 GB of memory at its disposal. This makes me wonder what humungous piece of data needs multi-pass mode when it has between 8 and 16 GB of memory at its disposal! I figure that if this runs during the day, it could kill the system, and it certainly puts a heavy load on it whether it runs during the day or at night.
A few questions:
Thanks!
Sam.
Sam Bootsma
Oracle DBA
George Brown College
sbootsma_at_gbrownc.on.ca <mailto:sbootsma_at_gbrownc.on.ca>
416-415-5000 x4933
--
http://www.freelists.org/webpage/oracle-l
Received on Wed Feb 15 2006 - 07:25:08 CST
![]() |
![]() |