linux huge模式设置,Linux HugePages 配置步骤
禁用ASMM 后就可以配置HugePages,步驟如下.https://www.cndba.cn/cndba/dave/article/4342
1.配置memlock
Edit the memlock setting in the /etc/security/limits.conf file. The memlock setting is specified in KB and set slightly lesser than the installed RAM. For example, if you have 64GB RAM installed, add the following entries to increase the max locked memory limit:https://www.cndba.cn/cndba/dave/article/4342
* soft memlock 60397977
* hard memlock 60397977
You can also set the memlock value higher than your SGA requirements.
2.查看memlock
Login as the oracle user again and run the ulimit -l command to verify the new memlock setting:
$ ulimit -l
60397977
3.查看當(dāng)前hugepagesize
Run the following command to display the value of Hugepagesize variable:
https://www.cndba.cn/cndba/dave/article/4342
$ grep Hugepagesize /proc/meminfo
4.計劃hugepages值
Complete the following procedure to create a script that computes recommended values for hugepages configuration for the current shared memory segments:
Linux 7.x 中 Oracle hugepage 大頁配置腳本
https://www.cndba.cn/dave/article/2672https://www.cndba.cn/cndba/dave/article/4342
Run the following command to change the permission of the file:https://www.cndba.cn/cndba/dave/article/4342
$ chmod +x hugepages_settings.sh
Run the hugepages_settings.sh script to compute the values for hugepages configuration:https://www.cndba.cn/cndba/dave/article/4342
$ ./hugepages_settings.sh
5.設(shè)置/etc/sysctl.conf 參數(shù)
Set the following kernel parameter:
https://www.cndba.cn/cndba/dave/article/4342https://www.cndba.cn/cndba/dave/article/4342
# sysctl -w vm.nr_hugepages=value_displayed_in_step_5
To make the value of the parameter available for every time you restart the computer, edit the /etc/sysctl.conf file and add the following entry:
vm.nr_hugepages=value_displayed_in_step_5
6.重啟操作系統(tǒng)
Restart the server.
https://www.cndba.cn/cndba/dave/article/4342
7.驗證hugepage
To check the available hugepages, run the following command:https://www.cndba.cn/cndba/dave/article/4342
$ grep Huge /proc/meminfo
HugePages_Total: 9732 == vm.nr_hugepages 參數(shù)值
總結(jié)
以上是生活随笔為你收集整理的linux huge模式设置,Linux HugePages 配置步骤的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 935. 骑士拨号器
- 下一篇: linux 其他常用命令