From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: Question about using "qemu-kvm" to create vm including "-mem-path" Date: Wed, 10 Sep 2014 10:04:17 +0200 Message-ID: <54100601.4030009@redhat.com> References: <38CC6489-C5F5-4210-9ACC-BD552D50B988@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit To: Min Du , "kvm@vger.kernel.org" Return-path: Received: from mail-we0-f176.google.com ([74.125.82.176]:35684 "EHLO mail-we0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751998AbaIJIE0 (ORCPT ); Wed, 10 Sep 2014 04:04:26 -0400 Received: by mail-we0-f176.google.com with SMTP id q58so4860167wes.35 for ; Wed, 10 Sep 2014 01:04:25 -0700 (PDT) In-Reply-To: <38CC6489-C5F5-4210-9ACC-BD552D50B988@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: Il 10/09/2014 01:54, Min Du ha scritto: > 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". There should be no conflict. Try reproducing with a more recent version of QEMU. Paolo