Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 690965 Details for
Bug 888503
libvirt: wrong cpu topology - AMD Bulldozer 62XX familly
[?]
New
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.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Test script
with_new_caps_pythonic.py (text/plain), 870 bytes, created by
Amador Pahim
on 2013-01-31 14:46:30 UTC
(
hide
)
Description:
Test script
Filename:
MIME Type:
Creator:
Amador Pahim
Created:
2013-01-31 14:46:30 UTC
Size:
870 bytes
patch
obsolete
>#!/usr/bin/python ># Amador Pahim <apahim@redhat.com> ># Jan 12 2013 > >import libvirt >from xml.dom import minidom > >#c = libvirt.open("qemu:///system") >#caps = minidom.parseString(c.getCapabilities()) >caps = minidom.parse("capabilities.xml") > >host = caps.getElementsByTagName('host')[0] >cells = host.getElementsByTagName('cells')[0] >total_cpus = cells.getElementsByTagName('cpu').length > >socketIds = [] >siblingsIds = [] > >socketIds = [ proc.getAttribute('socket_id') > for proc in cells.getElementsByTagName('cpu') > if proc.getAttribute('socket_id') not in socketIds ] > >siblingsIds = [ proc.getAttribute('siblings') > for proc in cells.getElementsByTagName('cpu') > if proc.getAttribute('siblings') not in siblingsIds ] > >print "Sockets:",len(set(socketIds)) >print "Cores:",len(set(siblingsIds)) >print "Threads:",total_cpus
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 888503
: 690965