From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CBD66A0C46; Wed, 9 Jun 2021 10:26:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C39F7410DE; Wed, 9 Jun 2021 10:26:40 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 1706F40E3C for ; Wed, 9 Jun 2021 10:26:38 +0200 (CEST) IronPort-SDR: SbZ/cD/+OPXt6gXXO9aHt+Iwq3xIT8CYp7k6o8nSB6XWADYU32hXdneZ6bmErYdwPm3UV+iG0/ +ASvkZUDrMfg== X-IronPort-AV: E=McAfee;i="6200,9189,10009"; a="226395830" X-IronPort-AV: E=Sophos;i="5.83,260,1616482800"; d="scan'208";a="226395830" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2021 01:26:37 -0700 IronPort-SDR: WzJaSz39SLYzWWlmCLPg6uq5RGi+whhVSpUNoDC4Jcib3+PTDzzgOiFZdmW5S+zuHJQ9Gv5lrw jqfBY0z6br+w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,260,1616482800"; d="scan'208";a="402370155" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by orsmga003.jf.intel.com with ESMTP; 09 Jun 2021 01:26:37 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Wed, 9 Jun 2021 01:26:36 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX601.ccr.corp.intel.com (10.109.6.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Wed, 9 Jun 2021 16:26:35 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2242.008; Wed, 9 Jun 2021 16:26:34 +0800 From: "Tu, Lijuan" To: "Wang, Yinan" , "dts@dpdk.org" CC: "Wang, Yinan" Thread-Topic: [dts] [PATCH v1] test_plans/vhost_cbdma_test_plan: add one cbdma performance case Thread-Index: AQHXXNwO0Bl+Tlc14kmnQWgMQD4YYasLV/Rg Date: Wed, 9 Jun 2021 08:26:34 +0000 Message-ID: <04ed08f9fa3349ff967f4e76f7425fd0@intel.com> References: <20210609114636.179046-1-yinan.wang@intel.com> In-Reply-To: <20210609114636.179046-1-yinan.wang@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 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] test_plans/vhost_cbdma_test_plan: add one cbdma performance case X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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" > -----Original Message----- > From: dts On Behalf Of Yinan Wang > Sent: 2021=1B$BG/=1B(B6=1B$B7n=1B(B9=1B$BF|=1B(B 19:47 > To: dts@dpdk.org > Cc: Wang, Yinan > Subject: [dts] [PATCH v1] test_plans/vhost_cbdma_test_plan: add one cbdma > performance case >=20 I see 2 major changed in your patch, one is add a test case, but also modif= ied other cases that not mentioned in your commit message, please refine it= . > Signed-off-by: Yinan Wang > --- > test_plans/vhost_cbdma_test_plan.rst | 65 +++++++++++++++++++++++++++- > 1 file changed, 63 insertions(+), 2 deletions(-) >=20 > diff --git a/test_plans/vhost_cbdma_test_plan.rst > b/test_plans/vhost_cbdma_test_plan.rst > index c827adaa..ce0fdc3e 100644 > --- a/test_plans/vhost_cbdma_test_plan.rst > +++ b/test_plans/vhost_cbdma_test_plan.rst > @@ -73,7 +73,7 @@ TG --> NIC --> Vhost --> Virtio--> Vhost --> NIC --> TG >=20 > 1. Bind one cbdma port and one nic port to igb_uio, then launch vhost by= below > command:: >=20 > - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 2-3 --file-pre= fix=3Dvhost > --vdev > 'net_vhost0,iface=3D/tmp/s0,queues=3D1,dmas=3D[txq0@80:04.0],dmathr=3D102= 4' \ > + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 2-3 > + --file-prefix=3Dvhost --vdev > + 'net_vhost0,iface=3D/tmp/s0,queues=3D1,dmas=3D[txq0@80:01.0],dmathr=3D1= 024' \ > -- -i --nb-cores=3D1 --txd=3D1024 --rxd=3D1024 Why change pci address ? > >set fwd mac > >start > @@ -145,7 +145,7 @@ Test Case2: Split ring dynamic queue number test for > DMA-accelerated vhost Tx op > >set fwd mac > >start >=20 > -3. Send packets with packet size [64,1518] from packet generator with ra= ndom > ip, check perforamnce can get target. > +3. Send imix packets from packet generator with random ip, check > perforamnce can get target. >=20 > 4. Stop vhost port, check vhost RX and TX direction both exist packtes i= n two > queues from vhost log. >=20 > @@ -355,3 +355,64 @@ Test Case5: Packed ring dynamic queue number test > for DMA-accelerated vhost Tx o > >start >=20 > 11. Stop vhost port, check vhost RX and TX direction both exist packets = in two > queues from vhost log. > + > +Test Case 6: Compare PVP split ring performance between CPU copy, CBDMA > +copy and Sync copy > +=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=3D=3D=3D=3D=3D=3D > + > +CPU copy means vhost enqueue w/o cbdma channel; CBDMA copy needs vhost > +enqueue with cbdma channel using parameter '-dmas'; Sync copy needs > +vhost enqueue with cbdma channel, but threshold ( can be adjusted by cha= nge > value of f.async_threshold in dpdk code) is larger than forwarding packet= length. > + > +1. Bind one cbdma port and one nic port which on same numa to igb_uio, t= hen > launch vhost by below command:: > + > + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 2-3 --file- > prefix=3Dvhost --vdev > 'net_vhost0,iface=3D/tmp/s0,queues=3D1,client=3D1,dmas=3D[txq0@00:01.0],d= mathr=3D10 > 24' \ > + -- -i --nb-cores=3D1 --txd=3D1024 --rxd=3D1024 > + >set fwd mac > + >start > + > +2. Launch virtio-user with inorder mergeable path:: > + > + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-6 --no-pci -= -file- > prefix=3Dvirtio \ > + -- > vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D/tmp/s0,mrg_rxbuf= =3D1,in_o > rder=3D1,queues=3D1,server=3D1 \ > + -- -i --tx-offloads=3D0x0 --enable-hw-vlan-strip --nb-cores=3D1 --tx= d=3D1024 -- > rxd=3D1024 > + >set fwd mac > + >start > + > +3. Send packets with 64b and 1518b seperately from packet generator, rec= ord > the throughput as sync copy throughput for 64b and cbdma copy for 1518b:: > + > + testpmd>show port stats all > + > +4.Quit vhost side, relaunch with below cmd:: > + > + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 2-3 --file-prefix= =3Dvhost > --vdev > 'net_vhost0,iface=3D/tmp/s0,queues=3D1,client=3D1,dmas=3D[txq0@00:01.0],d= mathr=3D20 > 00' \ > + -- -i --nb-cores=3D1 --txd=3D1024 --rxd=3D1024 > + >set fwd mac > + >start > + > +5. Send packets with 1518b from packet generator, record the throughput = as > sync copy throughput for 1518b:: > + > + testpmd>show port stats all > + > +6. Quit two testpmd, relaunch vhost by below command:: > + > + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 2-3 --file- > prefix=3Dvhost --vdev 'net_vhost0,iface=3D/tmp/s0,queues=3D1' \ > + -- -i --nb-cores=3D1 --txd=3D1024 --rxd=3D1024 > + >set fwd mac > + >start > + > +7. Launch virtio-user with inorder mergeable path:: > + > + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-6 --no-pci -= -file- > prefix=3Dvirtio \ > + -- > vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D/tmp/s0,mrg_rxbuf= =3D1,in_o > rder=3D1,queues=3D1 \ > + -- -i --tx-offloads=3D0x0 --enable-hw-vlan-strip --nb-cores=3D1 --tx= d=3D1024 -- > rxd=3D1024 > + >set fwd mac > + >start > + > +8. Send packets with 64b from packet generator, record the throughput as= cpu > copy for 64b:: > + > + testpmd>show port stats all > + > +9. Check performance can meet below requirement:: > + > + (1)CPU copy vs. sync copy delta < 10% for 64B packet size > + (2)CBDMA copy vs sync copy delta > 5% for 1518 packet size > -- > 2.25.1