WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: wrong logrotate for /var/log/xen/xend.log

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Re: wrong logrotate for /var/log/xen/xend.log
From: Olaf Hering <ohering@xxxxxxxxxx>
Date: Tue, 14 Sep 2010 16:00:12 +0200
Delivery-date: Thu, 23 Sep 2010 05:23:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20100914115610.GA5534@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20100914113547.GA2558@xxxxxxxxxx> <20100914115610.GA5534@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
On Tue, Sep 14, Olaf Hering wrote:

> On Tue, Sep 14, Olaf Hering wrote:
> 
> > [2010-09-14 13:24:30 4625] ERROR (xmlrpclib2:178) Internal error handling 
> > xend.domain
> 
> Poking around, something is leaking ressources in xenstored:
> 
> 
> accept(4, 0, NULL)                      = -1 EMFILE (Too many open files)
> select(1024, [4 ... 1023], [], NULL, NULL) = 1 (in [4])
> 
> 
> pidof xenpaging | xargs -n1 lsof -n -p | grep -wc socket
> 1000

Which is fixed by this missing change in 4.0.1:


Missing from commit 'libxl: Backported stuff from unstable'
Without this change, xs_daemon_open/xs_daemon_close will leak filedescriptors.

--- a/tools/xenstore/xs.c       2010-07-19 16:14:15.000000000 +0200
+++ b/tools/xenstore/xs.c       2010-09-13 15:46:24.000000000 +0200
@@ -285,6 +299,8 @@ void xs_daemon_close(struct xs_handle *h
        mutex_unlock(&h->request_mutex);
        mutex_unlock(&h->reply_mutex);
        mutex_unlock(&h->watch_mutex);
+
+        close_fds_free(h);
 }
 
 static bool read_all(int fd, void *data, unsigned int len)

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>