[libvirt] [PATCH] nodeinfo: test more details

Osier Yang jyang at redhat.com
Tue May 15 08:46:48 UTC 2012


On 2012年05月15日 07:14, Eric Blake wrote:
> Make it obvious why we need Osier's patch to fix NUMA parsing
> of an AMD machine with two cores sharing a socket id.
>
> * tests/nodeinfotest.c (linuxTestCompareFiles): Enhance the test.
> * tests/nodeinfodata/linux-nodeinfo-sysfs-test-*-output.txt: Update.
> ---
>
> As promised here:
> https://www.redhat.com/archives/libvir-list/2012-May/msg00759.html
> (Hmm, I still need to add results from a machine with an offline cpu)
>
> I can push this either before or after Osier's patch here:
> https://www.redhat.com/archives/libvir-list/2012-May/msg00736.html

I pushed the patch first. :-)

>
> whoever pushes second needs a minor rebase; should be obvious
> what the changes will be, since 48 online out of 24 max is clearly
> wrong...
>
>   .../linux-nodeinfo-sysfs-test-1-cpu-ppc-output.txt |    2 +-
>   .../linux-nodeinfo-sysfs-test-1-cpu-x86-output.txt |    2 +-
>   .../linux-nodeinfo-sysfs-test-2-cpu-x86-output.txt |    2 +-
>   .../linux-nodeinfo-sysfs-test-3-cpu-x86-output.txt |    2 +-
>   tests/nodeinfotest.c                               |    9 ++++++---
>   5 files changed, 10 insertions(+), 7 deletions(-)
>
> diff --git a/tests/nodeinfodata/linux-nodeinfo-sysfs-test-1-cpu-ppc-output.txt b/tests/nodeinfodata/linux-nodeinfo-sysfs-test-1-cpu-ppc-output.txt
> index 433a81f..80df832 100644
> --- a/tests/nodeinfodata/linux-nodeinfo-sysfs-test-1-cpu-ppc-output.txt
> +++ b/tests/nodeinfodata/linux-nodeinfo-sysfs-test-1-cpu-ppc-output.txt
> @@ -1 +1 @@
> -CPUs: 2, MHz: 8, Nodes: 1, Cores: 2
> +CPUs: 2/2, MHz: 8, Nodes: 1, Sockets: 1, Cores: 2, Threads: 1
> diff --git a/tests/nodeinfodata/linux-nodeinfo-sysfs-test-1-cpu-x86-output.txt b/tests/nodeinfodata/linux-nodeinfo-sysfs-test-1-cpu-x86-output.txt
> index 09e2946..4c86824 100644
> --- a/tests/nodeinfodata/linux-nodeinfo-sysfs-test-1-cpu-x86-output.txt
> +++ b/tests/nodeinfodata/linux-nodeinfo-sysfs-test-1-cpu-x86-output.txt
> @@ -1 +1 @@
> -CPUs: 2, MHz: 2800, Nodes: 1, Cores: 2
> +CPUs: 2/2, MHz: 2800, Nodes: 1, Sockets: 1, Cores: 2, Threads: 1
> diff --git a/tests/nodeinfodata/linux-nodeinfo-sysfs-test-2-cpu-x86-output.txt b/tests/nodeinfodata/linux-nodeinfo-sysfs-test-2-cpu-x86-output.txt
> index 73300a4..33bfbf3 100644
> --- a/tests/nodeinfodata/linux-nodeinfo-sysfs-test-2-cpu-x86-output.txt
> +++ b/tests/nodeinfodata/linux-nodeinfo-sysfs-test-2-cpu-x86-output.txt
> @@ -1 +1 @@
> -CPUs: 2, MHz: 800, Nodes: 1, Cores: 2
> +CPUs: 2/2, MHz: 800, Nodes: 1, Sockets: 1, Cores: 2, Threads: 1
> diff --git a/tests/nodeinfodata/linux-nodeinfo-sysfs-test-3-cpu-x86-output.txt b/tests/nodeinfodata/linux-nodeinfo-sysfs-test-3-cpu-x86-output.txt
> index e3c046b..ed5d6bd 100644
> --- a/tests/nodeinfodata/linux-nodeinfo-sysfs-test-3-cpu-x86-output.txt
> +++ b/tests/nodeinfodata/linux-nodeinfo-sysfs-test-3-cpu-x86-output.txt
> @@ -1 +1 @@
> -CPUs: 48, MHz: 2100, Nodes: 1, Cores: 6
> +CPUs: 48/24, MHz: 2100, Nodes: 1, Sockets: 4, Cores: 6, Threads: 1

Yeah, only need to change 48/24 into 48/48. ACK with the change.

Regards,
Osier




More information about the libvir-list mailing list