From: Ian Campbell <Ian.Campbell@citrix.com>
To: Julien Grall <julien.grall@linaro.org>
Cc: stefano.stabellini@eu.citrix.com, tim@xen.org,
Jintack Lim <jintack@cs.columbia.edu>,
Jan Beulich <JBeulich@suse.com>,
xen-devel@lists.xen.org
Subject: Re: [PATCH v2] xen: arm32: reduce default size of the xenheap
Date: Thu, 5 Feb 2015 15:34:31 +0000 [thread overview]
Message-ID: <1423150471.32563.4.camel@citrix.com> (raw)
In-Reply-To: <54D377B8.4090800@linaro.org>
On Thu, 2015-02-05 at 22:01 +0800, Julien Grall wrote:
> If the user requests a xenheap of 0MB, we will use the default size,
> right? It may be worth to explain this case.
I think it's pretty generally understood that 0 generally means the
default, unless otherwise specified.
> Also with the algorithm to find a range, the Xen heap may be smaller. I
> would explain that too.
True.
> > + xenheap_pages = opt_xenheap_megabytes << (20-PAGE_SHIFT);
> > + else
> > + {
> > + xenheap_pages = (heap_pages/32 + 0x1fffUL) & ~0x1fffUL;
> > + xenheap_pages = max(xenheap_pages, 32UL<<(20-PAGE_SHIFT));
> > + xenheap_pages = min(xenheap_pages, 1UL<<(30-PAGE_SHIFT));
> > + }
> > do
> > {
>
> You seem to have forgotten to update the condition in the do/while:
>
> xenheap_pages > 128 << (20 - PAGE_SHIFT);
Seems like I need to refactor this number into a constant somewhere.
Ian.
next prev parent reply other threads:[~2015-02-05 15:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-05 10:52 [PATCH v2] xen: arm32: reduce default size of the xenheap Ian Campbell
2015-02-05 12:11 ` Jan Beulich
2015-02-05 14:01 ` Julien Grall
2015-02-05 15:34 ` Ian Campbell [this message]
2015-02-09 3:34 ` Julien Grall
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=1423150471.32563.4.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=JBeulich@suse.com \
--cc=jintack@cs.columbia.edu \
--cc=julien.grall@linaro.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tim@xen.org \
--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 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.