All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@eu.citrix.com>
To: Eric Shelton <eshelton@pobox.com>
Cc: Wei Liu <wei.liu2@citrix.com>,
	Ian Campbell <ian.campbell@citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	xen-devel <xen-devel@lists.xenproject.org>,
	Samuel Thibault <samuel.thibault@ens-lyon.org>
Subject: Re: [PATCH V3 1/1] libxl: set stub domain size based on VRAM size
Date: Tue, 14 Jul 2015 11:26:54 +0100	[thread overview]
Message-ID: <55A4E3EE.70107@eu.citrix.com> (raw)
In-Reply-To: <CAPQw5r=mvQSez+U9KLURshOBqqaqqoprVj+iWW-34FxhNqRJOQ@mail.gmail.com>

On 07/14/2015 11:02 AM, Eric Shelton wrote:
> On Jul 14, 2015 4:51 AM, "George Dunlap" <George.Dunlap@eu.citrix.com>
> wrote:
>>
>> On Sat, Jul 11, 2015 at 10:30 PM, Eric Shelton <eshelton@pobox.com> wrote:
>>> Allocate additional memory to the stub domain for qemu-traditional if
>>> more than 4 MB is assigned to the video adapter to avoid out of memory
>>> condition for QEMU.
>>>
>>> Signed-off-by: Eric Shelton <eshelton@pobox.com>
>>
>> This seems like a good fix for now, thanks.
>>
>> But (just speaking to people in general) it does make it even harder
>> to predict exactly how much host memory a VM is going to end up
>> needing to start, which is something a lot of people complain about.
>>
>> I'm beginning to think that one feature we should try to look at is a
>> way for the admin to specify, "Max host memory used", from which
>> shadow/p2m/device memory/stubdomain can all be "allocated".
> 
> Just curious: what happens when all of that memory has been "allocated,"
> yet there is still plenty of memory overall?  Would you not be able to spin
> up a domain despite there actually being plenty of memory to do so?

The idea would be that you would set this value to say, "2048MiB", and
then all the little bits and bobs would come out of that 2048MiB.  So if
you have a 48MiB stubdom, and 4MiB of device ROMs, and 4MiB of p2ms
(including alternate p2ms), and 1MiB of other miscellaneous stuff, then
the guest would only see 1991MiB of virtual RAM.  (If I've done the math
correctly.)

Which does mean, if you set this value to 50MiB, but run it with a
stubdom and 16MiB of video RAM and altp2ms and everything, you're going
to have problems. :-)

But in the normal use case, it should never cause a guest not to be created.

 -George

  reply	other threads:[~2015-07-14 10:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-11 21:30 [PATCH V3 0/1] libxl: set stub domain size based on VRAM size Eric Shelton
2015-07-11 21:30 ` [PATCH V3 1/1] " Eric Shelton
2015-07-14  8:51   ` George Dunlap
2015-07-14 10:02     ` Eric Shelton
2015-07-14 10:26       ` George Dunlap [this message]
2015-07-15  9:45   ` Ian Campbell
2015-07-16 15:51     ` 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=55A4E3EE.70107@eu.citrix.com \
    --to=george.dunlap@eu.citrix.com \
    --cc=eshelton@pobox.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=samuel.thibault@ens-lyon.org \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.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.