0% found this document useful (0 votes)
16 views2 pages

Huge Page Configuration

Uploaded by

Bishwanath Das
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views2 pages

Huge Page Configuration

Uploaded by

Bishwanath Das
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

####STEP1: Check Physical Memory

# grep MemTotal /proc/meminfo

MemTotal: 132151496 k

####STEP2: Check Database Parameter

SQL> select value from v$parameter where name = 'memory_target';


SQL> select value/1024 from v$parameter where name = 'sga_target';
SQL> select value from v$parameter where name = 'use_large_pages';

####STEP3: Check present Hugepagesize

# cat /sys/devices/system/node/node*/meminfo | fgrep Huge


# grep Hugepagesize /proc/meminfo
# ulimit -l
# cat /sys/kernel/mm/redhat_transparent_hugepage/enabled

####STEP4: Calculate Hugepages

# Total SGA(KB) / Hugepagesize = Number Hugepages


# Following our example:
# Total SGA=600GB
# Total SGA(KB) / Hugepagesize = Number Hugepages
629145600 / 2048 = 307200

# So Recommended setting: vm.nr_hugepages = 307200

####STEP5: Change Server Configuration

# cat /etc/sysctl.conf

# vi /etc/sysctl.conf

vm.nr_hugepages=307200

# Correctly inserted, following result should show up:

# grep vm.nr_hugepages /etc/sysctl.conf

vm.nr_hugepages=307200

### The next parameter is hard and soft memlock in /etc/security/limits.conf for
our oracle user.
This value should be smaller than our available memory but minor to our SGA.
Our hugepages should fit into that by 100 percent. For that following
calculation:

# Number Hugepages * Hugepagesize = minimum Memlock

Following our example:

# Number Hugepages * Hugepagesize = minimum Memlock


307200 * 2048 = 629145600

cat /etc/security/limits.conf

vi /etc/security/limits.conf

oracle soft memlock 629145600


oracle hard memlock 629145600

### Correctly inserted, following result should show up:

...
oracle soft memlock 629145600
oracle hard memlock 629145600

####STEP6: Server Reboot

# reboot

####STEP7: Check Configuration

### Memlock correct?

# ulimit -l

629145600

HugePages correctly configured and in use?

grep Huge /proc/meminfo

AnonHugePages: 538624 kB
HugePages_Total: 20480
HugePages_Free: 12292
HugePages_Rsvd: 8188
HugePages_Surp: 0
Hugepagesize: 2048 kB
Transparent Hugepages disabled?

### cat /sys/kernel/mm/redhat_transparent_hugepage/enabled

always madvise [never]

You might also like