暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

linux9上安装19c后大页没有使用排查和处理过程

背景:

客户要求在rock linux9.4上安装19c环境,通过脚本一键安装完成后,检查内存分配发现没有使用到大页。

排查经过:

而系统内核参数中,又有大页配置:

进一步分析alert日志看大页情况,发现了问题:

通过上面可以看到,大页虽然分配了8705个2048k的页,17G的SGA明显是能够完全可以分配的,为什么用不了呢?于是搜索mos找到了原因和处理过程:

解决办法:

    1. Get the group id
    #id -g USERNAME


    2. Add the group id to shm
    #echo ID > proc/sys/vm/hugetlb_shm_groug
    Note: Use the ID of the last command.


    3. Save the configuration in sysctl.conf(immediate)
    # sysctl -w vm.hugetlb_shm_group= ID
    #echo "vm.hugetlb_shm_group = "ID >> etc/sysctl.conf


    Note: Use the ID of the user.


    参考:

    Oracle 19c Database on RHEL 9 not Using HUGEPAGES (Doc ID 3010862.1)

    How To Add a non-root group to hugetlb_shm_group in Oracle Linux (Doc ID 2491966.1)


    文章转载自数据库技术加油站,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

    评论