Comment 1 for bug 1566293

Revision history for this message
Arthur Svechnikov (asvechnikov) wrote :

From node-2:

 root@node-2:~# mount
 /dev/mapper/os-root on / type ext4 (rw,errors=panic)
 proc on /proc type proc (rw,noexec,nosuid,nodev)
 sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
 none on /sys/fs/cgroup type tmpfs (rw)
 none on /sys/fs/fuse/connections type fusectl (rw)
 none on /sys/kernel/debug type debugfs (rw)
 none on /sys/kernel/security type securityfs (rw)
 udev on /dev type devtmpfs (rw,mode=0755)
 devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
 tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
 none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
 none on /run/shm type tmpfs (rw,nosuid,nodev)
 none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
 none on /sys/fs/pstore type pstore (rw)
 /dev/sda3 on /boot type ext2 (rw)
 /dev/mapper/vm-nova on /var/lib/nova type xfs (rw)
 systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
 hugetlbfs-kvm on /run/hugepages/kvm type hugetlbfs (rw,mode=775,gid=114)
 none on /sys/kernel/config type configfs (rw)

Libvirt configuration file /etc/libvirt/qemu.com contains line:

 # If provided by the host and a hugetlbfs mount point is configured,
 # a guest may request huge page backing. When this mount point is
 # unspecified here, determination of a host mount point in /proc/mounts
 # will be attempted. Specifying an explicit mount overrides detection
 # of the same in /proc/mounts. Setting the mount point to "" will
 # disable guest hugepage backing. If desired, multiple mount points can
 # be specified at once, separated by comma and enclosed in square
 # brackets, for example:
 #
 # hugetlbfs_mount = ["/dev/hugepages2M", "/dev/hugepages1G"]
 #
 # The size of huge page served by specific mount point is determined by
 # libvirt at the daemon startup.
 #
 # NB, within these mount points, guests will create memory backing
 # files in a location of $MOUNTPOINT/libvirt/qemu
 #
 #hugetlbfs_mount = "/dev/hugepages"

 hugetlbfs_mount = "/run/hugepages/kvm"

Seems that there should be 2 mount points for 2M and 1G. However when hugetlbfs_mount is set to ["/run/hugepages/kvm_2M", "/run/hugepages/kvm_1G"], the same (/run/hugepages/kvm) mount point is created after reboot.