<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=GB2312" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
于 2011年07月26日 14:25, Igor Serebryany 写道:
<blockquote cite="mid:20110726062501.GF7582@moomers.org" type="cite">
<pre wrap="">i've reported this issue before, so i guess this is a regression. looks
like the python bindings for 0.9.3 are leaking file descriptors:
root@cloud1:~# python
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">import libvirt
libvirt.getVersion()
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="">9003
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">def openclose():
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="">... c = libvirt.open('qemu:///system')
... c.close()
...
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">import os
os.system('lsof -p %d | wc -l' % os.getpid())
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="">37
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">openclose()
os.system('lsof -p %d | wc -l' % os.getpid())
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="">40
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">openclose()
os.system('lsof -p %d | wc -l' % os.getpid())
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="">43
every time I open and close a connection to libvirt, i loose 3 file
descriptors. these are a socket and two fifo pipes. i'm using the -3
build on debian sid.
can someone test this on a fedora machine? curious if this is something
inside libvirt or a problem with the build...
thanks,
--igor
</pre>
</blockquote>
<br>
Hello Igor,<br>
<br>
I don't see this problem on my FC15, I'm using the git HEAD.<br>
<br>
Osier<br>
<blockquote cite="mid:20110726062501.GF7582@moomers.org" type="cite">
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
libvirt-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/libvirt-users">https://www.redhat.com/mailman/listinfo/libvirt-users</a></pre>
</blockquote>
<br>
</body>
</html>