From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Fehlig Subject: [PATCH] Fix memory leak in xend Date: Thu, 10 Jul 2008 16:28:50 -0600 Message-ID: <48768D22.6010005@novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090401090506040607080403" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------090401090506040607080403 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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. Cheers, Jim Signed-off-by: Jim Fehlig --------------090401090506040607080403 Content-Type: text/x-patch; name="xend-memleak.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xend-memleak.patch" diff -r bd97e45e073a tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Tue Jul 08 09:28:50 2008 +0100 +++ b/tools/python/xen/xend/XendDomainInfo.py Thu Jul 10 15:16:57 2008 -0600 @@ -2607,6 +2607,7 @@ class XendDomainInfo: def _cleanupVm(self): """Cleanup VM resources. Idempotent. Nothrow guarantee.""" + self.metrics.destroy() self._unwatchVm() try: --------------090401090506040607080403 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------090401090506040607080403--