From: Ian Campbell <Ian.Campbell@citrix.com>
To: Daniel Kiper <daniel.kiper@oracle.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
"Keir (Xen.org)" <keir@xen.org>,
"Dave Scott" <Dave.Scott@eu.citrix.com>,
"james-xen@dingwall.me.uk" <james-xen@dingwall.me.uk>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Jonathan Ludlam" <Jonathan.Ludlam@eu.citrix.com>,
"darren.s.shepherd@gmail.com" <darren.s.shepherd@gmail.com>,
David Vrabel <david.vrabel@citrix.com>,
"carsten@schiers.de" <carsten@schiers.de>
Subject: Re: [Xen-devel] [PATCH v2 2/2] xen/balloon: Enforce various limits on target
Date: Fri, 3 May 2013 17:00:17 +0100 [thread overview]
Message-ID: <1367596817.28742.123.camel@zakaz.uk.xensource.com> (raw)
In-Reply-To: <20130503154724.GC12463@debian70-amd64.local.net-space.pl>
On Fri, 2013-05-03 at 16:47 +0100, Daniel Kiper wrote:
> > > > > Do not forget that guest may change target itself.
> > > >
> > > > Yes it can, and that can fail either due to maxmem or due to ENOMEM, and
> > > > the kernel needs prepared to deal with that when it happens.
> > >
> > > Sure but why we would like to fail in endless loop if maxmem case
> > > could be easliy detected by checking XENMEM_maximum_reservation?
> >
> > That endless loop is deliberate. When a target is set the balloon driver
> > is supposed to try to reach it and if it fails at any given moment it is
> > supposed to try again. This all relates to the changes made in
> > bc2c0303226e.
> >
> > Now you could argue that this case is subtly different from the ENOMEM
> > case which was the primary focus of that commit but have you thought
> > about the behaviour you want in the case where maximum_reservation is
> > subsequently raised? IMHO there's no reason why the balloon driver
> > shouldn't then automatically make further progress towards the target.
>
> OK, now it makes sens. Do we assume the same behavior for dom0?
> Could we change maximum_reservation for dom0 using xl?
I don't think there's any reason to special case dom0 here.
> > If the infinite loop bothers you then perhaps an exponential backoff in
> > the frequency of attempts would be a suitable middle ground?
>
> Relevant patches made by me are merged some time ago.
Great!
> > > > > Additionally, we would like to introduce xm compatibility
> > > > > mode which is a bit different then xl normal behavior.
> > > >
> > > > When then you really don't want to be baking specifics of the current
> > > > model into the kernel, do you.
> > >
> > > Hmmm... Little misunderstanding. As I stated a few times I do not
> > > want bake any libxl or Xen stuff into Linux Kernel (including
> > > LIBXL_MAXMEM_CONSTANT). I just want to check limits which I think
> > > make sense in this case.
> >
> > Sorry, I never noticed you saying that. Where was it?
>
> Here http://lists.xen.org/archives/html/xen-devel/2013-04/msg03259.html
> I stated that I do not like this constant. I explained why this was done
> in that way.
Sorry, I read that mail as arguing that it must be done this way ("this
is a must").
> Later I found relevant commit which introduced it and asked
> authors about it. I think that shows that I am not happy with
> LIBXL_MAXMEM_CONSTANT and I am looking for good solution for this problem.
Ian.
next prev parent reply other threads:[~2013-05-03 16:00 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-29 11:37 [PATCH v2 0/2] xen/balloon: Extension and fix Daniel Kiper
2013-04-29 11:37 ` [PATCH v2 1/2] xen/balloon: Notify a host about a guest memory size limit Daniel Kiper
2013-04-29 14:35 ` Ian Campbell
2013-04-30 12:40 ` Daniel Kiper
2013-04-29 11:37 ` [PATCH v2 2/2] xen/balloon: Enforce various limits on target Daniel Kiper
2013-04-29 14:44 ` Ian Campbell
2013-04-30 12:59 ` Daniel Kiper
2013-04-30 13:44 ` Ian Campbell
2013-04-30 18:58 ` Daniel Kiper
2013-05-02 11:34 ` Stefano Stabellini
2013-05-02 18:04 ` Konrad Rzeszutek Wilk
2013-05-03 8:15 ` [Xen-devel] " Ian Campbell
2013-05-03 13:00 ` Daniel Kiper
2013-05-03 13:21 ` Ian Campbell
2013-05-03 13:47 ` Daniel Kiper
2013-05-03 14:11 ` Ian Campbell
2013-05-03 15:47 ` Daniel Kiper
2013-05-03 16:00 ` Ian Campbell [this message]
2013-05-03 8:04 ` Ian Campbell
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=1367596817.28742.123.camel@zakaz.uk.xensource.com \
--to=ian.campbell@citrix.com \
--cc=Dave.Scott@eu.citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=Jonathan.Ludlam@eu.citrix.com \
--cc=Stefano.Stabellini@eu.citrix.com \
--cc=carsten@schiers.de \
--cc=daniel.kiper@oracle.com \
--cc=darren.s.shepherd@gmail.com \
--cc=david.vrabel@citrix.com \
--cc=james-xen@dingwall.me.uk \
--cc=keir@xen.org \
--cc=konrad.wilk@oracle.com \
--cc=linux-kernel@vger.kernel.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 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®