From: Balbir Singh <balbir@linux.vnet.ibm.com>
To: Rik van Riel <riel@redhat.com>
Cc: jdike@addtoit.com, kvm@vger.kernel.org,
linux-kernel@vger.kernel.org, avi@redhat.com,
aarcange@redhat.com, mtosatti@redhat.com
Subject: Re: [PATCH] emulate accessed bit for EPT
Date: Thu, 4 Feb 2010 21:00:13 +0530 [thread overview]
Message-ID: <20100204153013.GK19641@balbir.in.ibm.com> (raw)
In-Reply-To: <4B6ACE5B.9080601@redhat.com>
* Rik van Riel <riel@redhat.com> [2010-02-04 08:40:43]:
> On 02/03/2010 11:12 PM, Balbir Singh wrote:
> >* Rik van Riel<riel@redhat.com> [2010-02-03 16:11:03]:
> >
> >>Currently KVM pretends that pages with EPT mappings never got
> >>accessed. This has some side effects in the VM, like swapping
> >>out actively used guest pages and needlessly breaking up actively
> >>used hugepages.
> >>
> >>We can avoid those very costly side effects by emulating the
> >>accessed bit for EPT PTEs, which should only be slightly costly
> >>because pages pass through page_referenced infrequently.
>
> >Quite a clever implementation, one side effect is that one would see a
> >larger number of minor faults with EPT enabled and an increase in
> >allocation/frees of rmap entries, but that can be easily explained.
>
> I suspect it won't be very many. I have been monitoring
> /proc/meminfo on my system while testing this patch, and
> it is quite typical that the size of the inactive anon
> list does not change for minutes at a time.
>
> In other words, no pages are moved onto or off of the
> inactive anon list for several minutes. That corresponds
> to a very small number of minor faults introduced by my
> patch.
>
> Of course, when the system is swapping, we will have more
> minor faults. However, minor faults should be less of a
> performance issue than major faults :)
>
I do agree with you.
--
Balbir
next prev parent reply other threads:[~2010-02-04 15:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-03 21:11 Rik van Riel
2010-02-04 4:12 ` Balbir Singh
2010-02-04 13:40 ` Rik van Riel
2010-02-04 15:30 ` Balbir Singh [this message]
2010-02-04 15:41 ` Rik van Riel
2010-02-04 15:52 ` Balbir Singh
2010-02-04 17:47 ` Andrea Arcangeli
2010-02-05 17:34 ` Marcelo Tosatti
2010-02-05 18:14 ` Andrea Arcangeli
2010-02-07 19:21 ` Marcelo Tosatti
2010-02-04 16:17 ` Jeff Dike
2010-02-08 10:27 ` Avi Kivity
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=20100204153013.GK19641@balbir.in.ibm.com \
--to=balbir@linux.vnet.ibm.com \
--cc=aarcange@redhat.com \
--cc=avi@redhat.com \
--cc=jdike@addtoit.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mtosatti@redhat.com \
--cc=riel@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®