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 1AB86A0352; Wed, 6 May 2020 05:26:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 127FE1D6E7; Wed, 6 May 2020 05:26:19 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 05C8E1C06D for ; Wed, 6 May 2020 05:26:16 +0200 (CEST) IronPort-SDR: cbRUdTsIzke4ViCP6ZFOTCK6NgLdjmpWy4Nq66TBYV9wKpeC3wWyKcfXT+VVrFJAPmo/UaKr7Z gtZ4jDAmFhjQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2020 20:26:16 -0700 IronPort-SDR: 4r6RWy5KIJ6T/zZz6gRdvKs5PZt+51P4fFeX5xJ0gYS6/onhRfLzAlxIdcHltP+UEwyusLLvz1 bG8YUozBoH+A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,357,1583222400"; d="scan'208";a="263405775" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga006.jf.intel.com with ESMTP; 05 May 2020 20:26:15 -0700 Received: from FMSMSX110.amr.corp.intel.com (10.18.116.10) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 5 May 2020 20:26:14 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx110.amr.corp.intel.com (10.18.116.10) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 5 May 2020 20:26:13 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.225]) by shsmsx102.ccr.corp.intel.com ([169.254.2.38]) with mapi id 14.03.0439.000; Wed, 6 May 2020 11:26:11 +0800 From: "Tu, Lijuan" To: "Wang, Yinan" , "dts@dpdk.org" CC: "Wang, Yinan" Thread-Topic: [dts] [PATCH v1] test_plans: update test commonds for vectorized cases in vhost_dequeue_zero_copy_test_plan.rst Thread-Index: AQHWHrD2JSpi4Z4bP0i4Lc7lf65P1qiabsjA Date: Wed, 6 May 2020 03:26:11 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC21FD2@SHSMSX101.ccr.corp.intel.com> References: <20200429222738.28221-1-yinan.wang@intel.com> In-Reply-To: <20200429222738.28221-1-yinan.wang@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH v1] test_plans: update test commonds for vectorized cases in vhost_dequeue_zero_copy_test_plan.rst 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yinan > Sent: Thursday, April 30, 2020 6:28 AM > To: dts@dpdk.org > Cc: Wang, Yinan > Subject: [dts] [PATCH v1] test_plans: update test commonds for vectorized > cases in vhost_dequeue_zero_copy_test_plan.rst >=20 > From: Wang Yinan >=20 > Signed-off-by: Wang Yinan > --- > .../vhost_dequeue_zero_copy_test_plan.rst | 33 +++++++++++++++++-- > 1 file changed, 30 insertions(+), 3 deletions(-) >=20 > diff --git a/test_plans/vhost_dequeue_zero_copy_test_plan.rst > b/test_plans/vhost_dequeue_zero_copy_test_plan.rst > index 0c550d8..0c1743c 100644 > --- a/test_plans/vhost_dequeue_zero_copy_test_plan.rst > +++ b/test_plans/vhost_dequeue_zero_copy_test_plan.rst > @@ -233,8 +233,8 @@ Test Case 5: pvp split ring dequeue zero-copy test > with vector_rx path >=20 > rm -rf vhost-net* > ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 2-4 --socket-mem > 1024,1024 --legacy-mem \ > - --file-prefix=3Dvhost --vdev 'net_vhost0,iface=3Dvhost- > net,queues=3D1,client=3D0,dequeue-zero-copy=3D1' \ > - -- -i --nb-cores=3D1 --txd=3D1024 --rxd=3D1024 --txfreet=3D992 --txr= s=3D32 > + --file-prefix=3Dvhost --vdev 'net_vhost0,iface=3Dvhost- > net,queues=3D1,client=3D1,dequeue-zero-copy=3D1' \ > + -- -i --nb-cores=3D1 --txd=3D1024 --rxd=3D1024 --txfreet=3D992 > testpmd>set fwd mac > testpmd>start >=20 > @@ -242,7 +242,7 @@ Test Case 5: pvp split ring dequeue zero-copy test > with vector_rx path >=20 > ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 5-6 --socket-mem > 1024,1024 \ > --legacy-mem --no-pci --file-prefix=3Dvirtio \ > - --vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost- > net,in_order=3D0,mrg_rxbuf=3D0,queue_size=3D1024 \ > + > + --vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost-net,in= _orde > + r=3D0,mrg_rxbuf=3D0,vectorized=3D1,queue_size=3D1024,server=3D1 \ > -- -i --tx-offloads=3D0x0 --nb-cores=3D1 --txd=3D1024 --rxd=3D1024 > >set fwd mac > >start > @@ -388,3 +388,30 @@ Test Case 8: pvp packed ring dequeue zero-copy > test with driver reload test 8. Check each queue's rx/tx packet numbers = at > vhost side:: >=20 > testpmd>stop > + > +Test Case 9: pvp packed ring dequeue zero-copy test with ring size is > +not power of 2 > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +1. Bind one port to igb_uio, then launch vhost by below command:: > + > + rm -rf vhost-net* > + ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 2-4 --socket-mem > 1024,1024 --legacy-mem \ > + --file-prefix=3Dvhost --vdev 'net_vhost0,iface=3Dvhost- > net,queues=3D1,client=3D1,dequeue-zero-copy=3D1' \ > + -- -i --nb-cores=3D1 --txd=3D1024 --rxd=3D1024 --txfreet=3D992 > + testpmd>set fwd mac > + testpmd>start > + > +2. Launch virtio-user by below command:: > + > + ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 5-6 --socket-mem > 1024,1024 \ > + --legacy-mem --no-pci --file-prefix=3Dvirtio \ > + --vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost- > net,in_order=3D0,mrg_rxbuf=3D1,packed_vq=3D1,queue_size=3D1025,server=3D1= \ > + -- -i --rx-offloads=3D0x10 --nb-cores=3D1 --txd=3D1025 --rxd=3D1025 > + >set fwd mac > + >start > + > +3. Send packet with packet generator with different packet size,includes= [64, > 128, 256, 512, 1024, 1518], check the throughput with below command:: > + > + testpmd>show port stats all > + > +4. Repeat the test with dequeue-zero-copy=3D0, compare the performance > gains or degradation. For small packet, we may expect ~20% performance > drop, but for big packet, we expect ~20% performance gains. > -- > 2.17.1