PGA memory allocation [message #642910] |
Tue, 22 September 2015 21:20 |
|
devan0165
Messages: 28 Registered: September 2015 Location: Malaysia
|
Junior Member |
|
|
I have configured the below oracle 10gR2 server with total RAM = 16GB as below:-
1) SHMMAX = 13GB
2) SGA = 8GB
3) PGA = 4800M
4) CTX index memory = 2 GB.
From the above settings, I just want to know whether the PGA allocated from operating system RAM or from SHMMAX ?
Is PGA memory allocated from balance OS RAM (3GB) or from SHMMAX (13GB) ?
Please help me to solve this mystery.
|
|
|
|
|
Re: PGA memory allocation [message #642919 is a reply to message #642917] |
Wed, 23 September 2015 01:13 |
|
Michel Cadot
Messages: 68733 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
There are no a priori good parameter values, otherwise Oracle would set it without you.
You have to follow the performances of your database and database applications using StatsPack or AWR.
There are also many V$%ADVICE views which will help to configure memory parameters, use them.
[Updated on: Wed, 23 September 2015 01:13] Report message to a moderator
|
|
|
Re: PGA memory allocation [message #642920 is a reply to message #642919] |
Wed, 23 September 2015 01:35 |
|
devan0165
Messages: 28 Registered: September 2015 Location: Malaysia
|
Junior Member |
|
|
Thanks
Is the formula for SHMALL = (SHMMAX/pagesize) or (SHMMAX/Hugepagesize) ?
With pagesize = 4096, the new value for SHMALL = SHMMAX/4096 = (10737418240/4096) = 2621440
OR
With Hugepagesize = 2048, the new value for SHMALL = SHMMAX/2048 = (10737418240/2048) = 5242880
Which of the two above methods shall I choose to configure SHMALL ?
[Updated on: Wed, 23 September 2015 01:36] Report message to a moderator
|
|
|
|
|
|
|
Re: PGA memory allocation [message #642929 is a reply to message #642927] |
Wed, 23 September 2015 02:02 |
|
devan0165
Messages: 28 Registered: September 2015 Location: Malaysia
|
Junior Member |
|
|
This is another script I got from another site:-
# obtain the total memory from the system:
mem=$(free|grep Mem|awk '{print $2}')
#Convert the value of $mem to bytes:
totmem=$(echo "$mem*1024"|bc)
#Get the Hugepagesize from /proc/meminfo:
huge=$(grep Hugepagesize /proc/meminfo|awk '{print $2}')
#Calculate what 75% of the total memory on the system for SHMMAX:
max=$(echo "$totmem*75/100"|bc)
#Divide the SHMMAX value by the Hugepagesize to get SHMALL:
all=$(echo "$max/$huge"|bc)
[Updated on: Wed, 23 September 2015 02:04] Report message to a moderator
|
|
|