test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] Add sw eventdev test plan
@ 2017-11-02 14:53 Yuwei Zhang
  2017-11-10  5:36 ` Liu, Yong
  0 siblings, 1 reply; 4+ messages in thread
From: Yuwei Zhang @ 2017-11-02 14:53 UTC (permalink / raw)
  To: dts; +Cc: Yuwei Zhang

add software eventdev test plan

Signed-off-by: Yuwei Zhang <yuwei1.zhang@intel.com>
---
 .../sw_eventdev_pipeline_sample_test_plan.rst      | 140 +++++++++++++++++++++
 1 file changed, 140 insertions(+)
 create mode 100644 test_plans/sw_eventdev_pipeline_sample_test_plan.rst

diff --git a/test_plans/sw_eventdev_pipeline_sample_test_plan.rst b/test_plans/sw_eventdev_pipeline_sample_test_plan.rst
new file mode 100644
index 0000000..926adf0
--- /dev/null
+++ b/test_plans/sw_eventdev_pipeline_sample_test_plan.rst
@@ -0,0 +1,140 @@
+.. Copyright (c) <2013-2017>, Intel Corporation
+   All rights reserved.
+
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+
+   - Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+
+   - Redistributions in binary form must reproduce the above copyright
+     notice, this list of conditions and the following disclaimer in
+     the documentation and/or other materials provided with the
+     distribution.
+
+   - Neither the name of Intel Corporation nor the names of its
+     contributors may be used to endorse or promote products derived
+     from this software without specific prior written permission.
+
+   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+   COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+   INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+   OF THE POSSIBILITY OF SUCH DAMAGE.
+===============================
+Eventdev Pipeline SW PMD Tests
+===============================
+
+Prerequistites
+==============
+
+Test Case 1: Keep the packets order with one ordered stage in single-flow and multi-flow
+========================================================================================
+Description: the sample only guarantee that keep the packets order with only one stage.
+
+1. Run the sample with below command:
+# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w F0 -s1 -n0 -c32 -W1000 -o -D
+Parameters: 
+-r2, -t4, -e8: allocate cores to rx, tx and shedular
+-w: allocate cores to workers
+-s1: the sample only contain 1 stage
+-n0: the sample will run forever without a packets num limit
+
+2. Send traffic from ixia device with same 5 tuple(single-link) and with different 5-tuple(multi-flow)
+
+3. Observe the packets received by ixia device, check the packets order.
+
+Test Case 2: Keep the packets order with atomic stage in single-flow and multi-flow
+===================================================================================
+Description: the packets' order which will pass through a same flow should be guaranteed.
+
+1. Run the sample with below command:
+# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w F0 -s2 -n0 -c32 -W1000 -a -D
+
+2. Send traffic from ixia device with same 5 tuple(single-link) and with different 5-tuple(multi-flow)
+
+3. Observe the packets received by ixia device, ensure packets in each *flow* remain in order, but note that flows may be re-ordered compared to eachother.
+
+
+Test Case 3: Check load-balance behavior with atomic type in single-flow and multi-flow situations
+==================================================================================================
+Description: In multi-flow situation, sample should have a good load-blanced behavior; in single-flow, the load-balanced behavior is not guaranteed;
+
+1. Run the sample with below command:
+# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w F0 -s1 -n0 -c32 -W1000 -a -D
+
+2. Use traffic generator to send huge number of packets:
+In single-flow situation, traffic generator will send packets with the same 5-tuple which is used to calculate rss value;
+In multi-flow situation, traffice generator will send packets with different 5-tuple;
+
+3. Check the load-balance bahavior by the workload of every worker.
+
+Test Case 4: Check load-balance behavior with order type stage in single-flow and multi-flow situations
+=======================================================================================================
+Description: A good load-balanced behavior should be guaranteed in both single-flow and multi-flow situations.
+
+1. Run the sample with below command:
+# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w F0 -s1 -n0 -c32 -W1000 -o -D
+
+2. Use traffic generator to send huge number of packets:
+In single-flow situation, traffic generator will send packets with the same 5-tuple which is used to calculate rss value;
+In multi-flow situation, traffice generator will send packets with different 5-tuple;
+
+3. Check the load-balance bahavior by the workload of every worker.
+
+Test Case 5: Check load-balance behavior with parallel type stage in single-flow and multi-flow situations 
+==========================================================================================================
+Description: A good load-balanced behavior should be guaranteed in both single-flow and multi-flow situations.
+
+1. Run the sample with below command:
+# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w F0 -s1 -n0 -c32 -W1000 -p -D
+
+2. Use traffic generator to send huge number of packets:
+In single-flow situation, traffic generator will send packets with the same 5-tuple which is used to calculate rss value;
+In multi-flow situation, traffic generator will send packets with different 5-tuple;
+
+3. Check the load-balance bahavior by the workload of every worker.
+
+Test Case 6: Performance test for atomic type of stage
+======================================================
+Description: Execute performance test with atomic type of stage in single-flow and multi-flow situation.
+We use 4 worker and 2 stage as the test background.
+
+1. Run the sample with below command:
+# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w F0 -s1 -n0 -c32 
+
+2. use traffic generator to send huge number of packets(with same 5-tuple and different 5-tuple)
+
+3. observe the speed of packets received.
+
+Test Case 7: Performance test for parallel type of stage
+========================================================
+Description: Execute performance test with atomic type of stage in single-flow and multi-flow situation.
+We use 4 worker and 2 stage as the test background.
+
+1. Run the sample with below command:
+# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w F0 -s1 -n0 -c32 
+
+2. use traffic generator to send huge number of packets(with same 5-tuple and different 5-tuple)
+
+3. observe the speed of packets received.
+
+Test Case 8: Performance test for ordered type of stage
+=======================================================
+Description: Execute performance test with atomic type of stage in single-flow and multi-flow situation.
+We use 4 worker and 2 stage as the test background.
+
+1. Run the sample with below command:
+# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w F0 -s1 -n0 -c32 
+
+2. use traffic generator to send huge number of packets(with same 5-tuple and different 5-tuple)
+
+3. observe the speed of packets received.
\ No newline at end of file
-- 
2.14.1.windows.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dts] [PATCH V1] Add sw eventdev test plan
  2017-11-02 14:53 [dts] [PATCH V1] Add sw eventdev test plan Yuwei Zhang
@ 2017-11-10  5:36 ` Liu, Yong
  2017-11-10  5:40   ` Zhang, Yuwei1
  0 siblings, 1 reply; 4+ messages in thread
From: Liu, Yong @ 2017-11-10  5:36 UTC (permalink / raw)
  To: Zhang, Yuwei1, dts; +Cc: Zhang, Yuwei1

Yuwei,
Please add some descriptions in the header of the test plan.
I saw that all test cases depend on IXIA. Could we make those cases suitable for software packet generator like scapy?
Not everyone has expensive hardware instrument. For those who just want to check the basic status of eventdev, few thousands of packets are enough. 

Thanks,
Marvin

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yuwei Zhang
> Sent: Thursday, November 02, 2017 10:54 PM
> To: dts@dpdk.org
> Cc: Zhang, Yuwei1 <yuwei1.zhang@intel.com>
> Subject: [dts] [PATCH V1] Add sw eventdev test plan
> 
> add software eventdev test plan
> 
> Signed-off-by: Yuwei Zhang <yuwei1.zhang@intel.com>
> ---
>  .../sw_eventdev_pipeline_sample_test_plan.rst      | 140
> +++++++++++++++++++++
>  1 file changed, 140 insertions(+)
>  create mode 100644 test_plans/sw_eventdev_pipeline_sample_test_plan.rst
> 
> diff --git a/test_plans/sw_eventdev_pipeline_sample_test_plan.rst
> b/test_plans/sw_eventdev_pipeline_sample_test_plan.rst
> new file mode 100644
> index 0000000..926adf0
> --- /dev/null
> +++ b/test_plans/sw_eventdev_pipeline_sample_test_plan.rst
> @@ -0,0 +1,140 @@
> +.. Copyright (c) <2013-2017>, Intel Corporation
> +   All rights reserved.
> +
> +   Redistribution and use in source and binary forms, with or without
> +   modification, are permitted provided that the following conditions
> +   are met:
> +
> +   - Redistributions of source code must retain the above copyright
> +     notice, this list of conditions and the following disclaimer.
> +
> +   - Redistributions in binary form must reproduce the above copyright
> +     notice, this list of conditions and the following disclaimer in
> +     the documentation and/or other materials provided with the
> +     distribution.
> +
> +   - Neither the name of Intel Corporation nor the names of its
> +     contributors may be used to endorse or promote products derived
> +     from this software without specific prior written permission.
> +
> +   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
> +   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
> +   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
> +   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
> +   COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
> +   INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
> +   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
> +   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
> +   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
> +   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
> +   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
> +   OF THE POSSIBILITY OF SUCH DAMAGE.
> +===============================
> +Eventdev Pipeline SW PMD Tests
> +===============================
> +
> +Prerequistites
> +==============
> +
> +Test Case 1: Keep the packets order with one ordered stage in single-flow
> and multi-flow
> +=========================================================================
> ===============
> +Description: the sample only guarantee that keep the packets order with
> only one stage.
> +
> +1. Run the sample with below command:
> +# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w F0
> -s1 -n0 -c32 -W1000 -o -D
> +Parameters:
> +-r2, -t4, -e8: allocate cores to rx, tx and shedular
> +-w: allocate cores to workers
> +-s1: the sample only contain 1 stage
> +-n0: the sample will run forever without a packets num limit
> +
> +2. Send traffic from ixia device with same 5 tuple(single-link) and with
> different 5-tuple(multi-flow)
> +
> +3. Observe the packets received by ixia device, check the packets order.
> +
> +Test Case 2: Keep the packets order with atomic stage in single-flow and
> multi-flow
> +=========================================================================
> ==========
> +Description: the packets' order which will pass through a same flow
> should be guaranteed.
> +
> +1. Run the sample with below command:
> +# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w F0
> -s2 -n0 -c32 -W1000 -a -D
> +
> +2. Send traffic from ixia device with same 5 tuple(single-link) and with
> different 5-tuple(multi-flow)
> +
> +3. Observe the packets received by ixia device, ensure packets in each
> *flow* remain in order, but note that flows may be re-ordered compared to
> eachother.
> +
> +
> +Test Case 3: Check load-balance behavior with atomic type in single-flow
> and multi-flow situations
> +=========================================================================
> =========================
> +Description: In multi-flow situation, sample should have a good load-
> blanced behavior; in single-flow, the load-balanced behavior is not
> guaranteed;
> +
> +1. Run the sample with below command:
> +# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w F0
> -s1 -n0 -c32 -W1000 -a -D
> +
> +2. Use traffic generator to send huge number of packets:
> +In single-flow situation, traffic generator will send packets with the
> same 5-tuple which is used to calculate rss value;
> +In multi-flow situation, traffice generator will send packets with
> different 5-tuple;
> +
> +3. Check the load-balance bahavior by the workload of every worker.
> +
> +Test Case 4: Check load-balance behavior with order type stage in single-
> flow and multi-flow situations
> +=========================================================================
> ==============================
> +Description: A good load-balanced behavior should be guaranteed in both
> single-flow and multi-flow situations.
> +
> +1. Run the sample with below command:
> +# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w F0
> -s1 -n0 -c32 -W1000 -o -D
> +
> +2. Use traffic generator to send huge number of packets:
> +In single-flow situation, traffic generator will send packets with the
> same 5-tuple which is used to calculate rss value;
> +In multi-flow situation, traffice generator will send packets with
> different 5-tuple;
> +
> +3. Check the load-balance bahavior by the workload of every worker.
> +
> +Test Case 5: Check load-balance behavior with parallel type stage in
> single-flow and multi-flow situations
> +=========================================================================
> =================================
> +Description: A good load-balanced behavior should be guaranteed in both
> single-flow and multi-flow situations.
> +
> +1. Run the sample with below command:
> +# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w F0
> -s1 -n0 -c32 -W1000 -p -D
> +
> +2. Use traffic generator to send huge number of packets:
> +In single-flow situation, traffic generator will send packets with the
> same 5-tuple which is used to calculate rss value;
> +In multi-flow situation, traffic generator will send packets with
> different 5-tuple;
> +
> +3. Check the load-balance bahavior by the workload of every worker.
> +
> +Test Case 6: Performance test for atomic type of stage
> +======================================================
> +Description: Execute performance test with atomic type of stage in
> single-flow and multi-flow situation.
> +We use 4 worker and 2 stage as the test background.
> +
> +1. Run the sample with below command:
> +# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w F0
> -s1 -n0 -c32
> +
> +2. use traffic generator to send huge number of packets(with same 5-tuple
> and different 5-tuple)
> +
> +3. observe the speed of packets received.
> +
> +Test Case 7: Performance test for parallel type of stage
> +========================================================
> +Description: Execute performance test with atomic type of stage in
> single-flow and multi-flow situation.
> +We use 4 worker and 2 stage as the test background.
> +
> +1. Run the sample with below command:
> +# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w F0
> -s1 -n0 -c32
> +
> +2. use traffic generator to send huge number of packets(with same 5-tuple
> and different 5-tuple)
> +
> +3. observe the speed of packets received.
> +
> +Test Case 8: Performance test for ordered type of stage
> +=======================================================
> +Description: Execute performance test with atomic type of stage in
> single-flow and multi-flow situation.
> +We use 4 worker and 2 stage as the test background.
> +
> +1. Run the sample with below command:
> +# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w F0
> -s1 -n0 -c32
> +
> +2. use traffic generator to send huge number of packets(with same 5-tuple
> and different 5-tuple)
> +
> +3. observe the speed of packets received.
> \ No newline at end of file
> --
> 2.14.1.windows.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dts] [PATCH V1] Add sw eventdev test plan
  2017-11-10  5:36 ` Liu, Yong
@ 2017-11-10  5:40   ` Zhang, Yuwei1
  2017-11-10  5:46     ` Liu, Yong
  0 siblings, 1 reply; 4+ messages in thread
From: Zhang, Yuwei1 @ 2017-11-10  5:40 UTC (permalink / raw)
  To: Liu, Yong, dts

No, all the evendev cases are performance related, after talking with harry, he think the result got by a low speed traffic generator is meaningless.

-----Original Message-----
From: Liu, Yong 
Sent: Friday, November 10, 2017 1:36 PM
To: Zhang, Yuwei1 <yuwei1.zhang@intel.com>; dts@dpdk.org
Cc: Zhang, Yuwei1 <yuwei1.zhang@intel.com>
Subject: RE: [dts] [PATCH V1] Add sw eventdev test plan

Yuwei,
Please add some descriptions in the header of the test plan.
I saw that all test cases depend on IXIA. Could we make those cases suitable for software packet generator like scapy?
Not everyone has expensive hardware instrument. For those who just want to check the basic status of eventdev, few thousands of packets are enough. 

Thanks,
Marvin

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yuwei Zhang
> Sent: Thursday, November 02, 2017 10:54 PM
> To: dts@dpdk.org
> Cc: Zhang, Yuwei1 <yuwei1.zhang@intel.com>
> Subject: [dts] [PATCH V1] Add sw eventdev test plan
> 
> add software eventdev test plan
> 
> Signed-off-by: Yuwei Zhang <yuwei1.zhang@intel.com>
> ---
>  .../sw_eventdev_pipeline_sample_test_plan.rst      | 140
> +++++++++++++++++++++
>  1 file changed, 140 insertions(+)
>  create mode 100644 
> test_plans/sw_eventdev_pipeline_sample_test_plan.rst
> 
> diff --git a/test_plans/sw_eventdev_pipeline_sample_test_plan.rst
> b/test_plans/sw_eventdev_pipeline_sample_test_plan.rst
> new file mode 100644
> index 0000000..926adf0
> --- /dev/null
> +++ b/test_plans/sw_eventdev_pipeline_sample_test_plan.rst
> @@ -0,0 +1,140 @@
> +.. Copyright (c) <2013-2017>, Intel Corporation
> +   All rights reserved.
> +
> +   Redistribution and use in source and binary forms, with or without
> +   modification, are permitted provided that the following conditions
> +   are met:
> +
> +   - Redistributions of source code must retain the above copyright
> +     notice, this list of conditions and the following disclaimer.
> +
> +   - Redistributions in binary form must reproduce the above copyright
> +     notice, this list of conditions and the following disclaimer in
> +     the documentation and/or other materials provided with the
> +     distribution.
> +
> +   - Neither the name of Intel Corporation nor the names of its
> +     contributors may be used to endorse or promote products derived
> +     from this software without specific prior written permission.
> +
> +   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
> +   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
> +   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
> +   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
> +   COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
> +   INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
> +   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
> +   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
> +   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
> +   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
> +   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
> +   OF THE POSSIBILITY OF SUCH DAMAGE.
> +===============================
> +Eventdev Pipeline SW PMD Tests
> +===============================
> +
> +Prerequistites
> +==============
> +
> +Test Case 1: Keep the packets order with one ordered stage in 
> +single-flow
> and multi-flow
> +=====================================================================
> +====
> ===============
> +Description: the sample only guarantee that keep the packets order 
> +with
> only one stage.
> +
> +1. Run the sample with below command:
> +# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w 
> +F0
> -s1 -n0 -c32 -W1000 -o -D
> +Parameters:
> +-r2, -t4, -e8: allocate cores to rx, tx and shedular
> +-w: allocate cores to workers
> +-s1: the sample only contain 1 stage
> +-n0: the sample will run forever without a packets num limit
> +
> +2. Send traffic from ixia device with same 5 tuple(single-link) and 
> +with
> different 5-tuple(multi-flow)
> +
> +3. Observe the packets received by ixia device, check the packets order.
> +
> +Test Case 2: Keep the packets order with atomic stage in single-flow 
> +and
> multi-flow
> +=====================================================================
> +====
> ==========
> +Description: the packets' order which will pass through a same flow
> should be guaranteed.
> +
> +1. Run the sample with below command:
> +# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w 
> +F0
> -s2 -n0 -c32 -W1000 -a -D
> +
> +2. Send traffic from ixia device with same 5 tuple(single-link) and 
> +with
> different 5-tuple(multi-flow)
> +
> +3. Observe the packets received by ixia device, ensure packets in 
> +each
> *flow* remain in order, but note that flows may be re-ordered compared 
> to eachother.
> +
> +
> +Test Case 3: Check load-balance behavior with atomic type in 
> +single-flow
> and multi-flow situations
> +=====================================================================
> +====
> =========================
> +Description: In multi-flow situation, sample should have a good load-
> blanced behavior; in single-flow, the load-balanced behavior is not 
> guaranteed;
> +
> +1. Run the sample with below command:
> +# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w 
> +F0
> -s1 -n0 -c32 -W1000 -a -D
> +
> +2. Use traffic generator to send huge number of packets:
> +In single-flow situation, traffic generator will send packets with 
> +the
> same 5-tuple which is used to calculate rss value;
> +In multi-flow situation, traffice generator will send packets with
> different 5-tuple;
> +
> +3. Check the load-balance bahavior by the workload of every worker.
> +
> +Test Case 4: Check load-balance behavior with order type stage in 
> +single-
> flow and multi-flow situations
> +=====================================================================
> +====
> ==============================
> +Description: A good load-balanced behavior should be guaranteed in 
> +both
> single-flow and multi-flow situations.
> +
> +1. Run the sample with below command:
> +# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w 
> +F0
> -s1 -n0 -c32 -W1000 -o -D
> +
> +2. Use traffic generator to send huge number of packets:
> +In single-flow situation, traffic generator will send packets with 
> +the
> same 5-tuple which is used to calculate rss value;
> +In multi-flow situation, traffice generator will send packets with
> different 5-tuple;
> +
> +3. Check the load-balance bahavior by the workload of every worker.
> +
> +Test Case 5: Check load-balance behavior with parallel type stage in
> single-flow and multi-flow situations
> +=====================================================================
> +====
> =================================
> +Description: A good load-balanced behavior should be guaranteed in 
> +both
> single-flow and multi-flow situations.
> +
> +1. Run the sample with below command:
> +# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w 
> +F0
> -s1 -n0 -c32 -W1000 -p -D
> +
> +2. Use traffic generator to send huge number of packets:
> +In single-flow situation, traffic generator will send packets with 
> +the
> same 5-tuple which is used to calculate rss value;
> +In multi-flow situation, traffic generator will send packets with
> different 5-tuple;
> +
> +3. Check the load-balance bahavior by the workload of every worker.
> +
> +Test Case 6: Performance test for atomic type of stage 
> +======================================================
> +Description: Execute performance test with atomic type of stage in
> single-flow and multi-flow situation.
> +We use 4 worker and 2 stage as the test background.
> +
> +1. Run the sample with below command:
> +# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w 
> +F0
> -s1 -n0 -c32
> +
> +2. use traffic generator to send huge number of packets(with same 
> +5-tuple
> and different 5-tuple)
> +
> +3. observe the speed of packets received.
> +
> +Test Case 7: Performance test for parallel type of stage 
> +========================================================
> +Description: Execute performance test with atomic type of stage in
> single-flow and multi-flow situation.
> +We use 4 worker and 2 stage as the test background.
> +
> +1. Run the sample with below command:
> +# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w 
> +F0
> -s1 -n0 -c32
> +
> +2. use traffic generator to send huge number of packets(with same 
> +5-tuple
> and different 5-tuple)
> +
> +3. observe the speed of packets received.
> +
> +Test Case 8: Performance test for ordered type of stage 
> +=======================================================
> +Description: Execute performance test with atomic type of stage in
> single-flow and multi-flow situation.
> +We use 4 worker and 2 stage as the test background.
> +
> +1. Run the sample with below command:
> +# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w 
> +F0
> -s1 -n0 -c32
> +
> +2. use traffic generator to send huge number of packets(with same 
> +5-tuple
> and different 5-tuple)
> +
> +3. observe the speed of packets received.
> \ No newline at end of file
> --
> 2.14.1.windows.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dts] [PATCH V1] Add sw eventdev test plan
  2017-11-10  5:40   ` Zhang, Yuwei1
@ 2017-11-10  5:46     ` Liu, Yong
  0 siblings, 0 replies; 4+ messages in thread
From: Liu, Yong @ 2017-11-10  5:46 UTC (permalink / raw)
  To: Zhang, Yuwei1, dts

Yuwei,
I know that eventdev are performance related. We also need to make assurance on the software quality.
We can utilize software generator to verify functionality for regression and software high speed generator for performance assurance.
As to performance, we can do it in the release cycle.

Thanks,
Marvin

> -----Original Message-----
> From: Zhang, Yuwei1
> Sent: Friday, November 10, 2017 1:40 PM
> To: Liu, Yong <yong.liu@intel.com>; dts@dpdk.org
> Subject: RE: [dts] [PATCH V1] Add sw eventdev test plan
> 
> No, all the evendev cases are performance related, after talking with
> harry, he think the result got by a low speed traffic generator is
> meaningless.
> 
> -----Original Message-----
> From: Liu, Yong
> Sent: Friday, November 10, 2017 1:36 PM
> To: Zhang, Yuwei1 <yuwei1.zhang@intel.com>; dts@dpdk.org
> Cc: Zhang, Yuwei1 <yuwei1.zhang@intel.com>
> Subject: RE: [dts] [PATCH V1] Add sw eventdev test plan
> 
> Yuwei,
> Please add some descriptions in the header of the test plan.
> I saw that all test cases depend on IXIA. Could we make those cases
> suitable for software packet generator like scapy?
> Not everyone has expensive hardware instrument. For those who just want to
> check the basic status of eventdev, few thousands of packets are enough.
> 
> Thanks,
> Marvin
> 
> > -----Original Message-----
> > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yuwei Zhang
> > Sent: Thursday, November 02, 2017 10:54 PM
> > To: dts@dpdk.org
> > Cc: Zhang, Yuwei1 <yuwei1.zhang@intel.com>
> > Subject: [dts] [PATCH V1] Add sw eventdev test plan
> >
> > add software eventdev test plan
> >
> > Signed-off-by: Yuwei Zhang <yuwei1.zhang@intel.com>
> > ---
> >  .../sw_eventdev_pipeline_sample_test_plan.rst      | 140
> > +++++++++++++++++++++
> >  1 file changed, 140 insertions(+)
> >  create mode 100644
> > test_plans/sw_eventdev_pipeline_sample_test_plan.rst
> >
> > diff --git a/test_plans/sw_eventdev_pipeline_sample_test_plan.rst
> > b/test_plans/sw_eventdev_pipeline_sample_test_plan.rst
> > new file mode 100644
> > index 0000000..926adf0
> > --- /dev/null
> > +++ b/test_plans/sw_eventdev_pipeline_sample_test_plan.rst
> > @@ -0,0 +1,140 @@
> > +.. Copyright (c) <2013-2017>, Intel Corporation
> > +   All rights reserved.
> > +
> > +   Redistribution and use in source and binary forms, with or without
> > +   modification, are permitted provided that the following conditions
> > +   are met:
> > +
> > +   - Redistributions of source code must retain the above copyright
> > +     notice, this list of conditions and the following disclaimer.
> > +
> > +   - Redistributions in binary form must reproduce the above copyright
> > +     notice, this list of conditions and the following disclaimer in
> > +     the documentation and/or other materials provided with the
> > +     distribution.
> > +
> > +   - Neither the name of Intel Corporation nor the names of its
> > +     contributors may be used to endorse or promote products derived
> > +     from this software without specific prior written permission.
> > +
> > +   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
> > +   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
> > +   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
> > +   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
> > +   COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
> > +   INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
> > +   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
> > +   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
> > +   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
> > +   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
> > +   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
> > +   OF THE POSSIBILITY OF SUCH DAMAGE.
> > +===============================
> > +Eventdev Pipeline SW PMD Tests
> > +===============================
> > +
> > +Prerequistites
> > +==============
> > +
> > +Test Case 1: Keep the packets order with one ordered stage in
> > +single-flow
> > and multi-flow
> > +=====================================================================
> > +====
> > ===============
> > +Description: the sample only guarantee that keep the packets order
> > +with
> > only one stage.
> > +
> > +1. Run the sample with below command:
> > +# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w
> > +F0
> > -s1 -n0 -c32 -W1000 -o -D
> > +Parameters:
> > +-r2, -t4, -e8: allocate cores to rx, tx and shedular
> > +-w: allocate cores to workers
> > +-s1: the sample only contain 1 stage
> > +-n0: the sample will run forever without a packets num limit
> > +
> > +2. Send traffic from ixia device with same 5 tuple(single-link) and
> > +with
> > different 5-tuple(multi-flow)
> > +
> > +3. Observe the packets received by ixia device, check the packets order.
> > +
> > +Test Case 2: Keep the packets order with atomic stage in single-flow
> > +and
> > multi-flow
> > +=====================================================================
> > +====
> > ==========
> > +Description: the packets' order which will pass through a same flow
> > should be guaranteed.
> > +
> > +1. Run the sample with below command:
> > +# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w
> > +F0
> > -s2 -n0 -c32 -W1000 -a -D
> > +
> > +2. Send traffic from ixia device with same 5 tuple(single-link) and
> > +with
> > different 5-tuple(multi-flow)
> > +
> > +3. Observe the packets received by ixia device, ensure packets in
> > +each
> > *flow* remain in order, but note that flows may be re-ordered compared
> > to eachother.
> > +
> > +
> > +Test Case 3: Check load-balance behavior with atomic type in
> > +single-flow
> > and multi-flow situations
> > +=====================================================================
> > +====
> > =========================
> > +Description: In multi-flow situation, sample should have a good load-
> > blanced behavior; in single-flow, the load-balanced behavior is not
> > guaranteed;
> > +
> > +1. Run the sample with below command:
> > +# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w
> > +F0
> > -s1 -n0 -c32 -W1000 -a -D
> > +
> > +2. Use traffic generator to send huge number of packets:
> > +In single-flow situation, traffic generator will send packets with
> > +the
> > same 5-tuple which is used to calculate rss value;
> > +In multi-flow situation, traffice generator will send packets with
> > different 5-tuple;
> > +
> > +3. Check the load-balance bahavior by the workload of every worker.
> > +
> > +Test Case 4: Check load-balance behavior with order type stage in
> > +single-
> > flow and multi-flow situations
> > +=====================================================================
> > +====
> > ==============================
> > +Description: A good load-balanced behavior should be guaranteed in
> > +both
> > single-flow and multi-flow situations.
> > +
> > +1. Run the sample with below command:
> > +# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w
> > +F0
> > -s1 -n0 -c32 -W1000 -o -D
> > +
> > +2. Use traffic generator to send huge number of packets:
> > +In single-flow situation, traffic generator will send packets with
> > +the
> > same 5-tuple which is used to calculate rss value;
> > +In multi-flow situation, traffice generator will send packets with
> > different 5-tuple;
> > +
> > +3. Check the load-balance bahavior by the workload of every worker.
> > +
> > +Test Case 5: Check load-balance behavior with parallel type stage in
> > single-flow and multi-flow situations
> > +=====================================================================
> > +====
> > =================================
> > +Description: A good load-balanced behavior should be guaranteed in
> > +both
> > single-flow and multi-flow situations.
> > +
> > +1. Run the sample with below command:
> > +# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w
> > +F0
> > -s1 -n0 -c32 -W1000 -p -D
> > +
> > +2. Use traffic generator to send huge number of packets:
> > +In single-flow situation, traffic generator will send packets with
> > +the
> > same 5-tuple which is used to calculate rss value;
> > +In multi-flow situation, traffic generator will send packets with
> > different 5-tuple;
> > +
> > +3. Check the load-balance bahavior by the workload of every worker.
> > +
> > +Test Case 6: Performance test for atomic type of stage
> > +======================================================
> > +Description: Execute performance test with atomic type of stage in
> > single-flow and multi-flow situation.
> > +We use 4 worker and 2 stage as the test background.
> > +
> > +1. Run the sample with below command:
> > +# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w
> > +F0
> > -s1 -n0 -c32
> > +
> > +2. use traffic generator to send huge number of packets(with same
> > +5-tuple
> > and different 5-tuple)
> > +
> > +3. observe the speed of packets received.
> > +
> > +Test Case 7: Performance test for parallel type of stage
> > +========================================================
> > +Description: Execute performance test with atomic type of stage in
> > single-flow and multi-flow situation.
> > +We use 4 worker and 2 stage as the test background.
> > +
> > +1. Run the sample with below command:
> > +# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w
> > +F0
> > -s1 -n0 -c32
> > +
> > +2. use traffic generator to send huge number of packets(with same
> > +5-tuple
> > and different 5-tuple)
> > +
> > +3. observe the speed of packets received.
> > +
> > +Test Case 8: Performance test for ordered type of stage
> > +=======================================================
> > +Description: Execute performance test with atomic type of stage in
> > single-flow and multi-flow situation.
> > +We use 4 worker and 2 stage as the test background.
> > +
> > +1. Run the sample with below command:
> > +# ./build/eventdev_pipeline_sw_pmd --vdev event_sw0 -- -r2 -t4 -e8 -w
> > +F0
> > -s1 -n0 -c32
> > +
> > +2. use traffic generator to send huge number of packets(with same
> > +5-tuple
> > and different 5-tuple)
> > +
> > +3. observe the speed of packets received.
> > \ No newline at end of file
> > --
> > 2.14.1.windows.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-11-10  5:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-02 14:53 [dts] [PATCH V1] Add sw eventdev test plan Yuwei Zhang
2017-11-10  5:36 ` Liu, Yong
2017-11-10  5:40   ` Zhang, Yuwei1
2017-11-10  5:46     ` Liu, Yong

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).