0xc0000000
0x40000000
0x200000
0x1000
cpu flags pse pdpe1gb
内核config CONFIG_HUGETLBFS=y
CONFIG_HUGETLB_PAGE=y
文件系统挂载
[root@localhost /]# cat proc/mounts
rootfs / rootfs rw 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
devtmpfs /dev devtmpfs rw,nosuid,size=64814456k,nr_inodes=16203614,mode=755 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /run tmpfs rw,nosuid,nodev,mode=755 0 0
tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd 0 0
pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0
cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
cgroup /sys/fs/cgroup/net_cls,net_prio cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0
cgroup /sys/fs/cgroup/hugetlb cgroup rw,nosuid,nodev,noexec,relatime,hugetlb 0 0
configfs /sys/kernel/config configfs rw,relatime 0 0
/dev/mapper/linux-system--A / ext4 rw,relatime,data=ordered 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=30,pgrp=1,timeout=300,minproto=5,maxproto=5,direct 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
mqueue /dev/mqueue mqueue rw,relatime 0 0
hugetlbfs /dev/hugepages hugetlbfs rw,relatime 0 0
tmpfs /tmp tmpfs rw 0 0
/dev/sda1 /boot ext4 rw,relatime,data=ordered 0 0
/dev/sda6 /config ext4 rw,relatime,data=ordered 0 0
/dev/sda7 /disk/disk_system ext4 rw,relatime,data=ordered 0 0
tmpfs /run/user/0 tmpfs rw,nosuid,nodev,relatime,size=13181628k,mode=700 0 0
[root@localhost /]#
配置:
[root@localhost /]# cat proc/meminfo
MemTotal: 131816268 kB
MemFree: 33839832 kB
MemAvailable: 101533052 kB
Buffers: 123092 kB
Cached: 67695852 kB
SwapCached: 3388 kB
Active: 26594384 kB
Inactive: 68007936 kB
Active(anon): 26426308 kB
Inactive(anon): 357576 kB
Active(file): 168076 kB
Inactive(file): 67650360 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 16777212 kB
SwapFree: 16729944 kB
Dirty: 116 kB
Writeback: 0 kB
AnonPages: 26780564 kB
Mapped: 79984 kB
Shmem: 472 kB
Slab: 300160 kB
SReclaimable: 200060 kB
SUnreclaim: 100100 kB
KernelStack: 17984 kB
PageTables: 63752 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 81636768 kB
Committed_AS: 41067244 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 568740 kB
VmallocChunk: 34290890804 kB
HardwareCorrupted: 0 kB
AnonHugePages: 26034176 kB
HugePages_Total: 2
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 1048576 kB
DirectMap4k: 298488 kB
DirectMap2M: 56035328 kB
DirectMap1G: 79691776 kB
[root@localhost /]#
设置
sysctl直接执行
sysctl配置文件
grub配置文件
qemu使用
-m -mem-path /dev/hugepage -prealloc
注意,分的不能大于总的,物理虚拟一样
阅读(1672) | 评论(0) | 转发(0) |