From: Wei Liu <wei.liu2@citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>,
Dave Scott <Dave.Scott@eu.citrix.com>,
ian.jackson@eu.citrix.com,
Jon Ludlam <jonathan.ludlam@eu.citrix.com>,
xen-devel@lists.xen.org,
Stefano Stabellini <stefano.stabellini@citrix.com>
Subject: Re: [PATCH V3 1/5] libxl: bump LIBXL_MAXMEM_CONSTANT to 2048
Date: Wed, 6 Nov 2013 10:32:59 +0000 [thread overview]
Message-ID: <20131106103259.GA4659@zion.uk.xensource.com> (raw)
In-Reply-To: <1383322984.672.120.camel@kazak.uk.xensource.com>
On Fri, Nov 01, 2013 at 04:23:04PM +0000, Ian Campbell wrote:
> On Fri, 2013-11-01 at 16:10 +0000, Wei Liu wrote:
> > On Fri, Nov 01, 2013 at 04:02:17PM +0000, Ian Campbell wrote:
> > > On Tue, 2013-10-29 at 11:39 +0000, Wei Liu wrote:
> > > > When using OVMF we need to have 1MiB of memory in place for firmware.
> > > > Without this change we have:
> > > >
> > > > (XEN) HVM128: Loading OVMF ...
> > > > (XEN) page_alloc.c:1460:d128 Over-allocation for domain 128: 33025 > 33024
> > > > (XEN) memory.c:132:d128 Could not allocate order=0 extent: id=128 memflags=0 (0 of 1)
> > > >
> > > > This is not a fatal error as hvmloader will instead use low memory to
> > > > load OVMF, but it's better to eliminate such error.
> > > >
> > > > Changing this constant doesn't necessary increase the total amount of
> > > > memory a guest uses because it's just a limit.
> > >
> > > It will allow a guest to try and use up to 1MB more though, and it
> > > allows this for PV guests as well as HVM guests not using OVMF.
> > >
> > > There's only a small number of place which use this constant, can we
> > > refactor them into a helper function, which can then be expanded to
> > > include a per-BIOS overhead in addition to this one? The BIOS selection
> > > is stored in xenstore, so that work even for calls which don't have the
> > > domain configuration to hand.
> > >
> > > (does anyone remember what the existing 1MB is actually for?)
> > >
> >
> > Happened to come across this when I was looking at other problem.
> >
> > http://lists.xen.org/archives/html/xen-devel/2009-12/msg00401.html
> >
> > It looks like that constant was never intended to use in the way it is
> > now. Hah.
>
> Indeed not.
>
> I vaguely recall that the xapi folks add a bit of slack to the domain
> size while they are doing the calculation to see if it fit will on the
> host, but not actually when they build the domain. (note that this
> therefore only matters for the domain being built, and not cumulatively
> for all domains, which makes a difference to the overall overheads on
> the system). We could try switching to a model like that and see what
> breaks I guess?
>
> I've CC'd a couple of xapi folks so they can correct my no doubt faulty
> memory ;-)
> Ian.
Xapi experts, any thought?
Wei.
next prev parent reply other threads:[~2013-11-06 10:32 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-29 11:39 [PATCH V3 0/5] Reintroduce OVMF support Wei Liu
2013-10-29 11:39 ` [PATCH V3 1/5] libxl: bump LIBXL_MAXMEM_CONSTANT to 2048 Wei Liu
2013-11-01 11:14 ` George Dunlap
2013-11-01 16:02 ` Ian Campbell
2013-11-01 16:10 ` Wei Liu
2013-11-01 16:23 ` Ian Campbell
2013-11-06 10:32 ` Wei Liu [this message]
2013-11-06 10:41 ` Ian Campbell
2013-11-06 18:04 ` Stefano Stabellini
2013-11-07 11:03 ` Ian Campbell
2013-11-07 11:15 ` Processed: " xen
2013-11-06 12:04 ` Wei Liu
2013-10-29 11:39 ` [PATCH V3 2/5] Config.mk: update OVMF changeset Wei Liu
2013-10-29 14:16 ` Fabio Fantoni
2013-10-29 14:21 ` Wei Liu
2013-10-29 16:15 ` Fabio Fantoni
2013-10-29 16:34 ` Wei Liu
2013-10-30 11:33 ` Fabio Fantoni
2013-10-30 11:50 ` Wei Liu
2013-10-30 12:57 ` Fabio Fantoni
2013-10-30 14:05 ` Wei Liu
2013-10-30 15:52 ` Fabio Fantoni
2013-10-30 15:58 ` Wei Liu
2013-10-31 9:47 ` Fabio Fantoni
2013-10-31 10:03 ` Wei Liu
2013-10-31 11:22 ` Fabio Fantoni
2013-10-31 14:40 ` Wei Liu
2013-10-31 15:41 ` Fabio Fantoni
2013-10-30 12:09 ` Wei Liu
2013-10-30 12:42 ` Fabio Fantoni
2013-11-01 16:05 ` Ian Campbell
2013-10-29 11:39 ` [PATCH V3 3/5] tools: clone ovmf to ovmf-dir directory Wei Liu
2013-10-29 11:39 ` [PATCH V3 4/5] tools: support system supplied ovmf binary Wei Liu
2013-10-29 11:39 ` [PATCH V3 5/5] tools: Enable OVMF build by default Wei Liu
2013-11-11 14:09 ` [PATCH V3 0/5] Reintroduce OVMF support 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=20131106103259.GA4659@zion.uk.xensource.com \
--to=wei.liu2@citrix.com \
--cc=Dave.Scott@eu.citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jonathan.ludlam@eu.citrix.com \
--cc=stefano.stabellini@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 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).