From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44257) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1d48-0008Bo-Mn for qemu-devel@nongnu.org; Wed, 15 Aug 2012 08:51:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1d47-0006vc-MM for qemu-devel@nongnu.org; Wed, 15 Aug 2012 08:51:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:16823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1d47-0006vX-EW for qemu-devel@nongnu.org; Wed, 15 Aug 2012 08:51:15 -0400 Message-ID: <502B9B40.6090307@redhat.com> Date: Wed, 15 Aug 2012 15:51:12 +0300 From: Avi Kivity MIME-Version: 1.0 References: <502B99D0.8010808@msgid.tls.msk.ru> In-Reply-To: <502B99D0.8010808@msgid.tls.msk.ru> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] qemu and transparent huge pages List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Tokarev Cc: Andrea Arcangeli , qemu-devel On 08/15/2012 03:45 PM, Michael Tokarev wrote: > > But apparently, THP does not work still, even with 2Mb > alignment: when running a guest, AnonHugePages in > /proc/meminfo stays at 0 - either in kvm mode or in tcg > mode. Any idea why? What else is needed for THP to work? It does for me: AnonHugePages: 368640 kB Note the patch you reference doesn't impact thp, just kvm's ability to propagate them to the shadow page table. > > This is quite a frequent question in #kvm IRC channel, > and I always suggested using -mem-path for this, but > I'm curios why it doesn't work automatically when it > probably should? > Please provide extra info, like the setting of /sys/kernel/mm/transparent_hugepage/enabled. -- error compiling committee.c: too many arguments to function