doc: describe the new eventdev test application
[dpdk.git] / doc / guides / tools / testeventdev.rst
1 ..  BSD LICENSE
2     Copyright(c) 2017 Cavium. All rights reserved.
3     All rights reserved.
4
5     Redistribution and use in source and binary forms, with or without
6     modification, are permitted provided that the following conditions
7     are met:
8
9     * Redistributions of source code must retain the above copyright
10     notice, this list of conditions and the following disclaimer.
11     * Redistributions in binary form must reproduce the above copyright
12     notice, this list of conditions and the following disclaimer in
13     the documentation and/or other materials provided with the
14     distribution.
15     * Neither the name of Cavium nor the names of its
16     contributors may be used to endorse or promote products derived
17     from this software without specific prior written permission.
18
19     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20     "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21     LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22     A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23     OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24     SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25     LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26     DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27     THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28     (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29     OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
31 dpdk-test-eventdev Application
32 ==============================
33
34 The ``dpdk-test-eventdev`` tool is a Data Plane Development Kit (DPDK)
35 application that allows exercising various eventdev use cases.
36 This application has a generic framework to add new eventdev based test cases to
37 verify functionality and measure the performance parameters of DPDK eventdev
38 devices.
39
40 Compiling the Application
41 -------------------------
42
43 **Build the application**
44
45 Execute the ``dpdk-setup.sh`` script to build the DPDK library together with the
46 ``dpdk-test-eventdev`` application.
47
48 Initially, the user must select a DPDK target to choose the correct target type
49 and compiler options to use when building the libraries.
50 The user must have all libraries, modules, updates and compilers installed
51 in the system prior to this,
52 as described in the earlier chapters in this Getting Started Guide.
53
54 Running the Application
55 -----------------------
56
57 The application has a number of command line options:
58
59 .. code-block:: console
60
61    dpdk-test-eventdev [EAL Options] -- [application options]
62
63 EAL Options
64 ~~~~~~~~~~~
65
66 The following are the EAL command-line options that can be used in conjunction
67 with the ``dpdk-test-eventdev`` application.
68 See the DPDK Getting Started Guides for more information on these options.
69
70 *   ``-c <COREMASK>`` or ``-l <CORELIST>``
71
72         Set the hexadecimal bitmask of the cores to run on. The corelist is a
73         list of cores to use.
74
75 *   ``--vdev <driver><id>``
76
77         Add a virtual eventdev device.
78
79 Application Options
80 ~~~~~~~~~~~~~~~~~~~
81
82 The following are the application command-line options:
83
84 * ``--verbose``
85
86         Set verbose level. Default is 1. Value > 1 displays more details.
87
88 * ``--dev <n>``
89
90         Set the device id of the event device.
91
92 * ``--test <name>``
93
94         Set test name, where ``name`` is one of the following::
95
96          order_queue
97          order_atq
98          perf_queue
99          perf_atq
100
101 * ``--socket_id <n>``
102
103         Set the socket id of the application resources.
104
105 * ``--pool-sz <n>``
106
107         Set the number of mbufs to be allocated from the mempool.
108
109 * ``--slcore <n>``
110
111         Set the scheduler lcore id.(Valid when eventdev is not RTE_EVENT_DEV_CAP_DISTRIBUTED_SCHED capable)
112
113 * ``--plcores <CORELIST>``
114
115         Set the list of cores to be used as producers.
116
117 * ``--wlcores <CORELIST>``
118
119         Set the list of cores to be used as workers.
120
121 * ``--stlist <type_list>``
122
123         Set the scheduled type of each stage where ``type_list`` size
124         determines the number of stages used in the test application.
125         Each type_list member can be one of the following::
126
127             P or p : Parallel schedule type
128             O or o : Ordered schedule type
129             A or a : Atomic schedule type
130
131         Application expects the ``type_list`` in comma separated form (i.e. ``--stlist o,a,a,a``)
132
133 * ``--nb_flows <n>``
134
135         Set the number of flows to produce.
136
137 * ``--nb_pkts <n>``
138
139         Set the number of packets to produce. 0 implies no limit.
140
141 * ``--worker_deq_depth <n>``
142
143         Set the dequeue depth of the worker.
144
145 * ``--fwd_latency``
146
147         Perform forward latency measurement.
148
149 * ``--queue_priority``
150
151         Enable queue priority.
152