From: Andre Przywara <andre.przywara@amd.com>
To: Ian Campbell <Ian.Campbell@citrix.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: xen-devel <xen-devel@lists.xen.org>
Subject: auto-ballooning crashing Dom0?
Date: Thu, 2 Aug 2012 15:41:58 +0200 [thread overview]
Message-ID: <501A83A6.2060000@amd.com> (raw)
Hi,
during some experiments with many guests I get crashing Dom0s because of
too less memory. Actually the OOM killer goes 'round and kills random
things, preferably qemu-dm's ;-)
The box in question has 128GB of memory, I start with dom0_mem=8192M (or
16384M, doesn't matter). I also used "dom0_mem=8192M,min:1536M", but
that didn't make any difference. Xen is c/s 25688.
Then I start some guests with 2GB each. This works fine until about 55
guests, then I get some denies from xl when starting guests (which would
be OK). But sometimes the guest start works (even after having failed
before), but it has obviously ripped off precious memory from Dom0. With
around 55 guests Dom0 has about 500MB in use.
The whole Dom0 is in trouble then, I get "fork: cannot allocate memory"
messages for a simple "ls" and have to reboot the box.
This is with xl.conf:autoballooning=1 (= the commented default)
Setting it to 0 works, but is obviously not a real option as a default.
I found the hardcoded 128MB limit in libxl_internal.h, I guess this is
way too small for this type of machine.
Either we change this to something higher (768 MB worked for me) or we
make this a config option in xl.conf (like it was in xend-config.sxp)
Another option would be to make it dynamic, by looking at the actual
memory currently used in Dom0 and don't balloon down to 110% or so of it.
Sadly (well..) I am about to leave for vacation, so no patch this time,
I leave this as an exercise to the tool buffs ;-)
In any case we should do something still for Xen 4.2, as I guess people
dislike crashing Dom0, tearing down all the domains with it...
Regards,
Andre.
--
Andre Przywara
AMD-Operating System Research Center (OSRC), Dresden, Germany
next reply other threads:[~2012-08-02 13:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-02 13:41 Andre Przywara [this message]
2012-08-02 14:45 ` auto-ballooning crashing Dom0? Ian Jackson
2013-06-06 13:20 ` Alex Bligh
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=501A83A6.2060000@amd.com \
--to=andre.przywara@amd.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.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 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.