Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 374752 Details for
Bug 540330
libvirtd causes oom - possible memory leak
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh90 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
Python program to try & trigger a leak
leak.py (text/plain), 1.31 KB, created by
Daniel Berrangé
on 2009-11-30 13:48:04 UTC
(
hide
)
Description:
Python program to try & trigger a leak
Filename:
MIME Type:
Creator:
Daniel Berrangé
Created:
2009-11-30 13:48:04 UTC
Size:
1.31 KB
patch
obsolete
>#!/usr/bin/python > >import libvirt >import os >import time >import libxml2 >import threading > >def once(c): > c.getCapabilities() > for i in c.listDomainsID(): > for k in range(10): > d = c.lookupByID(i) > > print str(d.ID()) > xml = d.XMLDesc(0) > print str(xml) > doc = libxml2.parseDoc(xml) > ctx = doc.xpathNewContext() > > disks = [] > nics = [] > for disk in ctx.xpathEval("/domain/devices/disk/target/@dev"): > disks.append(disk.content) > for nic in ctx.xpathEval("/domain/devices/interface/target/@dev"): > nics.append(nic.content) > > print str(nics) > print str(disks) > > try: > print str(d.info()) > except: > pass > > for disk in disks: > try: > print str(d.blockStats(disk)) > except: > print "blast" > pass > for n in nics: > try: > print str(d.interfaceStats(n)) > except: > print "damm" > pass > > d = None > s = str(c.listDefinedDomains()) > >c = libvirt.open("qemu:///system") > >def run(): > for i in range(500): > once(c) > > >for i in range(5): > t = threading.Thread(name="Thread1", target=run, args=()) > t.start() > >time.sleep(60) > >c.close()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 540330
:
373258
|
374703
|
374740
| 374752 |
374766
|
374865
|
375011