From: Tim Deegan <Tim.Deegan@citrix.com>
To: George Dunlap <George.Dunlap@eu.citrix.com>
Cc: James, Paul Durrant <Paul.Durrant@citrix.com>,
Keir Fraser <keir@xen.org>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Harper <james.harper@bendigoit.com.au>
Subject: Re: RFC: Doing a superpage zero-sweep on decrease_reservation
Date: Wed, 9 Mar 2011 14:23:35 +0000 [thread overview]
Message-ID: <20110309142335.GI28479@whitby.uk.xensource.com> (raw)
In-Reply-To: <AANLkTi=bTU8pM9Ac7-jimjFXZZazPN3_a5Dkc+1PfEqP@mail.gmail.com>
Hi,
At 13:47 +0000 on 09 Mar (1299678468), George Dunlap wrote:
> It occured to me, it might be simpler if we check for a zero superpage
> when doing a decrease_reservation call instead. We'd only do a sweep
> if the p2m entry is currently a superpage. If that's the case, we
> sweep the superpage containing that mfn and nothing else. If the
> whole superpage isn't zero, we'll shatter the superpage in the p2m
> tables, so that even if we get an mfn from the same page again, we
> won't scan it.
Do you think ballooned-out pages are likely to be in 2MB chunks of
zeroed memory? Apart from avoiding shattering and re-gathering a 2MB
p2m range (which is nice, but proabbly not the perf bottleneck for PoD
right now), this is a change from scanning arbitrary memory when we run
out to scanning memory around balloon sites as we go.
If this is likely to have a high hit rate, great. If not, it might be
(overall) worse because we waste time scanning as we balloon and have to
do the full scan later anyway.
> I was going to say, "scan only if the number of p2m entries is higher
> than the number of entries in the cache". But it occurred to me, it
> might not be a bad idea to scan for zero pages in any case -- so that
> we can consolidate even after the guest has been running for a while.
I'm not so keen on that - AFAICS once we've passed #pod-entries ==
#pod-pages, we shouldn't be doing any expensive work for PoD. We might
want to think about defragging HVM guests independently of the PoD
stuff, though.
Cheers,
Tim.
--
Tim Deegan <Tim.Deegan@citrix.com>
Principal Software Engineer, Xen Platform Team
Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)
next prev parent reply other threads:[~2011-03-09 14:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-09 13:47 RFC: Doing a superpage zero-sweep on decrease_reservation George Dunlap
2011-03-09 14:23 ` Tim Deegan [this message]
2011-03-09 14:46 ` George Dunlap
2011-03-09 15:00 ` George Dunlap
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=20110309142335.GI28479@whitby.uk.xensource.com \
--to=tim.deegan@citrix.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=Paul.Durrant@citrix.com \
--cc=james.harper@bendigoit.com.au \
--cc=keir@xen.org \
--cc=xen-devel@lists.xensource.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 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.