All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Georgy V. Repin" <grep@informika.ru>
To: xen-devel@lists.xen.org
Subject: Re: [BUG] invocation of xl create with insufficient memory for new domU causes system reboot
Date: Wed, 02 Apr 2014 09:47:24 +0400	[thread overview]
Message-ID: <533BA46C.1010903@informika.ru> (raw)
In-Reply-To: <533A9220.2080605@informika.ru>



01.04.2014 14:17, Georgy V. Repin пишет:
>
> 01.04.2014 13:52, Ian Campbell пишет:
>> On Tue, 2014-04-01 at 13:35 +0400, Georgy V. Repin wrote:
>>> Hello!
>>>
>>> 1. Problem: invocation of xl create when there is not enough memory to
>>> create new domU causes oom to select process to kiill; when oom selects
>>> to kill quemu-system-* process, this causes kernel panic (it's my
>>> suppose, because i see no message "kernel panic" in log, but i do see
>>> "CPU: 0 PID: 7899 Comm: qemu-system-i38 Not tainted 3.10.17-gentoo #1" +
>>> failed call trace), and, therefore (assuming default settings) kernel
>>> reboot (see log at "4.")
>>> Couple of remarks:
>>> - fix checking of available memory for new domU in xl toolstack could
>>> serve as workaround
>>> - real cause is not clear to me, maybe it's not even a xen bug (quemu ?
>>> kernel ?)
>>
>> Are you using dom0_mem= together with auto ballooning enabled in the
>> toolstack?
>
> informika-xen-3 ~ # cat /proc/cmdline
> placeholder root=/dev/sda1 ro
>
> part of grub.cfg
>
>                  if [ "$grub_platform" = "pc" -o "$grub_platform" = ""
> ]; then
>                      xen_rm_opts=
>                  else
>                      xen_rm_opts="no-real-mode edd=off"
>                  fi
>              multiboot    /boot/xen-4.gz placeholder   ${xen_rm_opts}
>              echo    'Loading Linux 3.10.17-gentoo ...'
>              module    /boot/vmlinuz-3.10.17-gentoo placeholder
> root=/dev/sda1 ro
>
> xl.conf:
> # Control whether dom0 is ballooned down when xen doesn't have enough
> # free memory to create a domain.  "auto" means only balloon if dom0
> # starts with all the host's memory.
> #autoballoon="auto"
>
> So:
>      - no dom0_mem= as boot param
>      - autobaloon is set to default ("auto", i suppose)

Any other suggestions what to "do" with this "bug" ?
(Captain Obvious definetly says "you should not start new domU when you 
don't have enough memory")

>
>>
>> I think it was Xen 4.4 which gained the ability to detect dom0_mem= and
>> disable ballooning automatically in that case, but I might be
>> misremembering.
>>
>> Ian.
>>
>

-- 
С уважением,
	Георгий Репин
	ФГАУ ГНИИ ИТТ "Информика"
	http://www.informika.ru
	http://www.runnet.ru


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

  reply	other threads:[~2014-04-02  5:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-01  9:35 [BUG] invocation of xl create with insufficient memory for new domU causes system reboot Georgy V. Repin
2014-04-01  9:52 ` Ian Campbell
2014-04-01 10:17   ` Georgy V. Repin
2014-04-02  5:47     ` Georgy V. Repin [this message]
2014-04-02  9:31       ` Ian Campbell
2014-04-02  9:30     ` Ian Campbell
2014-04-02 10:25       ` Georgy V. Repin
2014-04-02 10:39         ` Georgy V. Repin
2014-04-02 10:52         ` Ian Campbell

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=533BA46C.1010903@informika.ru \
    --to=grep@informika.ru \
    --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.