码迷,mamicode.com
首页 > 其他好文 > 详细

大页内存

时间:2020-09-17 22:10:17      阅读:29      评论:0      收藏:0      [点我收藏+]

标签: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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!