From: Michael Tokarev <mjt@tls.msk.ru>
To: Avi Kivity <avi@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>,
qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] qemu and transparent huge pages
Date: Wed, 15 Aug 2012 18:22:58 +0400 [thread overview]
Message-ID: <502BB0C2.3040701@msgid.tls.msk.ru> (raw)
In-Reply-To: <502B9B40.6090307@redhat.com>
On 15.08.2012 16:51, Avi Kivity wrote:
> 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.
That was it - sort of. Default value here is enabled=madvise.
When setting it to always the effect finally started appearing,
so it is actually working.
But can't qemu set MADV_HUGEPAGE flag too, so it works automatically?
Thanks,
/mjt
next prev parent reply other threads:[~2012-08-15 14:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-15 12:45 [Qemu-devel] qemu and transparent huge pages Michael Tokarev
2012-08-15 12:51 ` Avi Kivity
2012-08-15 14:22 ` Michael Tokarev [this message]
2012-08-15 14:26 ` Avi Kivity
2012-08-15 15:03 ` Michael Tokarev
2012-08-15 15:06 ` Michael Tokarev
2012-09-16 11:19 ` Michael Tokarev
2012-11-12 15:18 ` Michael Tokarev
2012-11-13 14:30 ` Aurelien Jarno
2012-11-13 16:38 ` Michael Tokarev
-- strict thread matches above, loose matches on Subject: below --
2012-08-15 12:40 Michael Tokarev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=502BB0C2.3040701@msgid.tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=aarcange@redhat.com \
--cc=avi@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.