xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Ian Campbell <ijc@hellion.org.uk>
To: Thomas Goirand <thomas@goirand.fr>
Cc: pkg-xen-devel@lists.alioth.debian.org,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [Pkg-xen-devel] Strange behavior when doing xm mem-set Domain-0 (was: Abnormal memory usage of dom0 under Squeeze leading to crash)
Date: Wed, 23 Feb 2011 08:17:02 +0000	[thread overview]
Message-ID: <1298449022.3618.617.camel@localhost.localdomain> (raw)
In-Reply-To: <4D64B6BB.90708@goirand.fr>


[-- Attachment #1.1: Type: text/plain, Size: 1984 bytes --]

On Wed, 2011-02-23 at 15:26 +0800, Thomas Goirand wrote:
> On 02/03/2011 06:29 PM, Bastian Blank wrote:
> > On Thu, Feb 03, 2011 at 05:28:30PM +0800, Thomas Goirand wrote:
> >> On 02/03/2011 04:34 PM, Bastian Blank wrote:
> >>> Please provide all informations. xm dmesg, the kernel log, xm info.
> >> How, if the server reboots when I do it?
> > 
> > Well, then remove the call and gather the information before breaking
> > the system. For anything else, use a serial console.
> 
> With the same server, when I put:
> GRUB_CMDLINE_XEN_DEFAULT="dom0_mem=512M"
> in my /etc/default/grub, the dom0 is fine, running on 501 MB of RAM. If
> I don't put this option, then shrink from something like 8 GB (the
> server has 12 GB total) to bellow 800, it crashes, with no memory to
> release. That's strange, because with 512 MB to the dom0, only 180M is
> used, while when I give above 1GB, there's about 800MB of "used RAM",
> and it can't be freed.
> 
> Any idea why it's ok to boot with 512MB on the dom0, but not ok to
> mem-set Domain-0 to it? To me, it seems more a Linux issue than a Xen one...

Linux (indeed most OSes) size certain data structures at start of day
based on the amount of RAM (potentially) present. The size of these data
structures does not change when ballooning occurs and since they must
live in kernel memory they create a lower bound on how small you can
balloon a given guest. The main one I am thinking of is the frame table
(which contains an entry for every memory page in the system).

On the face of it going from 8G -> 512M doesn't seem to be all that
unreasonable though and I don't think the frame table would account for
the full 800M overhead you are seeing.

Please post a kernel and hypervisor dmesg from a boot with the larger
amount of dom0 mem. The content of /proc/meminfo might be useful too as
would /proc/{buddy,slab}info if your system has them.

Ian.
-- 
Ian Campbell

Memory fault -- brain fried

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

      reply	other threads:[~2011-02-23  8:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-03  5:37 Abnormal memory usage of dom0 under Squeeze leading to crash Thomas Goirand
2011-02-03  8:34 ` Bastian Blank
2011-02-03  9:28   ` [Pkg-xen-devel] " Thomas Goirand
2011-02-03  9:35     ` Ian Campbell
2011-03-05  1:58       ` chris
2011-03-05  9:42         ` [Pkg-xen-devel] " Ian Campbell
2011-03-05 14:04           ` chris
     [not found]     ` <20110203102935.GA28521@wavehammer.waldi.eu.org>
2011-02-23  7:26       ` [Pkg-xen-devel] Strange behavior when doing xm mem-set Domain-0 (was: Abnormal memory usage of dom0 under Squeeze leading to crash) Thomas Goirand
2011-02-23  8:17         ` Ian Campbell [this message]

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=1298449022.3618.617.camel@localhost.localdomain \
    --to=ijc@hellion.org.uk \
    --cc=pkg-xen-devel@lists.alioth.debian.org \
    --cc=thomas@goirand.fr \
    --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 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).