From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5F3A9A058A; Wed, 25 Mar 2020 09:22:12 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5308F2C15; Wed, 25 Mar 2020 09:22:12 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 34F7A1E34 for ; Wed, 25 Mar 2020 09:22:11 +0100 (CET) IronPort-SDR: X9PaVrqiJg/LF9d4Ox4NzGfkynp6bKUzW9JWwx6ePSSfvz6GTs4jE+2oWFogpqzW0OSX6ZhpMU nwpiyZf+eU/w== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2020 01:22:10 -0700 IronPort-SDR: VOj/18HRIefgYCN5XhTWR0FLts+91H3RoAfdVedkkZyyjX2dfCogZnfkRn4UhTpv6EOXVr2qdn ixBOKf5CN7Fw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,303,1580803200"; d="scan'208";a="282073676" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga002.fm.intel.com with ESMTP; 25 Mar 2020 01:22:10 -0700 Received: from shsmsx605.ccr.corp.intel.com (10.109.6.215) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 25 Mar 2020 01:22:10 -0700 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by SHSMSX605.ccr.corp.intel.com (10.109.6.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 25 Mar 2020 16:22:07 +0800 Received: from shsmsx603.ccr.corp.intel.com ([10.109.6.143]) by SHSMSX603.ccr.corp.intel.com ([10.109.6.143]) with mapi id 15.01.1713.004; Wed, 25 Mar 2020 16:22:07 +0800 From: "Wang, Yinan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1 11/11]virtio_pvp_regression: update script according to testplan's update Thread-Index: AQHWAn3l+0YEW3qyf02ahpCbQudRj6hY9/Fg Date: Wed, 25 Mar 2020 08:22:07 +0000 Message-ID: <1cb57e423ac14a10896ab077d2270d9e@intel.com> References: <1585123857-130281-1-git-send-email-qimaix.xiao@intel.com> <1585123857-130281-11-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1585123857-130281-11-git-send-email-qimaix.xiao@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.2.0.6 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1 11/11]virtio_pvp_regression: update script according to testplan's update X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Acked-by: Wang, Yinan > -----Original Message----- > From: dts On Behalf Of Xiao Qimai > Sent: 2020=1B$BG/=1B(B3=1B$B7n=1B(B25=1B$BF|=1B(B 16:11 > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1 11/11]virtio_pvp_regression: update script accor= ding to > testplan's update >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_virtio_pvp_regression.py | 34 > ++++++++++++++++++++++++++------ > 1 file changed, 28 insertions(+), 6 deletions(-) >=20 > diff --git a/tests/TestSuite_virtio_pvp_regression.py > b/tests/TestSuite_virtio_pvp_regression.py > index 97e522c..42aceae 100644 > --- a/tests/TestSuite_virtio_pvp_regression.py > +++ b/tests/TestSuite_virtio_pvp_regression.py > @@ -198,7 +198,7 @@ class TestVirtioPVPRegression(TestCase): > if 'cpupin' in list(self.vm.params[i]['cpu'][0].keys()): > self.vm.params[i]['cpu'][0].pop('cpupin') >=20 > - def start_vm(self, qemu_path, qemu_version, modem, virtio_path): > + def start_vm(self, qemu_path, qemu_version, modem, virtio_path, > packed=3DFalse): > """ > start vm > """ > @@ -227,6 +227,8 @@ class TestVirtioPVPRegression(TestCase): > opt_args =3D 'disable-modern=3Dfalse,' + opt_args > elif(modem =3D=3D 0): > opt_args =3D 'disable-modern=3Dtrue,' + opt_args > + if packed: > + opt_args =3D opt_args + ',packed=3Don' > vm_params['opt_settings'] =3D opt_args > self.vm.set_vm_device(**vm_params) > self.vm.load_config() > @@ -344,7 +346,7 @@ class TestVirtioPVPRegression(TestCase): > self.dut.send_expect('killall -s INT qemu-system-x86_64', '# ') > self.dut.send_expect("rm -rf %s/vhost-net*" % self.base_dir, "#"= ) >=20 > - def pvp_regression_run(self, case_info, modem, virtio_path): > + def pvp_regression_run(self, case_info, modem, virtio_path, > packed=3DFalse): > """ > run different qemu verssion on different virtio path of pvp regr= ession > modem =3D 0, start vm as virtio 0.95 @@ -357,7 +359,7 @@ class > TestVirtioPVPRegression(TestCase): > version =3D self.qemu_list[i]["version"] > self.start_testpmd_as_vhost() > # use different modem and different path to start vm > - self.start_vm(path, version, modem, virtio_path) > + self.start_vm(path, version, modem, virtio_path, > + packed=3Dpacked) > self.start_testpmd_in_vm(virtio_path) > self.logger.info("now testing the qemu path of %s" % path) > time.sleep(5) > @@ -370,7 +372,7 @@ class TestVirtioPVPRegression(TestCase): >=20 > self.logger.info('now reconnect from vm') > self.dut.send_expect('killall -s INT qemu-system-x86_64', '#= ') > - self.start_vm(path, version, modem, virtio_path) > + self.start_vm(path, version, modem, virtio_path, > + packed=3Dpacked) > self.start_testpmd_in_vm(virtio_path) > self.send_verify(case_info, version, "reconnect from vm") >=20 > @@ -397,7 +399,7 @@ class TestVirtioPVPRegression(TestCase): > virtio_path =3D 'mergeable' > self.pvp_regression_run(case_info, modem, virtio_path) >=20 > - def test_perf_pvp_regression_normal_path(self): > + def test_perf_pvp_regression_non_mergeable_path(self): > """ > Test the performance of one vm with virtio 0.95 on normal path > diff qemu + multi queue + reconnect @@ -407,7 +409,7 @@ class > TestVirtioPVPRegression(TestCase): > virtio_path =3D 'normal' > self.pvp_regression_run(case_info, modem, virtio_path) >=20 > - def test_perf_pvp_regression_modern_normal_path(self): > + def test_perf_pvp_regression_modern_non_mergeable_path(self): > """ > Test the performance of one vm with virtio 1.0 on normal path > diff qemu + multi queue + reconnect @@ -437,6 +439,26 @@ class > TestVirtioPVPRegression(TestCase): > virtio_path =3D 'vector_rx' > self.pvp_regression_run(case_info, modem, virtio_path) >=20 > + def test_perf_pvp_with_virtio11_mergeable_path(self): > + """ > + Test the performance of one vm with virtio 1.1 on mergeable path > + diff qemu + multi queue + reconnect > + """ > + case_info =3D 'virtio-1.1 mergeable' > + modem =3D 1 > + virtio_path =3D 'mergeable' > + self.pvp_regression_run(case_info, modem, virtio_path, > + packed=3DTrue) > + > + def test_perf_pvp_with_virtio11_non_mergeable_path(self): > + """ > + Test the performance of one vm with virtio 1.1 on mergeable path > + diff qemu + multi queue + reconnect > + """ > + case_info =3D 'virtio-1.1 normal' > + modem =3D 1 > + virtio_path =3D 'normal' > + self.pvp_regression_run(case_info, modem, virtio_path, > + packed=3DTrue) > + > def tear_down(self): > """ > Run after each test case. > -- > 1.8.3.1