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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]