From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: david.vrabel@citrix.com, xen-devel@lists.xen.org,
Ian Campbell <Ian.Campbell@citrix.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: Balloon driver bug in increase_reservation
Date: Wed, 4 Sep 2013 12:35:27 -0400 [thread overview]
Message-ID: <20130904163527.GD6188@phenom.dumpdata.com> (raw)
In-Reply-To: <20130904154216.GR14104@zion.uk.xensource.com>
On Wed, Sep 04, 2013 at 04:42:16PM +0100, Wei Liu wrote:
> On Wed, Sep 04, 2013 at 11:14:30AM -0400, Konrad Rzeszutek Wilk wrote:
> [...]
> > > >
> > > > Otherwise could simply implement a is_balloon_scratch_page function that
> > > > checks whether a given pfn corresponds to any of the scratch pages (it
> > > > doesn't need to be the scratch page of this cpu).
> > >
> > > That's quite expensive IMHO, especially when you have lots of CPU's and
> > > lots of ballooned pages.
> >
> > Fortunatly you don't have to take lock. The PFNs for the scratch pages are
> > set in stone for each vCPU and don't change (unless the CPU goes down, but
> > then the 'for_each_online_cpu' would omit said CPU).
> >
> > And I think the balloon driver does everything from one workqueue so
> > the check can done there?
>
> Well, what are the chances that you have 256 CPUs and then need to
> balloon 2K pages (only 8MB)... andd what's the frequency you need to do
> that... Maybe I'm just paranoid to imagine all those extreme use cases.
Fortunatly it is a slow process. It does not have to happen immediately so
we can also take a lock if need to. Just as long as the lock is not taken
in the M2P or P2M code I think we are fine.
>
> Wei.
>
> > >
> > > Wei.
> > >
> > > _______________________________________________
> > > Xen-devel mailing list
> > > Xen-devel@lists.xen.org
> > > http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2013-09-04 16:35 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-02 14:43 Balloon driver bug in increase_reservation Wei Liu
2013-09-02 14:48 ` Ian Campbell
2013-09-02 15:04 ` Wei Liu
2013-09-02 15:07 ` David Vrabel
2013-09-02 15:09 ` Ian Campbell
2013-09-02 15:13 ` Wei Liu
2013-09-02 15:31 ` Ian Campbell
2013-09-04 13:15 ` Stefano Stabellini
2013-09-04 13:20 ` Wei Liu
2013-09-04 13:31 ` Stefano Stabellini
2013-09-04 16:30 ` Wei Liu
2013-09-04 15:14 ` Konrad Rzeszutek Wilk
2013-09-04 15:42 ` Wei Liu
2013-09-04 16:35 ` Konrad Rzeszutek Wilk [this message]
2013-09-04 16:47 ` Wei Liu
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=20130904163527.GD6188@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=Ian.Campbell@citrix.com \
--cc=david.vrabel@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.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.