[libvirt] FW: Using dlls for Windows provided in http://libvirt.org/sources/win32_experimental/Libvirt-0.8.7-2.exe

Aliaksandr Chabatar A.Chabatar at sam-solutions.net
Thu Mar 17 10:49:52 UTC 2011


Hello libvirt-list,

We have a problem. It concerns CPU usage of libvirt library in Windows. It's not a problem in Linux. See attach.

At the moment we have a workaround for item 1 - we just calculate the number of handles which are leaked and restart our service if the number exceeds 10.000

As for item 2 - we have no real workaround. In 99.99% it should not happen, but there is still 0.01%
In libvirt.log you can find more info as suggested by Daniel.
================================================================
In the attached file, you will find detailed information regarding the case 100 percent CPU usage.
Our test was performed on the following system:
Windows XP SP3;
Libvirt-0.8.8;
Run the following command: virsh -c qemu+tcp: / /172.17.46.88:135/system
Port 135 was one of the ports on which our service is trying to connect.
================================================================

Could you help us here?

Thanks
Alexander

-----Original Message-----
From: Aliaksandr Chabatar 
Sent: Tuesday, March 15, 2011 3:52 PM
To: Ihar Smertsin
Subject: FW: [libvirt] Using dlls for Windows provided in http://libvirt.org/sources/win32_experimental/Libvirt-0.8.7-2.exe

Hi Ihar,

Could you provide more information (log files, see below) so we could address this issue to libvir-list at redhat.com ?

Mfg
Alexander

-----Original Message-----
From: Daniel P. Berrange [mailto:berrange at redhat.com] 
Sent: Tuesday, March 15, 2011 3:08 PM
To: Aliaksandr Chabatar
Cc: Hempfer, Siegfried; Boehme, Alfred; Schnizer, Monika
Subject: Re: [libvirt] Using dlls for Windows provided in http://libvirt.org/sources/win32_experimental/Libvirt-0.8.7-2.exe

On Tue, Mar 15, 2011 at 04:01:31PM +0200, Aliaksandr Chabatar wrote:
> Dear Daniel,
> 
> I have another question. It concerns CPU usage of libvirt library
> in Windows. It's not a problem in Linux. See attach.
> 
> At the moment we have a workaround for item 1 - we just calculate
> the number of handles which are leaked and restart our service if
> the number exceeds 10.000

It sounds like we have some crazy resource leak in a piece of
code. I'm not too familiar with Windows, but if you re-send
this mail of yours to libvir-list at redhat.com, I expect one of
the community members who knows Windows will be able to advise.

> As for item 2 - we have no real workaround. In 99.99% it should
> not happen, but there is still 0.01%

Yeah, that sounds like some piece of code is missing correct
error checking. It would be useful to try and obtain a couple
of stack traces when it is showing 100% cpu usage. Or capture
a libvirt debug log, eg by setting an environment variable
in your client application

  LIBVIRT_LOG_FILTERS="1:libvirt 1:util 1:remote"
  LIBVIRT_LOG_OUTPUTS="1:file:libvirt.log"

Again, sending this log + the info from your mail to the libvir-list
would be best.


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|
-------------- next part --------------
An embedded message was scrubbed...
From: Aliaksandr Chabatar <A.Chabatar at sam-solutions.net>
Subject: RE: [libvirt] Using dlls for Windows provided in	http://libvirt.org/sources/win32_experimental/Libvirt-0.8.7-2.exe
Date: Tue, 15 Mar 2011 16:01:31 +0200
Size: 7983
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110317/5277fb28/attachment-0002.eml>
-------------- next part --------------
An embedded message was scrubbed...
From: Ihar Smertsin <I.Smertsin at sam-solutions.net>
Subject: Libvirt issues in windows
Date: Tue, 8 Feb 2011 15:05:59 +0200
Size: 2484
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110317/5277fb28/attachment-0003.eml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt.log
Type: application/octet-stream
Size: 4469 bytes
Desc: libvirt.log
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110317/5277fb28/attachment-0001.obj>


More information about the libvir-list mailing list