xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Dan Magenheimer <dan.magenheimer@oracle.com>
To: Jan Beulich <JBeulich@suse.com>, Ian Campbell <Ian.Campbell@citrix.com>
Cc: xen-devel@lists.xen.org, "Keir (Xen.org)" <keir@xen.org>,
	Konrad Wilk <konrad.wilk@oracle.com>,
	"Tim(Xen.org)" <tim@xen.org>,
	Dave Mccracken <dave.mccracken@oracle.com>,
	Zhigang Wang <zhigang.x.wang@oracle.com>
Subject: Re: [RFC/PATCH v2] XENMEM_claim_pages (subop of existing) hypercall
Date: Thu, 15 Nov 2012 11:19:57 -0800 (PST)	[thread overview]
Message-ID: <ca76650f-4fd3-4a74-bd09-563784c84dcb@default> (raw)
In-Reply-To: <50A4F07F02000078000A8DBD@nat28.tlf.novell.com>

> -----Original Message-----
> From: Jan Beulich [mailto:JBeulich@suse.com]
> Sent: Thursday, November 15, 2012 5:39 AM
> To: Ian Campbell; Dan Magenheimer
> Cc: xen-devel@lists.xen.org; Dave McCracken; KonradWilk; Zhigang Wang; Keir (Xen.org); Tim(Xen.org)
> Subject: Re: [Xen-devel] [RFC/PATCH v2] XENMEM_claim_pages (subop of existing) hypercall
> 
> >>> On 15.11.12 at 13:25, Ian Campbell <Ian.Campbell@citrix.com> wrote:
> > Also doesn't this fail to make any sort of guarantee if you are building
> > a 32 bit PV guest, since they require memory under a certain host
> > address limit (160GB IIRC)?
> 
> This case is unreliable already, and has always been (I think we
> have a tools side hack in some of our trees in an attempt to deal
> with that), when ballooning is used to get at the memory, or
> when trying to start a 32-bit guest after having run 64-bit ones
> exhausting most of memory, and having terminated an early
> created one (as allocation is top down, ones created close to
> exhaustion, i.e. later, would eat up that "special" memory at
> lower addresses).
> 
> So this new functionality "only" makes a bad situation worse
> (which isn't meant to say I wouldn't prefer to see it get fixed).

Hmmm... I guess I don't see how claim makes the situation worse.
Well maybe a few microseconds worse.

Old model:
(1) Allocate a huge number of pages

New model:
(1) Claim a huge number of pages.  If successful...
(2) Allocate that huge number of pages

In either case, the failure conditions are the same
except that the claim mechanism checks one of the
failure conditions sooner.

Or am I misunderstanding?

  reply	other threads:[~2012-11-15 19:19 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-14 23:55 [RFC/PATCH v2] XENMEM_claim_pages (subop of existing) hypercall Dan Magenheimer
2012-11-15 10:25 ` Jan Beulich
2012-11-15 18:00   ` Dan Magenheimer
2012-11-16 10:36     ` Jan Beulich
2012-11-19 20:04       ` Dan Magenheimer
2012-11-15 12:25 ` Ian Campbell
2012-11-15 12:39   ` Jan Beulich
2012-11-15 19:19     ` Dan Magenheimer [this message]
2012-11-16 10:41       ` Jan Beulich
2012-11-15 19:15   ` Dan Magenheimer
2012-11-16 10:39     ` Jan Beulich
2012-11-16 10:48     ` Ian Campbell
2012-11-19 20:53       ` Dan Magenheimer
2012-11-20  8:16         ` Jan Beulich
2012-11-20 10:16           ` Ian Campbell
2012-11-20 16:33             ` Dan Magenheimer
2012-11-20 16:47               ` Tim Deegan
2012-11-20 17:52                 ` Dan Magenheimer
2012-11-21  8:31                   ` Jan Beulich
2012-11-21 15:59                     ` Dan Magenheimer
     [not found] <mailman.16651.1353004500.1399.xen-devel@lists.xen.org>
2012-11-15 18:51 ` Andres Lagar-Cavilla
2012-11-15 19:35   ` Dan Magenheimer
     [not found] <mailman.16877.1353355647.1399.xen-devel@lists.xen.org>
2012-11-19 20:25 ` Andres Lagar-Cavilla
2012-11-19 21:41   ` Dan Magenheimer
2012-11-26 18:01     ` Dan Magenheimer
2012-11-26 18:05       ` Andres Lagar-Cavilla

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=ca76650f-4fd3-4a74-bd09-563784c84dcb@default \
    --to=dan.magenheimer@oracle.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=dave.mccracken@oracle.com \
    --cc=keir@xen.org \
    --cc=konrad.wilk@oracle.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xen.org \
    --cc=zhigang.x.wang@oracle.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;
as well as URLs for NNTP newsgroup(s).