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
- Get the group id
id -g USERNAME
- 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
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?