2.5 第五步: 在/etc/sysctl.conf文件中设置vm.nr_hugepages参数
...
vm.nr_hugepages = 1496
...
2.6 第六步:停止所有实例,并重启服务器
2.7 验证配置
在重启系统之后,确保所有的数据库实例都已经启动,使用如下命令检查HugePage的状态:
# grep HugePages /proc/meminfo
HugePages_Total: 1496
HugePages_Free: 485
HugePages_Rsvd: 446
HugePages_Surp: 0
为了确保HugePages配置的有效性,HugePages_Free值应该小于HugePages_Total 的值,并且应该等于HugePages_Rsvd的值。
Hugepages_Free 和HugePages_Rsvd 的值应该小于SGA 分配的gages。
2.8 故障处理
一些常见的问题如下:
|
Symptom |
Possible Cause |
Troubleshooting Action |
|
System is running out of memory or swapping |
Not enough HugePages to cover the SGA(s) and therefore the area reserved for HugePages are wasted where SGAs are allocated through regular pages. |
Review your HugePages configuration to make sure that all SGA(s) are covered. |
|
Databases fail to start |
memlock limits are not set properly |
Make sure the settings in limits.conf apply to database owner account. |
|
One of the database fail to start while another is up |
The SGA of the specific database could not find available HugePages and remaining RAM is not enough. |
Make sure that the RAM and HugePages are enough to cover all your database SGAs |
|
Cluster Ready Services (CRS) fail to start |
HugePages configured too large (maybe larger than installed RAM) |
Make sure the total SGA is less than the installed RAM and re-calculate HugePages. |
|
HugePages_Total = HugePages_Free |
HugePages are not used at all. No database instances are up or using AMM. |
Disable AMM and make sure that the database instances are up. |
|
Database started successfully and the performance is slow |
The SGA of the specific database could not find available HugePages and therefore the SGA is handled by regular pages, which leads to slow performance |
Make sure that the HugePages are many enough to cover all your database SGAs |
2.9 MOS 相关文档
HugePages and Oracle Database 11g AutomaticMemory Management (AMM) on Linux [ID 749851.1]
Hugepages are Not used by Database BufferCache [ID 829850.1]
Oracle Not Utilizing Hugepages [ID803238.1]
/proc/meminfo Does Not Provide HugePagesInformation on Oracle Enterprise Linux (OEL5) [ID 860350.1]
HugePages Not Released On Oracle RDBMSInstance Shutdown with RHEL / EL 5 Update 1 (5.1) [ID 550443.1]
Shell Script to Calculate ValuesRecommended Linux HugePages / HugeTLB Configuration [ID 401749.1]
HugePages on Oracle Linux 64-bit [ID 361468.1]
HugePages on Linux: What It Is... and WhatIt Is Not... [ID 361323.1]
Document749851.1 HugePages and Oracle Database 11g Automatic Memory Management(AMM) on Linux
Document829850.1 Hugepages Are Not Used by Database Buffer Cache
Document803238.1 Oracle Not Utilizing Hugepages
Document728063.1 Setup HugePages in an Guest Does Not Work with Oracle VM 2.1or 2.1.1
Document550443.1 HugePages Not Released On Oracle RDBMS Instance Shutdown withRHEL / EL 5 Update 1 (5.1)
Document860350.1 /proc/meminfo Does Not Provide HugePages Information onOracle Enterprise Linux (OEL5)
