[Pkg-libvirt-maintainers] Bug#709335: libvirt-bin: Memory leak and high CPU usage whilst clients connected.

Chris Lewis clewis at inview.co.uk
Wed May 22 15:37:26 UTC 2013


Package: libvirt-bin
Version: 0.9.12-11
Severity: important

Dear Maintainer,

If a virt-manager client is left connected to a Debian7 libvirtd process, the
memory usage of the process will continue to increase until the machine runs of
RAM. The CPU usage of libvirtd is also higher than normal whilst the client is
connected.

To recreate, connect a Deb7 virt-manager client to a libvirtd process (via ssh)
and leave connected for a long period and monitor CPU and memory usage.


>From command "top":

Deb7 (libvirtd process restarted and client connected for approx 60mins)
PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND
1761 root      20   0  407m 107m 5348 S  14.0  1.3  10:44.23 libvirtd

Deb7 (client disconnected)
PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND
1761 root      20   0  408m 108m 5348 S   0.0  1.4  10:51.55 libvirtd

Deb6 (clients connected and process running for weeks)
 PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
10090 root      20   0  262m 9060 3876 S    1  0.0 106:16.90 libvirtd

So there is definately a diiference between Deb6 and 7 in terms of CPU and
memory usage.

Workarounds
Do not leave virt-manager clients connected to Deb7 libvirtd servers for long
periods
Regularly restart libvirt-bin service.





-- System Information:
Debian Release: 7.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libvirt-bin depends on:
ii  adduser             3.113+nmu3
ii  gettext-base        0.18.1.1-9
ii  libavahi-client3    0.6.31-2
ii  libavahi-common3    0.6.31-2
ii  libblkid1           2.20.1-5.3
ii  libc6               2.13-38
ii  libcap-ng0          0.6.6-2
ii  libdbus-1-3         1.6.8-1
ii  libdevmapper1.02.1  2:1.02.74-7
ii  libgcrypt11         1.5.0-5
ii  libgnutls26         2.12.20-6
ii  libnetcf1           0.1.9-2
ii  libnl1              1.1-7
ii  libnuma1            2.0.8~rc4-1
ii  libparted0debian1   2.3-12
ii  libpcap0.8          1.3.0-1
ii  libpciaccess0       0.13.1-2
ii  libreadline6        6.2+dfsg-0.1
ii  libsasl2-2          2.1.25.dfsg1-6
ii  libudev0            175-7.2
ii  libvirt0            0.9.12-11
ii  libxenstore3.0      4.1.4-3+deb7u1
ii  libxml2             2.8.0+dfsg1-7+nmu1
ii  libyajl2            2.0.4-2
ii  logrotate           3.8.1-4

Versions of packages libvirt-bin recommends:
ii  bridge-utils    1.5-6
ii  dmidecode       2.11-9
ii  dnsmasq-base    2.62-3+deb7u1
ii  ebtables        2.0.10.4-1
ii  gawk            1:4.0.1+dfsg-2.1
ii  iproute         20120521-3+b3
ii  iptables        1.4.14-3.1
ii  libxml2-utils   2.8.0+dfsg1-7+nmu1
ii  netcat-openbsd  1.105-7
ii  parted          2.3-12
ii  qemu            1.1.2+dfsg-6a
ii  qemu-kvm        1.1.2+dfsg-6

Versions of packages libvirt-bin suggests:
ii  policykit-1  0.105-3
pn  radvd        <none>

-- no debconf information



More information about the Pkg-libvirt-maintainers mailing list