From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Anthony Wright <anthony@overnetdata.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: 5x dom0 memory increase from Xen/Linux 3.4/2.6.18 to 4.1/3.0.0
Date: Wed, 22 Jun 2011 09:32:43 -0400 [thread overview]
Message-ID: <20110622133243.GA8722@dumpdata.com> (raw)
In-Reply-To: <4E01EAF7.9030900@overnetdata.com>
On Wed, Jun 22, 2011 at 02:15:35PM +0100, Anthony Wright wrote:
> On 20/06/2011 13:45, Konrad Rzeszutek Wilk wrote:
> > On Fri, Jun 17, 2011 at 04:31:11PM +0100, Anthony Wright wrote:
> >> Lowering swiotlb helped, and got me down to 200M for dom0. What is the effect of reducing this value?
> > Less amount of bounce buffer. But you don't need the bounce buffer for PCI devices b/c you don't
> > have more than 4GB of physical memory in the machine.
> Do I only need bounce buffers if I have > 4GB of physical memory? In
Correct.
> this case should I allocate the 64M, or is it a sliding memory requirement?
It really is unknown. At some point the maintainer was thinking of adding
dynamic code so that it would increase as neccessary - but it never got
further than: "this would be neat". I would say try some small numbers
and when the machine is on full load it panics (or gives you a nasty
kernel message).
> >> I set CONFIG_XEN_MAX_DOMAIN_MEMORY down to 8, but that didn't seem to have any effect on dom0's memory requirement. What is this value? Does it only apply to a domU's memory usage?
> > It makes some internal datastructures (P2M) smaller. They are set up for 128GB or so machines initially.
> It sounds like this value applies to DomUs, does this config variables
> set the maximum amount of memory 128GB per DomU or across all DomUs,
> i.e. if I have 16 DomUs and a CONFIG_XEN_MAX_DOMAIN_MEMORY of 16, do
> they each have a maximum of 16GB, or do the get 1GB each?
I mistyped this. The internal datastructures just set the limits to what
they can go to. But they don't consume any real RAM - just virtual addresses
and during boot time that gets resolved (shrunk appropiately). So don't worry about it.
> >> I tried the memblock=debug options, and while I got lots of output, I could see very little on the subject of memory usage.
> > The numbers are what amount of memory is reserved. You can find out which are are is eating the most
> > by computing the difference.
> Maybe I'm misreading the output, but I couldn't see any numbers that
> look like memory being assigned. I've attached the dmesg output. Do I
> need to enable a CONFIG variable to get the output I need or am I
> missing something.
The memblock=debug should give you some idea of what is Reserved. The
Reserved includes memory that is allocated by boot-time services (P2M,
pagetables, NUMA) and by real reservations (for example ACPI space).
Using the 'memblock=debug' can give you an idea of what services are
reserving the most. Then we can narrow down who or what is eating the gobs
of memory.
see the 'Memory: ".. numbers. Also you might want to eliminate
the balloon usage space algother by doing two things:
Xen command line: dom0_mem=max:512MB
Linux command line: mem=512MB
That will effectivly remove any balloon space (so your Dom0 will _never_
grow up).
next prev parent reply other threads:[~2011-06-22 13:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-16 12:58 5x dom0 memory increase from Xen/Linux 3.4/2.6.18 to 4.1/3.0.0 Anthony Wright
2011-06-16 14:56 ` Konrad Rzeszutek Wilk
2011-06-17 15:31 ` Anthony Wright
2011-06-20 12:45 ` Konrad Rzeszutek Wilk
2011-06-22 13:15 ` Anthony Wright
2011-06-22 13:32 ` Konrad Rzeszutek Wilk [this message]
2011-06-22 14:22 ` Anthony Wright
2011-06-22 14:39 ` Konrad Rzeszutek Wilk
2011-06-22 15:53 ` Anthony Wright
2011-06-23 13:02 ` 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=20110622133243.GA8722@dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=anthony@overnetdata.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.