qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] is qemu-2.1 support 1G hugepage
@ 2014-10-24  8:22 Linhaifeng
  2014-10-27  3:34 ` Michal Privoznik
  0 siblings, 1 reply; 2+ messages in thread
From: Linhaifeng @ 2014-10-24  8:22 UTC (permalink / raw)
  To: qemu-devel; +Cc: liuyongan, lilijun

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
-- 
Regards,
Haifeng

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] is qemu-2.1 support 1G hugepage
  2014-10-24  8:22 [Qemu-devel] is qemu-2.1 support 1G hugepage Linhaifeng
@ 2014-10-27  3:34 ` Michal Privoznik
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Privoznik @ 2014-10-27  3:34 UTC (permalink / raw)
  To: Linhaifeng, qemu-devel; +Cc: liuyongan, lilijun

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-10-27  3:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-24  8:22 [Qemu-devel] is qemu-2.1 support 1G hugepage Linhaifeng
2014-10-27  3:34 ` Michal Privoznik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).