kernel: oracle (xxxx): Using mlock ulimits for SHM_HUGETLB is deprecated

Oracle 数据库运行在linux6/7中,启用大页之后,我们经常在/var/log/messages里面会看到类似这样的记录:
Jul 31 09:46:27 p1erpdb01 kernel: oracle (6444): Using mlock ulimits for SHM_HUGETLB is deprecated.

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

In this Document
Goal
Solution
References
APPLIES TO:
Linux OS - Version Oracle Linux 6.0 and later
Linux x86-64
GOAL
Add a non-root group to hugetlb_shm_group in Oracle Linux

SOLUTION

  1. Get the group id

id -g USERNAME

  1. 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.

REFERENCES

NOTE:361468.1 - HugePages on Oracle Linux 64-bit


grep SHM_HUGETLB /var/log/messages
cat /proc/sys/vm/hugetlb_shm_group
id -g oracle
--1001 --<group ID
id -g grid
--1001 --<group ID

echo "vm.hugetlb_shm_group=1001" >> /etc/sysctl.conf
sysctl -p

posted @   武汉OracleDBA  阅读(306)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
点击右上角即可分享
微信分享提示