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