On 24.10.2014 10:22, Linhaifeng wrote:
Hi,

I run qemu2.1 with 1G hugepage and found that VM can't start (too slowly?) but 
can start with 2M hugepage quickly.

kernel version:3.10.0-123.6.3.el7.x86_64

command:qemu-kvm -name vm1 -enable-kvm -smp 2 -m 2048 -object 
memory-backend-file,id=mem,size=2048M,mem-path=/dev/hugepages,share=on -numa 
node,memdev=mem \
                -chardev socket,id=chr0,path=/path/socket  -netdev 
type=vhost-user,id=net0,chardev=chr0 -device 
virtio-net-pci,netdev=net0,mac=00:00:00:00:00:01
                -drive file=/mnt/sdb/imgs/vm1.img -vnc :0


What's the error message you're seeing? What's the filesystem mounted on /dev/hugepages? Moreover, 1GB hugepages can't be allocated at runtime currently, so do you allocate them on the host boot up process?

Michal

Reply via email to