[dts] [PATCH V1]perf_vm2vm_virtio_net_perf: use same socket cores with nic port numa id

Xiao, QimaiX qimaix.xiao at intel.com
Tue Jun 23 10:36:21 CEST 2020


Tested-by: Xiao, QimaiX <qimaix.xiao at intel.com>

Regards,
Xiao Qimai

> -----Original Message-----
> From: Xiao, QimaiX <qimaix.xiao at intel.com>
> Sent: Tuesday, June 23, 2020 4:27 PM
> To: dts at dpdk.org
> Cc: Xiao, QimaiX <qimaix.xiao at intel.com>
> Subject: [dts][PATCH V1]perf_vm2vm_virtio_net_perf: use same socket
> cores with nic port numa id
> 
> Signed-off-by: Xiao Qimai <qimaix.xiao at intel.com>
> ---
>  tests/TestSuite_perf_vm2vm_virtio_net_perf.py | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/TestSuite_perf_vm2vm_virtio_net_perf.py
> b/tests/TestSuite_perf_vm2vm_virtio_net_perf.py
> index 532cdf7..bc9cb3a 100644
> --- a/tests/TestSuite_perf_vm2vm_virtio_net_perf.py
> +++ b/tests/TestSuite_perf_vm2vm_virtio_net_perf.py
> @@ -54,8 +54,11 @@ from copy import deepcopy
> 
>  class TestPerfVM2VMVirtioNetPerf(TestCase):
>      def set_up_all(self):
> -        core_config = "1S/4C/1T"
> -        self.cores_list = self.dut.get_core_list(core_config)
> +        self.dut_ports = self.dut.get_ports()
> +        self.verify(len(self.dut_ports) >= 1, "Insufficient ports for testing")
> +        # get core mask
> +        self.ports_socket = self.dut.get_numa_id(self.dut_ports[0])
> +        self.cores_list = self.dut.get_core_list('all', socket=self.ports_socket)
>          self.verify(len(self.cores_list) >= 4,
>                      "There has not enough cores to test this suite %s" %
>                      self.suite_name)
> --
> 1.8.3.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestPerfVM2VMVirtioNetPerf.log
Type: application/octet-stream
Size: 88174 bytes
Desc: TestPerfVM2VMVirtioNetPerf.log
URL: <http://mails.dpdk.org/archives/dts/attachments/20200623/be216a60/attachment.obj>


More information about the dts mailing list