All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about using "qemu-kvm" to create vm including "-mem-path"
@ 2014-09-09 23:54 Min Du
  2014-09-10  8:04 ` Paolo Bonzini
  0 siblings, 1 reply; 2+ messages in thread
From: Min Du @ 2014-09-09 23:54 UTC (permalink / raw)
  To: kvm@vger.kernel.org

Hi everyone,

I was wondering if anyone could answer my confusion here. I am using qemu-kvm 0.12.1 installed with centos-6.5. I would like to use large pages to back my guest vm, so I did it as this: http://www.linux-kvm.org/page/UsingLargePages, and added "-mem-path /hugetlbfs" in the command to create VM. When things went well, after creating vm, I type "tail /proc/meminfo", it would show like this, which means "HugePages" was used:
[root@mind domain]# tail /proc/meminfo 
VmallocChunk:   34359481380 kB
HardwareCorrupted:     0 kB
AnonHugePages:   1368064 kB
HugePages_Total:     512
HugePages_Free:      384
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        6144 kB
DirectMap2M:    12552192 kB

However if I add "root=/dev/vda1" in the command to create vm, which looks like "-append root=/dev/vda1 console=ttyS0" in command line, then "-mem-path /hugetlbfs" doesn't work:
[root@mind domain]# tail /proc/meminfo 
VmallocChunk:   34359481380 kB
HardwareCorrupted:     0 kB
AnonHugePages:   1390592 kB
HugePages_Total:     512
HugePages_Free:      512
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        6144 kB
DirectMap2M:    12552192 kB

Does anyone know how does "root=/dev/vda1" conflict with hugepages and how do I use both of them to create a VM? I am actually using an xml file to create VM, and those commands I mentioned above are shown in "ps aux | grep qemu".

Thanks,
Min

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

end of thread, other threads:[~2014-09-10  8:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-09 23:54 Question about using "qemu-kvm" to create vm including "-mem-path" Min Du
2014-09-10  8:04 ` Paolo Bonzini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.