From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sriram Murthy Subject: Re: 1G huge pages in Linux guest VM Date: Thu, 10 May 2012 08:53:33 -0700 (PDT) Message-ID: <1336665213.26988.YahooMailClassic@web160503.mail.bf1.yahoo.com> References: <4FAA3EF4.4060700@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE To: kvm@vger.kernel.org Return-path: Received: from nm6.bullet.mail.bf1.yahoo.com ([98.139.212.165]:40180 "HELO nm6.bullet.mail.bf1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751268Ab2EJPxe convert rfc822-to-8bit (ORCPT ); Thu, 10 May 2012 11:53:34 -0400 In-Reply-To: <4FAA3EF4.4060700@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: If I have a mix of 2M and 1G pages on the host, how will I be able to p= ass the same to the guest?. Does KVM and Libvirtd allow multiple -mem-p= ath options?.=20 Also, where in the source can I find more info about hugepage support i= n KVM? Thanks and regards, Sriram --- On Wed, 5/9/12, Avi Kivity wrote: > From: Avi Kivity > Subject: Re: 1G huge pages in Linux guest VM > To: "Sriram Murthy" > Cc: kvm@vger.kernel.org > Date: Wednesday, May 9, 2012, 2:55 AM > On 05/08/2012 09:38 PM, Sriram Murthy > wrote: > > Hi, > >=A0 =A0 I wanted to know if we can pass a > hugetlbfs with pagesize=3D1G created on the host to a Linux > guest (The host is running RHEL 6.2 - x86_64 on Intel > Westmere)?.=20 >=20 > Yes, this is supported. >=20 > >=A0 =A0 I am using RHEL 6.2 on the host and guest > and the processor that has been passed by KVM to the guest > is Intel Westmere and has the pdpe1gb flag set. Does this > mean that the guest supports 1G huge pages? >=20 > Yes.=A0 Note 1gb hugepages on the guest are supported > even if not provided > by the host (of course the performance improvement will be > smaller). >=20 > --=20 > error compiling committee.c: too many arguments to function >=20 >=20