在CentOS7.6下配置oracle 19.9时,如果没有显式设置HugePages为SGA所需的合适的值大小,而是设置了较大的值,尽管有时可以分配一些HugePages,但是一般不会是所设置的数目,结论是,必须显式设置合适的值。
如下关于wydb两个实例的alertlog输出,最后一次输出是正确设置并重启之后的:
---wydb1 2021-01-14T15:38:39.837037+08:00 PAGESIZE AVAILABLE_PAGES EXPECTED_PAGES ALLOCATED_PAGES ERROR(s) 4K Configured 12 58126 NONE 2048K 65425 65537 65423 NONE RECOMMENDATION: 2021-01-14T18:21:50.540222+08:00 PAGESIZE AVAILABLE_PAGES EXPECTED_PAGES ALLOCATED_PAGES ERROR(s) 4K Configured 12 18146062 NONE 2048K 95616 65537 30095 NONE 2021-01-26T11:03:07.510699+08:00 PAGESIZE AVAILABLE_PAGES EXPECTED_PAGES ALLOCATED_PAGES ERROR(s) 4K Configured 12 12 NONE 2048K 65537 65537 65537 NONE ---wydb2 2021-01-20T15:48:21.293976+08:00 PAGESIZE AVAILABLE_PAGES EXPECTED_PAGES ALLOCATED_PAGES ERROR(s) 4K Configured 12 58126 NONE 2048K 65536 65537 65423 NONE RECOMMENDATION: 2021-01-20T16:32:32.496017+08:00 PAGESIZE AVAILABLE_PAGES EXPECTED_PAGES ALLOCATED_PAGES ERROR(s) 4K Configured 12 58126 NONE 2048K 65536 65537 65423 NONE RECOMMENDATION: 2021-01-26T11:26:36.610035+08:00 PAGESIZE AVAILABLE_PAGES EXPECTED_PAGES ALLOCATED_PAGES ERROR(s) 4K Configured 12 12 NONE 2048K 65537 65537 65537 NONE
以下关于zzjk两个实例的输出,是设置了较大值vm.nr_hugepages = 131041以后的输出:
---zzjk1 2021-01-13T18:27:42.362638+08:00 PAGESIZE AVAILABLE_PAGES EXPECTED_PAGES ALLOCATED_PAGES ERROR(s) 4K Configured 8 12051210 NONE 2048K 53792 77313 53775 NONE RECOMMENDATION: 2021-01-13T18:58:56.811185+08:00 PAGESIZE AVAILABLE_PAGES EXPECTED_PAGES ALLOCATED_PAGES ERROR(s) 4K Configured 8 8 NONE 2048K 131041 77313 77313 NONE ---zzjk2 2021-01-13T18:59:58.326602+08:00 PAGESIZE AVAILABLE_PAGES EXPECTED_PAGES ALLOCATED_PAGES ERROR(s) 4K Configured 8 8 NONE 2048K 131041 77313 77313 NONE
可见HugePages也分到了想要的值,不过这并不一定,待重启再确认。
以下是设置并重启之后的输出:
---zzjk1 2021-01-29T18:03:18.604671+08:00 PAGESIZE AVAILABLE_PAGES EXPECTED_PAGES ALLOCATED_PAGES ERROR(s) 4K Configured 8 8 NONE 2048K 77313 77313 77313 NONE ---zzjk2 2021-01-29T17:34:34.408518+08:00 PAGESIZE AVAILABLE_PAGES EXPECTED_PAGES ALLOCATED_PAGES ERROR(s) 4K Configured 8 8 NONE 2048K 154626 77313 77313 NONE
可见还是显式设置最靠谱。
文章评论