Univention Bugzilla – Attachment 5741 Details for
Bug 33458
Increasing CPU usage over time
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Threded event loop UVMM performance problem
33458_uvmm-performance.py (text/plain), 769 bytes, created by
Philipp Hahn
on 2014-01-22 10:49 CET
(
hide
)
Description:
Threded event loop UVMM performance problem
Filename:
MIME Type:
Creator:
Philipp Hahn
Created:
2014-01-22 10:49 CET
Size:
769 bytes
patch
obsolete
>#!/usr/bin/python >import libvirt >from time import sleep >from os import listdir >from threading import Thread > >URLS = [ > "qemu://skepp.knut.univention.de/system", > "qemu://krus.knut.univention.de/system", > "qemu://isalla.knut.univention.de/system", > "qemu://boksel.knut.univention.de/system", > "qemu://utby.knut.univention.de/system", >] > >def run(url): > print url, > try: > c = libvirt.open(url) > except libvirt.libvirtError as ex: > print ex > else: > print > >def main(): > libvirt.virEventRegisterDefaultImpl() > while True: > threads = [Thread(target=run, name=url, args=(url,)) for url in URLS] > for thread in threads: > thread.start() > sleep(5) > print listdir("/proc/self/fd") > for thread in threads: > thread.join(.1) > sleep(5) > >if __name__ == '__main__': > main()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 33458
:
5741
|
5759