签到成功

知道了

CNDBA社区CNDBA社区

Linux HugePages 配置步骤

2020-12-28 21:32 1494 0 转载 Oracle 19c
作者: dave

禁用ASMM 后就可以配置HugePages,步骤如下.

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:http://www.cndba.cn/dave/article/4342http://www.cndba.cn/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:http://www.cndba.cn/dave/article/4342

$ ulimit -l
60397977

3.查看当前hugepagesize

Run the following command to display the value of Hugepagesize variable:

$ 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:http://www.cndba.cn/dave/article/4342

Linux 7.x 中 Oracle hugepage 大页配置脚本
https://www.cndba.cn/dave/article/2672http://www.cndba.cn/dave/article/4342

Run the following command to change the permission of the file:

$ chmod +x hugepages_settings.sh

Run the hugepages_settings.sh script to compute the values for hugepages configuration:

$ ./hugepages_settings.sh

5.设置/etc/sysctl.conf 参数

Set the following kernel parameter:

http://www.cndba.cn/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:

http://www.cndba.cn/dave/article/4342
http://www.cndba.cn/dave/article/4342http://www.cndba.cn/dave/article/4342

vm.nr_hugepages=value_displayed_in_step_5

6.重启操作系统

Restart the server.

7.验证hugepage

To check the available hugepages, run the following command:http://www.cndba.cn/dave/article/4342

$ grep Huge /proc/meminfo
HugePages_Total:    9732  == vm.nr_hugepages 参数值
用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
dave

dave

关注

人的一生应该是这样度过的:当他回首往事的时候,他不会因为虚度年华而悔恨,也不会因为碌碌无为而羞耻;这样,在临死的时候,他就能够说:“我的整个生命和全部精力,都已经献给世界上最壮丽的事业....."

  • 2239
    原创
  • 3
    翻译
  • 547
    转载
  • 186
    评论
  • 访问:6658258次
  • 积分:4249
  • 等级:核心会员
  • 排名:第1名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ