1.6 HugePage 的大小
单个HugePage的大小根据平台的不同而不同:
(1) Kernel version/linux distribution
(2) HW Platform
HugePage 的实际大小可以使用如下命令查看:
$grep Hugepagesize /proc/meminfo
The table belowshows the sizes of HugePages on different configurations. Note that these aregeneral numbers taken from the most recent versions of the kernels. For aspecific kernel source package, you can check for the HPAGE_SIZE macro value(based on HPAGE_SHIFT) for a different (more recent) kernel source tree.
--下表显示了不同平台下HugePages的值:
|
HW Platform |
Source Code Tree |
Kernel 2.4 |
Kernel 2.6 |
|
Linux x86 (IA32) |
i386 |
4 MB |
4 MB * |
|
Linux x86-64 (AMD64, EM64T) |
x86_64 |
2 MB |
2 MB |
|
Linux Itanium (IA64) |
ia64 |
256 MB |
256 MB |
|
IBM Power Based Linux (PPC64) |
ppc64/powerpc |
N/A ** |
16 MB |
|
IBM zSeries Based Linux |
s390 |
N/A |
N/A |
|
IBM S/390 Based Linux |
s390 |
N/A |
N/A |
* Some older packaging for the 2.6.5 kernel on SLES8 (like 2.6.5-7.97) can have2 MB Hugepagesize.
** Oracle RDBMS is also not certified in this configuration. See Document341507.1
1.7HugePages and Oracle 11g Automatic Memory Management (AMM)
The AMM and HugePages are not compatible.One needs to disable AMM on 11g to be able to use HugePages. See Document749851.1 for further information.
--Oracle 11g的AMM与HugePages不兼容。 需要注意。
1.8 没配置HugePages 的危险
在Linux OS下,如果对delicate进程没有配置合适的的HugePage,那么可能会遇到如下的问题:
(1) HugePages not used (HugePages_Total = HugePages_Free) at all wastingthe amount configured for
(2) Poor database performance 影响数据库性能
(3) System running out of memory or excessive swapping 内存不足或者经常需要进行swap
(4) Some or any database instancecannot be started 某些数据库实例不能启动
(5) Crucial system services failing(e.g.: CRS) 严重的系统故障
To avoid / helpwith such situations Bug10153816 was filed to introduce a database initialization parameter in11.2.0.2 (use_large_pages) to help manage which SGAs will use huge pages andpotentially give warnings or not start up at all if they cannot get thosepages.
