From: David Vrabel <david.vrabel@citrix.com>
To: Dan Magenheimer <dan.magenheimer@oracle.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Wilk <konrad.wilk@oracle.com>,
Konrad
Subject: Re: xen: memory initialization/balloon fixes (#3)
Date: Thu, 22 Sep 2011 13:32:26 +0100 [thread overview]
Message-ID: <4E7B2ADA.7000605@citrix.com> (raw)
In-Reply-To: <63997331-e53b-48e5-bf7c-87141aae49d6@default>
On 20/09/11 17:57, Dan Magenheimer wrote:
>
> Thanks for your patches! I am looking at a memory capacity/ballooning
> weirdness that I hoped your patchset might fix, but so far it has not.
> I'm wondering if there was an earlier fix that you are building upon
> and that I am missing.
>
> My problem occurs in a PV domU with an upstream-variant kernel based
> on 3.0.5. The problem is that the total amount of memory as seen
> from inside the guest is always substantially less than the amount
> of memory seen from outside the guest. The difference seems to
> be fixed within a given boot, but assigning a different vm.cfg mem=
> changes the amount. (For example, the difference D is about 18MB on
> a mem=128 boot and about 36MB on a mem=1024 boot.)
I don't see the problem?
The MemTotal value /proc/meminfo doesn't include some pages reserved by
the kernel which is why it's less than the maximum reservation of the
domain.
> Part B of the problem (and the one most important to me) is that
> setting /sys/devices/system/xen_memory/xen_memory0/target_kb
> to X results in a MemTotal inside the domU (as observed by
> "head -1 /proc/meminfo") of X-D. This can be particularly painful
> when X is aggressively small as X-D may result in OOMs.
> To use kernel function/variable names (and I observed this with
> some debugging code), when balloon_set_new_target(X) is called
> totalram_pages gets driven to X-D.
Again, this looks like the correct behavior to me.
David
next prev parent reply other threads:[~2011-09-22 12:32 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-15 12:29 xen: memory initialization/balloon fixes (#3) David Vrabel
2011-09-15 12:29 ` [PATCH 1/7] xen: use maximum reservation to limit amount of usable RAM David Vrabel
2011-09-21 15:09 ` Konrad Rzeszutek Wilk
2011-09-15 12:29 ` [PATCH 2/7] xen: avoid adding non-existant memory if the reservation is unlimited David Vrabel
2011-09-21 15:08 ` Unknown, Konrad Rzeszutek
2011-09-15 12:29 ` [PATCH 3/7] xen/balloon: account for pages released during memory setup David Vrabel
2011-09-21 15:05 ` Konrad Rzeszutek Wilk
2011-09-15 12:29 ` [PATCH 4/7] xen/balloon: simplify test for the end of usable RAM David Vrabel
2011-09-15 12:29 ` [PATCH 5/7] xen: allow balloon driver to use more than one memory region David Vrabel
2011-09-15 12:29 ` [PATCH 6/7] xen: allow extra memory to be in multiple regions David Vrabel
2011-09-15 12:29 ` [PATCH 7/7] xen: release all pages within 1-1 p2m mappings David Vrabel
2011-09-20 16:57 ` xen: memory initialization/balloon fixes (#3) Dan Magenheimer
2011-09-21 22:29 ` Dan Magenheimer
2011-09-22 12:32 ` David Vrabel [this message]
2011-09-22 17:06 ` Dan Magenheimer
2011-09-22 22:34 ` Dan Magenheimer
2011-09-22 22:51 ` Jeremy Fitzhardinge
2011-09-22 23:46 ` Dan Magenheimer
2011-09-23 10:45 ` David Vrabel
2011-09-23 13:28 ` Konrad Rzeszutek Wilk
2011-09-23 19:04 ` Dan Magenheimer
2011-09-21 17:11 ` Konrad Rzeszutek Wilk
2011-09-22 13:08 ` David Vrabel
2011-09-24 2:08 ` Konrad Rzeszutek Wilk
2011-09-26 14:20 ` Konrad Rzeszutek Wilk
2011-09-27 14:09 ` David Vrabel
2011-09-27 23:10 ` Konrad Rzeszutek Wilk
2011-09-28 10:45 ` David Vrabel
2011-09-28 13:25 ` Konrad Rzeszutek Wilk
2011-09-28 13:47 ` Konrad Rzeszutek Wilk
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=4E7B2ADA.7000605@citrix.com \
--to=david.vrabel@citrix.com \
--cc=dan.magenheimer@oracle.com \
--cc=konrad.wilk@oracle.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.