From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: George.Dunlap@eu.citrix.com, dan.magenheimer@oracle.com,
xen-devel@lists.xensource.com, ian.campbell@citrix.com
Subject: Re: [PATCH 3/3] xl: 'xl info' print outstanding claims if enabled (claim_mode=1 in xl.conf)
Date: Mon, 8 Apr 2013 14:16:16 -0400 [thread overview]
Message-ID: <20130408181616.GD24288@phenom.dumpdata.com> (raw)
In-Reply-To: <20834.62243.599587.264214@mariner.uk.xensource.com>
On Mon, Apr 08, 2013 at 05:41:07PM +0100, Ian Jackson wrote:
> Konrad Rzeszutek Wilk writes ("[Xen-devel] [PATCH 3/3] xl: 'xl info' print outstanding claims if enabled (claim_mode=1 in xl.conf)"):
> > +=item B<outstanding_claims>
> > +
> > +When a claim call is done (see L<xl.conf>) a reservation for a specific
> > +amount of pages is set and also a global value is incremented. This
> > +global value (outstanding_claims) is then reduced as the domain's memory
> > +is populated and eventually reaches zero. The toolstack can also choose
> > +to set the domain's claim to zero which cancels the reservation and
> > +decrements the global value by the amount of claim that has not been
> > +satisfied. Most of the time the value will be zero, but if you are
> > +launching multiple guests, and B<claim_mode> is enabled, this value
> > +can increase/decrease.
>
> OK, thanks, this is clear enough in general.
>
> But you need to explain how the user can get the toolstack to set the
> domain's claim to zero.
I can certainly include that. It does that once the guest has been started
(also the hypervisor sets it to zero as the pages get allocated for the guest).
>
> And you need to explain whether the memory counted in
> outstanding_claims value is _also_ counted as free memory, or as
> memory belonging to its respective domain(s).
Sure thing.
>
> > +uint64_t libxl_get_claiminfo(libxl_ctx *ctx)
> > +{
> > + long l;
> > +
> > + l = xc_domain_get_outstanding_pages(ctx->xch);
> > + if (l < 0) {
> > + LIBXL__LOG_ERRNOVAL(ctx, LIBXL__LOG_WARNING, l, "xc_domain_get_outstanding_pages failed.");
>
> This needs wrapping to 75 columns or so.
OK. Do you prefer the "xc..." to be split up or on a seperate line?
>
> Also, is there a way to find out which domain these claims belong to ?
> I didn't see it in your previous patch.
It is possible - the two patches that would have exported said information
to xcinfo were dropped as I was unsure where to display this. As in I could
alter 'xl list' or 'xl mem-list' to contain that information, but that would
change the syntax of the printout. I don't know if that is OK?
Or I can introduce a new command 'xl claim-list' ? That would give that information?
>
> Thanks,
> Ian.
next prev parent reply other threads:[~2013-04-08 18:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-29 20:24 [PATCH v14] claim and its friends for allocating multiple self-ballooning guests Konrad Rzeszutek Wilk
2013-03-29 20:24 ` [PATCH 1/3] xc: use XENMEM_claim_pages hypercall during guest creation Konrad Rzeszutek Wilk
2013-03-29 20:24 ` [PATCH 2/3] xl: Implement XENMEM_claim_pages support via 'claim_mode' global config Konrad Rzeszutek Wilk
2013-03-29 20:25 ` [PATCH 3/3] xl: 'xl info' print outstanding claims if enabled (claim_mode=1 in xl.conf) Konrad Rzeszutek Wilk
2013-04-08 16:41 ` Ian Jackson
2013-04-08 18:16 ` Konrad Rzeszutek Wilk [this message]
2013-04-10 15:48 ` Ian Jackson
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=20130408181616.GD24288@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=dan.magenheimer@oracle.com \
--cc=ian.campbell@citrix.com \
--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.