From: Zhigang Wang <zhigang.x.wang@oracle.com>
To: Stefan de Konink <skinkie@xs4all.nl>, Jim Fehlig <jfehlig@novell.com>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] Fix memory leak in xend
Date: Fri, 29 Aug 2008 09:14:54 +0800 [thread overview]
Message-ID: <48B74D8E.50206@oracle.com> (raw)
In-Reply-To: <48B71E19.7080800@xs4all.nl>
[-- Attachment #1: Type: text/plain, Size: 947 bytes --]
I also encountered this many times. I come up with a patch.
Jim, please review.
thanks,
zhigang
Stefan de Konink wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> Jim Fehlig schreef:
>> We observed OOM kills of xend after ~20 days in openSUSE build service
>> workers. xend reached around 2.5 G virt, 1.5G res, and 1.8G shared
>> memory usage. Attached patch provides a plug.
>
> Did you see problems after this patch? I have applied it on 3.2.1 which
> borks about missing vm_metrics.
>
>
> Stefan
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEAREKAAYFAki3HhkACgkQYH1+F2Rqwn049gCeIYOm5MSf/NQfgdb9TC009wjS
> 9l8An0PeV5xp/jYamySsSACJO1OI2Jp7
> =bJwS
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
[-- Attachment #2: block-vm-metrics-destroy-exception.patch --]
[-- Type: text/x-patch, Size: 855 bytes --]
This patch prevent VM metrics destroy from raising exceptions.
Everytime an error accured during VM start, VM metrics destroy will raise an
exception and override the right exception which should be raised to the upper
invocation.
Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
--- xen-unstable/tools/python/xen/xend/XendDomainInfo.py 2008-08-28 10:17:49.000000000 +0800
+++ xen-unstable.local/tools/python/xen/xend/XendDomainInfo.py 2008-08-29 09:04:11.000000000 +0800
@@ -2656,7 +2656,11 @@ class XendDomainInfo:
from xen.xend import XendDomain
if not XendDomain.instance().is_domain_managed(self):
- self.metrics.destroy()
+ try:
+ self.metrics.destroy()
+ except:
+ log.exception("Destroy VM metrics failed.")
+
self._unwatchVm()
try:
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2008-08-29 1:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-10 22:28 [PATCH] Fix memory leak in xend Jim Fehlig
2008-08-28 21:52 ` Stefan de Konink
2008-08-29 1:14 ` Zhigang Wang [this message]
2008-08-29 1:42 ` Stefan de Konink
2008-08-29 1:54 ` Zhigang Wang
2008-08-29 1:58 ` Stefan de Konink
2008-08-29 5:28 ` Jim Fehlig
-- strict thread matches above, loose matches on Subject: below --
2007-09-13 4:55 Kouya Shimura
2007-09-10 20:52 [PATCH] Fix 'memory leak' " Jim Fehlig
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=48B74D8E.50206@oracle.com \
--to=zhigang.x.wang@oracle.com \
--cc=jfehlig@novell.com \
--cc=skinkie@xs4all.nl \
--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.