![]() | Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition | ||
|
|
![]() |
||||||||||||||||||||||||||||||||||||||||||
Solution Type Technical Instruction Sure Solution 2220254.1 : ODA HA: Use OAKCLI RECONFIGURE OSPARAMS to Calculate, Update and Set Kernel / Memory Values Including Hugepages
In this Document
Created from <SR 3-13542514041> Applies to:Oracle Database Appliance X6-2 HA Hardware - Version All Versions to All Versions [Release All Releases]Oracle Database Appliance X5-2 - Version All Versions to All Versions [Release All Releases] Oracle Database Appliance X4-2 - Version All Versions to All Versions [Release All Releases] Information in this document applies to any platform. ODA, ODA HA, ODA X6-2 HA, ODAVP, Hugepages, OS kernel parameters, GoalOne challenge with the ODA is calculating the correct OS / Kernel values for memory:
This note describes the steps to set Kernel parameters
This note is regarding the ODA HA and not X6-2 S X6-2 M or X6-2L (ODA Lite single servers) which use ODA*CLI commands. SolutionAutomatic Method
The Oracle Database Appliance High Availability ( ODA HA ) Oracle Appliance Kit command line ( OAKCLI) has introduced a new method to calculate and update Kernel parameters using the command oakcli reconfigure osparams
The OAKCLI RECONFIGURE OSPARAMS command is available on the current ODA releases # oakcli reconfigure Example [root@odax5-2 ~]# oakcli reconfigure osparams Configured value for memlock is: 183000000 Do you want to use suggested value of memlock?: yes/no
Do you want to update to suggested value?: yes/no
IMPORTANT TIPS
Manual MethodManual Method ( Optional if using older ODA versions) 1. Increase kernel.sem on BOTH nodes (See Table 1)
To:
e.g. To alter from current values to target values for kernel.sem # vi /etc/sysctl.conf
kernel.sem=1510 214420 1510 200 # sysctl -p /etc/sysctl.conf
2. Increase the hugepages from 67200 to 103865 on both nodes as below: e.g. To alter from current values to target values for vm.nr_hugepages # vi /etc/sysctl.conf
vm.nr_hugepages=103865 # sysctl -p /etc/sysctl.conf
3. Increase memlock limit from 192000000 to 256000000 on both nodes as below: e.g. To alter from current values to target values for memlock # vi /etc/security/limits.conf
oracle soft memlock 256000000 oracle hard memlock 256000000
4. For shmmax and shmall the current setting fully covers all the memory combinations. total_mem = 'cat /proc/meminfo | grep MemTotal: | awk '{print $2}'
Here are some estimates below. Table 1
More: Here are some tested settings for the ODA if using 50+ databases 1. Increase kernel.sem from ‘250 32000 100 142’ to ‘1510 214420 1510 200’ on both nodes. # vi /etc/sysctl.conf # sysctl -p /etc/sysctl.conf
2. Increase the hugepages from 67200 to 103865 on both nodes as below: # vi /etc/sysctl.conf
vm.nr_hugepages=103865 # sysctl -p /etc/sysctl.conf 3.Increase memlock limit from 192000000 to 256000000 on both nodes as below: # vi /etc/security/limits.conf
oracle soft memlock 256000000 oracle hard memlock 256000000 Each database has following configurations: alter system set sga_target=4g scope=spfile sid='*';
alter system set pga_aggregate_target=2g scope=both sid='*'; alter system set processes=1500 scope=spfile sid='*'; alter system set cpu_count=8 scope=both sid='*'; Since you use hupepages "kernel.shmmax ,kernel.shmall " changes are not required.
References<NOTE:2218451.1> - ODA: After a DIMM Upgrade Several Key OS Kernel Values Were Reset Back to the Original Values After ODA patching / Upgrade - Bug 25192165<BUG:25192165> - ODA PATCHING RESETS KERNEL PARAMETERS TO DEFAULT AFTER DIMM UPGRADE <BUG:25190881> - ENH:ODA OAKCLI RECONFIGURE OSPARAMS CHECKS + UPDATES KERNEL AFTER A DIMM UPGRADE Attachments This solution has no attachment |
||||||||||||||||||||||||||||||||||||||||||
|