From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "Wang, Yinan" <yinan.wang@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Wang, Yinan" <yinan.wang@intel.com>
Subject: Re: [dts] [PATCH v1] test_plans: update test commonds for vectorized cases in vhost_dequeue_zero_copy_test_plan.rst
Date: Wed, 6 May 2020 03:26:11 +0000 [thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC21FD2@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <20200429222738.28221-1-yinan.wang@intel.com>
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 <yinan.wang@intel.com>
> Subject: [dts] [PATCH v1] test_plans: update test commonds for vectorized
> cases in vhost_dequeue_zero_copy_test_plan.rst
>
> From: Wang Yinan <yinan.wang@intel.com>
>
> Signed-off-by: Wang Yinan <yinan.wang@intel.com>
> ---
> .../vhost_dequeue_zero_copy_test_plan.rst | 33 +++++++++++++++++--
> 1 file changed, 30 insertions(+), 3 deletions(-)
>
> 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
>
> rm -rf vhost-net*
> ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 2-4 --socket-mem
> 1024,1024 --legacy-mem \
> - --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-
> net,queues=1,client=0,dequeue-zero-copy=1' \
> - -- -i --nb-cores=1 --txd=1024 --rxd=1024 --txfreet=992 --txrs=32
> + --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-
> net,queues=1,client=1,dequeue-zero-copy=1' \
> + -- -i --nb-cores=1 --txd=1024 --rxd=1024 --txfreet=992
> testpmd>set fwd mac
> testpmd>start
>
> @@ -242,7 +242,7 @@ Test Case 5: pvp split ring dequeue zero-copy test
> with vector_rx path
>
> ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 5-6 --socket-mem
> 1024,1024 \
> --legacy-mem --no-pci --file-prefix=virtio \
> - --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-
> net,in_order=0,mrg_rxbuf=0,queue_size=1024 \
> +
> + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,in_orde
> + r=0,mrg_rxbuf=0,vectorized=1,queue_size=1024,server=1 \
> -- -i --tx-offloads=0x0 --nb-cores=1 --txd=1024 --rxd=1024
> >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::
>
> testpmd>stop
> +
> +Test Case 9: pvp packed ring dequeue zero-copy test with ring size is
> +not power of 2
> +===============================================================
> ========
> +=============
> +
> +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=vhost --vdev 'net_vhost0,iface=vhost-
> net,queues=1,client=1,dequeue-zero-copy=1' \
> + -- -i --nb-cores=1 --txd=1024 --rxd=1024 --txfreet=992
> + 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=virtio \
> + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-
> net,in_order=0,mrg_rxbuf=1,packed_vq=1,queue_size=1025,server=1 \
> + -- -i --rx-offloads=0x10 --nb-cores=1 --txd=1025 --rxd=1025
> + >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=0, 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
prev parent reply other threads:[~2020-05-06 3:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-29 22:27 Yinan
2020-05-06 3:26 ` Tu, Lijuan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8CE3E05A3F976642AAB0F4675D0AD20E0BC21FD2@SHSMSX101.ccr.corp.intel.com \
--to=lijuan.tu@intel.com \
--cc=dts@dpdk.org \
--cc=yinan.wang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).