I have some python script than can demonstrate the effect.
It runs two threads that call listAllDevices and listCaps per device and prints
the time for each iteration. With an unpatched libvirt client it gets slower
and slower. With a custom-built package containing the patch it doesn't slow
down.
I ran this script on some nova-compute node where there is some active
libvirtd.
```
import libvirt
import time
import threading
conn = libvirt.open("qemu:///system")
def run():
while True:
t0 = time.time()
try:
for dev in conn.listAllDevices(0):
dev.listCaps()
except Exception:
print("Exception")
print(time.time() - t0)
t1 = threading.Thread(target=run)
t1.start()
t2 = threading.Thread(target=run)
t2.start()
```
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2142757
Title:
libvirt 10.0.0-2ubuntu8.x - rpc: leak of GSource in use for
interrupting main loop
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/2142757/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs