[libvirt] [PATCH v3] nodeinfo: Get the correct CPU number on AMD Magny Cours platform

Eric Blake eblake at redhat.com
Mon May 14 17:41:34 UTC 2012


On 05/14/2012 07:12 AM, Osier Yang wrote:
> "Instead of developing one CPU with 12 cores, the Magny Cours is
> actually two 6 core “Bulldozer” CPUs combined in to one package"
> 
> I.e, each package has two NUMA nodes, and the two numa nodes share
> the same core ID set (0-6), which means parsing the cores number
> from sysfs doesn't work in this case.
> 

> +++ b/tests/nodeinfodata/linux-nodeinfo-sysfs-test-3-cpu-x86-output.txt
> @@ -1 +1 @@
> -CPUs: 48, MHz: 2100, Nodes: 1, Cores: 6
> +CPUs: 48, MHz: 2100, Nodes: 1, Cores: 12

I would like to tweak this test to output more information; instead of
just outputting nodes and cores, we should also add sockets and threads
into the test output, as well as VIR_NODEINFO_MAXCPUS(nodeinfo) (yes,
this means updating all three test files); doing so will help us ensure
that the numbers we are printing make sense.

But I also plan to add a test-4 on a machine with a cpu that was
hot-unplugged, to show an instance where CPUs is less than maxcpus, so I
can make those changes in my patch.  Which means I'm fine with your
patch going in, as-is.

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120514/c17b5e76/attachment-0001.sig>


More information about the libvir-list mailing list