<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
    <style type="text/css">
<!--
@page { margin: 0.79in }
P { margin-bottom: 0.08in }
A:link { so-language: zxx }
-->
</style>
  </head>
  <body dir="LTR" lang="en-US">
    Thanks for the answer.<br>
    <br>
    I will try to allocate more memory to Dom0 (it is running wih 2GB on
    a physical host with 64GB) and see if libvirtd/xend are swapping.<br>
    <br>
    I said the magic number 35 because I was running 54 guests on that
    host and xend was really slow (around 5 minutes to execute a "<i>xm
      list</i>" and up to 2h to do a "<i>xm migrate</i>") and libvirtd
    was not executing at all, and when I got 34 both xend and libvirtd
    started to work with good performance.<br>
    <br>
    Diego<br>
    <br>
    On 01/19/2011 11:57 PM, Daniel Veillard wrote:
    <blockquote id="mid_20110120015718_GG5527_redhat_com"
      cite="mid:20110120015718.GG5527@redhat.com" type="cite">
      <pre wrap="">On Wed, Jan 19, 2011 at 04:45:04PM -0200, Diego Dias wrote:
</pre>
      <blockquote id="StationeryCiteGenerated_1" type="cite">
        <pre wrap="">Hi,

   I am using Xen 4 as hypervisor and using libvirt 0.8.4 to
communicate with it.
   When I run more than 35 virtual machines on the host, Libvirt
starts to run extremely slow and I cant even execute a /"virsh
list/". The memory usage of libvirtd is around 468288K.
   Is there any way to improve the performance of libvirt? Is there
any maximum number of virtual machines libvirt can manage without
having a poor performace?
</pre>
      </blockquote>
      <pre wrap="">
  Well I have run up to 400 guests, but running KVM on a rather large
machine, and the responsiveness of libvirt wasn't a problem (well we had
a trouble with cgroups, but once that one solved that was okay).
In a xen environemnt libvirt doesn't talk directly to the hypervisor
(well except for only a few simple commands where we can use the
hypervisor traps directly) and mostly talks to the xen daemon. Trying to
find out where the slowdown comes from is the only way to improve performances
reliably, and well it's hard to tell from your mail. I would assume 400MB
libvirtd instance is actually realatively small compared to the volume of
memeory used by the guests, just make sure that there is enough memory
in Dom0 and that libvirtd/xend/etc... aren't swapping, that would make the
whole thing slow down considerably.

Daniel

</pre>
    </blockquote>
  </body>
</html>