For example, where the oinstall group GID is 501
:
# echo 501 > /proc/sys/vm/hugetlb_shm_group
Use
vi
to add the following text to
/etc/sysctl.conf
, and enable the
boot.sysctl
script to run on system restart:
vm.hugetlb_shm_group=501
Note:
Only one group can be defined as the
vm.hugetlb_shm_group
.