Send libvirt-users mailing list submissions to
libvirt-users(a)redhat.com
To subscribe or unsubscribe via the World Wide Web, visit
https://www.redhat.com/mailman/listinfo/libvirt-users
or, via email, send a message with subject or body 'help' to
libvirt-users-request(a)redhat.com
You can reach the person managing the list at
libvirt-users-owner(a)redhat.com
When replying, please edit your Subject line so it is more specific
than "Re: Contents of libvirt-users digest..."
Today's Topics:
1. Finding out CPU topology. (Peeyush Gupta)
2. Re: Finding out CPU topology. (Daniel P. Berrange)
3. Re: Finding out CPU topology. (Peeyush Gupta)
----------------------------------------------------------------------
Message: 1
Date: Tue, 17 Sep 2013 17:41:12 +0800 (SGT)
From: Peeyush Gupta <gpeeyush(a)ymail.com>
To: "libvirt-users(a)redhat.com" <libvirt-users(a)redhat.com>
Subject: [libvirt-users] Finding out CPU topology.
Message-ID:
<1379410872.26498.YahooMailNeo(a)web194604.mail.sg3.yahoo.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi all,
I have been trying to find out cpu topology using libvirt. When
I do 'virsh capabilites', I find this inside <topology> tag:
<topology>
? ? ? <cells num='1'>
? ? ? ? <cell id='0'>
? ? ? ? ? <memory unit='KiB'>3908488</memory>
? ? ? ? ? <cpus num='4'>
? ? ? ? ? ? <cpu id='0' socket_id='0' core_id='0'
siblings='0'/>
? ? ? ? ? ? <cpu id='1' socket_id='0' core_id='0'
siblings='1'/>
? ? ? ? ? ? <cpu id='2' socket_id='0' core_id='1'
siblings='2'/>
? ? ? ? ? ? <cpu id='3' socket_id='0' core_id='1'
siblings='3'/>
? ? ? ? ? </cpus>
? ? ? ? </cell>
? ? ? </cells>
</topology>
But when I use the 'getCapbilities()' function of the python binding,
the result is:
<topology> ? ?
? <cells num='1'> ??
? ? ?<cell id='0'> ? ? ? ??
? ? ?<cpus num='4'> ??
? ? ? ?<cpu id='0'/>
? ? ? ?<cpu id='1'/>
? ? ? ?<cpu id='2'/>
? ? ? ?<cpu id='3'/> ? ? ? ??
? ? ?</cpus> ? ? ? ?
? ?</cell> ? ? ?
?</cells> ?
</topology>\n
As you can see this doesnt give any information about
socket/core/thread etc.
What I an interested to know is that is it a limitation of python
binding or libvirt
C API itself? How can I get the whole topology without just parsing the
output
of virsh capabilities?
Thanks.
~Peeyush Gupta
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<
https://www.redhat.com/archives/libvirt-users/attachments/20130917/ff8344...
------------------------------
Message: 2
Date: Tue, 17 Sep 2013 10:49:29 +0100
From: "Daniel P. Berrange" <berrange(a)redhat.com>
To: Peeyush Gupta <gpeeyush(a)ymail.com>
Cc: "libvirt-users(a)redhat.com" <libvirt-users(a)redhat.com>
Subject: Re: [libvirt-users] Finding out CPU topology.
Message-ID: <20130917094929.GD28204(a)redhat.com>
Content-Type: text/plain; charset=utf-8
On Tue, Sep 17, 2013 at 05:41:12PM +0800, Peeyush Gupta wrote:
> Hi all,
>
> I have been trying to find out cpu topology using libvirt. When
> I do 'virsh capabilites', I find this inside <topology> tag:
>
>
> <topology>
> ? ? ? <cells num='1'>
> ? ? ? ? <cell id='0'>
> ? ? ? ? ? <memory unit='KiB'>3908488</memory>
> ? ? ? ? ? <cpus num='4'>
> ? ? ? ? ? ? <cpu id='0' socket_id='0' core_id='0'
siblings='0'/>
> ? ? ? ? ? ? <cpu id='1' socket_id='0' core_id='0'
siblings='1'/>
> ? ? ? ? ? ? <cpu id='2' socket_id='0' core_id='1'
siblings='2'/>
> ? ? ? ? ? ? <cpu id='3' socket_id='0' core_id='1'
siblings='3'/>
> ? ? ? ? ? </cpus>
> ? ? ? ? </cell>
> ? ? ? </cells>
> </topology>
>
> But when I use the 'getCapbilities()' function of the python binding,
> the result is:
> <topology> ? ?
> ? <cells num='1'> ??
> ? ? ?<cell id='0'> ? ? ? ??
> ? ? ?<cpus num='4'> ??
> ? ? ? ?<cpu id='0'/>
> ? ? ? ?<cpu id='1'/>
> ? ? ? ?<cpu id='2'/>
> ? ? ? ?<cpu id='3'/> ? ? ? ??
> ? ? ?</cpus> ? ? ? ?
> ? ?</cell> ? ? ?
> ?</cells> ?
> </topology>\n
>
> As you can see this doesnt give any information about
socket/core/thread etc.
> What I an interested to know is that is it a limitation of python
binding or libvirt
> C API itself? How can I get the whole topology without just parsing
the output
> of virsh capabilities?
Did you really run these two examples on the same machine, with the
same
libvirt URI ? Both virsh and the python binding call the same libvirt
API
'virConnectGetCapabilities' so will return the same data if run against
the same libvirt. The socket_id, core_id and siblings data is a
relatively
new feature we added, so older libvirt won't show it.
Daniel
--
|:
http://berrange.com -o-
http://www.flickr.com/photos/dberrange/ :|
|:
http://libvirt.org -o-
http://virt-manager.org :|
|:
http://autobuild.org -o-
http://search.cpan.org/~danberr/ :|
|:
http://entangle-photo.org -o-
http://live.gnome.org/gtk-vnc :|
------------------------------
Message: 3
Date: Tue, 17 Sep 2013 17:54:40 +0800 (SGT)
From: Peeyush Gupta <gpeeyush(a)ymail.com>
To: "Daniel P. Berrange" <berrange(a)redhat.com>
Cc: "libvirt-users(a)redhat.com" <libvirt-users(a)redhat.com>
Subject: Re: [libvirt-users] Finding out CPU topology.
Message-ID:
<1379411680.85399.YahooMailNeo(a)web194601.mail.sg3.yahoo.com>
Content-Type: text/plain; charset="iso-8859-1"
Yes, I have run both of them on same machine. And?I?
am running libvirt 1.1.0. So, I guess it's not ?a?problem?
of older version.
?
Thanks
~Peeyush Gupta
________________________________
From: Daniel P. Berrange <berrange(a)redhat.com>
To: Peeyush Gupta <gpeeyush(a)ymail.com>
Cc: "libvirt-users(a)redhat.com" <libvirt-users(a)redhat.com>
Sent: Tuesday, 17 September 2013 3:19 PM
Subject: Re: [libvirt-users] Finding out CPU topology.
On Tue, Sep 17, 2013 at 05:41:12PM +0800, Peeyush Gupta wrote:
> Hi all,
>
> I have been trying to find out cpu topology using libvirt. When
> I do 'virsh capabilites', I find this inside <topology> tag:
>
>
> <topology>
> ? ? ? <cells num='1'>
> ? ? ? ? <cell id='0'>
> ? ? ? ? ? <memory unit='KiB'>3908488</memory>
> ? ? ? ? ? <cpus num='4'>
> ? ? ? ? ? ? <cpu id='0' socket_id='0' core_id='0'
siblings='0'/>
> ? ? ? ? ? ? <cpu id='1' socket_id='0' core_id='0'
siblings='1'/>
> ? ? ? ? ? ? <cpu id='2' socket_id='0' core_id='1'
siblings='2'/>
> ? ? ? ? ? ? <cpu id='3' socket_id='0' core_id='1'
siblings='3'/>
> ? ? ? ? ? </cpus>
> ? ? ? ? </cell>
> ? ? ? </cells>
> </topology>
>
> But when I use the 'getCapbilities()' function of the python binding,
> the result is:
> <topology> ? ?
> ? <cells num='1'> ??
> ? ? ?<cell id='0'> ? ? ? ??
> ? ? ?<cpus num='4'> ??
> ? ? ? ?<cpu id='0'/>
> ? ? ? ?<cpu id='1'/>
> ? ? ? ?<cpu id='2'/>
> ? ? ? ?<cpu id='3'/> ? ? ? ??
> ? ? ?</cpus> ? ? ? ?
> ? ?</cell> ? ? ?
> ?</cells> ?
> </topology>\n
>
> As you can see this doesnt give any information about
socket/core/thread etc.
> What I an interested to know is that is it a limitation of python
binding or libvirt
> C API itself? How can I get the whole topology without just parsing
the output
> of virsh capabilities?
Did you really run these two examples on the same machine, with the
same
libvirt URI ? Both virsh and the python binding call the same libvirt
API
'virConnectGetCapabilities' so will return the same data if run against
the same libvirt. The socket_id, core_id and siblings data is a
relatively
new feature we added, so older libvirt won't show it.
Daniel
--
|:
http://berrange.com? ? ? -o-? ?
http://www.flickr.com/photos/dberrange/ :|
|:
http://libvirt.org? ? ? ? ? ? ? -o-? ? ? ? ? ?
http://virt-manager.org :|
|:
http://autobuild.org? ? ? -o-? ? ? ?
http://search.cpan.org/~danberr/ :|
|:
http://entangle-photo.org? ? ? -o-? ? ?
http://live.gnome.org/gtk-vnc :|
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<
https://www.redhat.com/archives/libvirt-users/attachments/20130917/df8c7f...
------------------------------
_______________________________________________
libvirt-users mailing list
libvirt-users(a)redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users
End of libvirt-users Digest, Vol 45, Issue 28
*********************************************
--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.