From: Julien Grall <julien.grall@linaro.org>
To: Oleksandr Tyshchenko <oleksandr.tyshchenko@globallogic.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Cc: Tim Deegan <tim@xen.org>, Ian Campbell <Ian.Campbell@citrix.com>,
Andrii Anisov <andrii.anisov@globallogic.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: Restart domU failure (memory allocation issue)
Date: Thu, 13 Mar 2014 19:48:42 +0000 [thread overview]
Message-ID: <53220B9A.50508@linaro.org> (raw)
In-Reply-To: <CAJEb2DHt0B84mA4_2Ovvvjpqu03Od5oG1WRvRVNNiZcum0FuYA@mail.gmail.com>
(Adding ARM people in CC)
On 13/03/14 18:33, Oleksandr Tyshchenko wrote:
> Hello, all.
Hello Oleksandr,
> I am working with DRA7 (OMAP5) platform and I am using XEN 4.4 and
> Kernel 3.8 for both domains.
> As we still have 1:1 mapping for domU we need to allocate memory (1024
> MB in our case) for it at one chunk.
>
> The issue is that I can't create domain again after destroying it (I
> am destroying domain by a "xl destroy" command) because we no longer
> have contiguous memory region and as result allocation failed.
>
> It seems, we have memory leak. I see that not all memory is freed
> after domain destroy.
> I see that some pages (which were allocated for kernel segment) don't
> returned to the heap.
I gave a try on Xen 4.4 with normal guest (e.g without the 1:1 mapping)
and I don't find any memory leaks. How do you create the 1:1 mapping for
the guest?
> / # xl list
> Name ID Mem VCPUs State Time(s)
> Domain-0 0 128 2 r----- 4.1
> (null) 1 5 2 --p--d 0.9
It seems that your domain is not completely destroyed. It may be because
some pages still belongs to the domain.
Xen will free a page only when the reference count is 0, do you have
keep some mapping in dom0? (for instance in libxl).
Regards,
--
Julien Grall
next prev parent reply other threads:[~2014-03-13 19:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-13 18:33 Restart domU failure (memory allocation issue) Oleksandr Tyshchenko
2014-03-13 19:48 ` Julien Grall [this message]
2014-03-14 11:10 ` Andrii Anisov
2014-03-14 11:14 ` Andrii Anisov
2014-03-14 12:15 ` Julien Grall
2014-03-14 12:45 ` Andrii Anisov
2014-03-14 14:00 ` Julien Grall
2014-03-14 14:05 ` Andrii Anisov
2014-03-14 14:17 ` Julien Grall
2014-03-14 14:37 ` Oleksandr Tyshchenko
2014-03-14 14:08 ` Oleksandr Tyshchenko
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=53220B9A.50508@linaro.org \
--to=julien.grall@linaro.org \
--cc=Ian.Campbell@citrix.com \
--cc=andrii.anisov@globallogic.com \
--cc=oleksandr.tyshchenko@globallogic.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tim@xen.org \
--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.