标签:root host uid style page proc sys dev ice
[root@localhost dpdk-19.11]# cat /proc/meminfo | grep -i huge AnonHugePages: 0 kB ShmemHugePages: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 524288 kB [root@localhost dpdk-19.11]# echo 256 /sys/kernel/mm/hugepages/hugepages-524288kB/nr_hugepages 256 /sys/kernel/mm/hugepages/hugepages-524288kB/nr_hugepages [root@localhost dpdk-19.11]# cat /proc/meminfo | grep -i huge AnonHugePages: 0 kB ShmemHugePages: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 524288 kB [root@localhost dpdk-19.11]# mount | grep -i huge cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,hugetlb) hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,seclabel,pagesize=512M) [root@localhost dpdk-19.11]# mount -t hugetlbfs nodev /mnt/huge [root@localhost dpdk-19.11]# mount | grep -i huge cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,hugetlb) hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,seclabel,pagesize=512M) nodev on /mnt/huge type hugetlbfs (rw,relatime,seclabel,pagesize=512M) [root@localhost dpdk-19.11]# cat /proc/meminfo | grep -i huge AnonHugePages: 0 kB ShmemHugePages: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 524288 kB [root@localhost dpdk-19.11]# echo 256 /sys/kernel/mm/hugepages/hugepages-524288kB/nr_hugepages 256 /sys/kernel/mm/hugepages/hugepages-524288kB/nr_hugepages [root@localhost dpdk-19.11]# cat /proc/meminfo | grep -i huge AnonHugePages: 0 kB ShmemHugePages: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 524288 kB [root@localhost dpdk-19.11]# echo 64 > /sys/devices/system/node/node0/hugepages/hugepages-524288kB/nr_hugepages [root@localhost dpdk-19.11]# echo 64 > /sys/devices/system/node/node1/hugepages/hugepages-524288kB/nr_hugepages [root@localhost dpdk-19.11]# echo 64 > /sys/devices/system/node/node2/hugepages/hugepages-524288kB/nr_hugepages [root@localhost dpdk-19.11]# echo 64 > /sys/devices/system/node/node3/hugepages/hugepages-524288kB/nr_hugepages [root@localhost dpdk-19.11]# cat /proc/meminfo | grep -i huge AnonHugePages: 0 kB ShmemHugePages: 0 kB HugePages_Total: 256 HugePages_Free: 256 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 524288 kB [root@localhost dpdk-19.11]#
标签:root host uid style page proc sys dev ice
原文地址:https://www.cnblogs.com/dream397/p/13652844.html