2182a00cd8f42f381a4cd9da6dbcc116a8a4a0f0
[csit.git] / docs / report / testpmd_performance_tests / overview.rst
1 Overview
2 ========
3
4 Tested Physical Topologies
5 --------------------------
6
7 CSIT Testpmd performance tests are executed on physical baremetal servers hosted
8 by LF FD.io project. Testbed physical topology is shown in the figure below.
9
10 ::
11
12     +------------------------+           +------------------------+
13     |                        |           |                        |
14     |  +------------------+  |           |  +------------------+  |
15     |  |                  |  |           |  |                  |  |
16     |  |                  <----------------->                  |  |
17     |  |       DUT1       |  |           |  |       DUT2       |  |
18     |  +--^---------------+  |           |  +---------------^--+  |
19     |     |                  |           |                  |     |
20     |     |            SUT1  |           |  SUT2            |     |
21     +------------------------+           +------------------^-----+
22           |                                                 |
23           |                                                 |
24           |                  +-----------+                  |
25           |                  |           |                  |
26           +------------------>    TG     <------------------+
27                              |           |
28                              +-----------+
29
30 SUT1 and SUT2 are two System Under Test servers (currently Cisco UCS C240,
31 each with two Intel XEON CPUs), TG is a Traffic Generator (TG, currently
32 another Cisco UCS C240, with two Intel XEON CPUs). SUTs run Testpmd SW
33 application in Linux user-mode as a Device Under Test (DUT). TG runs TRex SW
34 application as a packet Traffic Generator. Physical connectivity between SUTs
35 and to TG is provided using direct links (no L2 switches) connecting different
36 NIC models that need to be tested for performance. Currently installed and
37 tested NIC models include:
38
39 #. 2port10GE X520-DA2 Intel.
40 #. 2port10GE X710 Intel.
41 #. 2port10GE VIC1227 Cisco.
42 #. 2port40GE VIC1385 Cisco.
43 #. 2port40GE XL710 Intel.
44
45 For detailed LF FD.io test bed specification and physical topology please refer to `LF FDio CSIT testbed wiki page <https://wiki.fd.io/view/CSIT/CSIT_LF_testbed>`_.
46
47 Performance Tests Coverage
48 --------------------------
49
50 Performance tests are split into the two main categories:
51
52 - Throughput discovery - discovery of packet forwarding rate using binary search
53   in accordance with RFC2544.
54
55   - NDR - discovery of Non Drop Rate packet throughput, at zero packet loss;
56     followed by packet one-way latency measurements at 10%, 50% and 100% of
57     discovered NDR throughput.
58   - PDR - discovery of Partial Drop Rate, with specified non-zero packet loss
59     currently set to 0.5%; followed by packet one-way latency measurements at
60     100% of discovered PDR throughput.
61
62 - Throughput verification - verification of packet forwarding rate against
63   previously discovered NDR throughput. These tests are currently done against
64   0.9 of reference NDR, with reference rates updated periodically.
65
66 CSIT |release| includes following performance test suites, listed per NIC type:
67
68 - 2port10GE X520-DA2 Intel
69
70   - **L2IntLoop** - L2 Interface Loop forwarding any Ethernet frames between
71     two Interfaces.
72
73 - 2port40GE XL710 Intel
74
75   - **L2IntLoop** - L2 Interface Loop forwarding any Ethernet frames between
76     two Interfaces.
77
78 Execution of performance tests takes time, especially the throughput discovery
79 tests. Due to limited HW testbed resources available within FD.io labs hosted
80 by Linux Foundation, the number of tests for NICs other than X520 (a.k.a.
81 Niantic) has been limited to few baseline tests. Over time we expect the HW
82 testbed resources to grow, and will be adding complete set of performance
83 tests for all models of hardware to be executed regularly and(or)
84 continuously.
85
86 Methodology: Multi-Thread and Multi-Core
87 ----------------------------------------
88
89 **HyperThreading** - CSIT |release| performance tests are executed with SUT
90 servers' Intel XEON CPUs configured in HyperThreading Disabled mode (BIOS
91 settings). This is the simplest configuration used to establish baseline
92 single-thread single-core SW packet processing and forwarding performance.
93 Subsequent releases of CSIT will add performance tests with Intel
94 HyperThreading Enabled (requires BIOS settings change and hard reboot).
95
96 **Multi-core Test** - CSIT |release| multi-core tests are executed in the
97 following Testpmd thread and core configurations:
98
99 #. 1t1c - 1 Testpmd pmd thread on 1 CPU physical core.
100 #. 2t2c - 2 Testpmd pmd threads on 2 CPU physical cores.
101
102 Note that in many tests running Testpmd reaches tested NIC I/O bandwidth
103 or packets-per-second limit.
104
105 Methodology: Packet Throughput
106 ------------------------------
107
108 Following values are measured and reported for packet throughput tests:
109
110 - NDR binary search per RFC2544:
111
112   - Packet rate: "RATE: <aggregate packet rate in packets-per-second> pps
113     (2x <per direction packets-per-second>)"
114   - Aggregate bandwidth: "BANDWIDTH: <aggregate bandwidth in Gigabits per
115     second> Gbps (untagged)"
116
117 - PDR binary search per RFC2544:
118
119   - Packet rate: "RATE: <aggregate packet rate in packets-per-second> pps (2x
120     <per direction packets-per-second>)"
121   - Aggregate bandwidth: "BANDWIDTH: <aggregate bandwidth in Gigabits per
122     second> Gbps (untagged)"
123   - Packet loss tolerance: "LOSS_ACCEPTANCE <accepted percentage of packets
124     lost at PDR rate>""
125
126 - NDR and PDR are measured for the following L2 frame sizes:
127
128   - IPv4: 64B, 1518B, 9000B.
129
130
131 Methodology: Packet Latency
132 ---------------------------
133
134 TRex Traffic Generator (TG) is used for measuring latency of Testpmd DUTs.
135 Reported latency values are measured using following methodology:
136
137 - Latency tests are performed at 10%, 50% of discovered NDR rate (non drop rate)
138   for each NDR throughput test and packet size (except IMIX).
139 - TG sends dedicated latency streams, one per direction, each at the rate of
140   10kpps at the prescribed packet size; these are sent in addition to the main
141   load streams.
142 - TG reports min/avg/max latency values per stream direction, hence two sets
143   of latency values are reported per test case; future release of TRex is
144   expected to report latency percentiles.
145 - Reported latency values are aggregate across two SUTs due to three node
146   topology used for all performance tests; for per SUT latency, reported value
147   should be divided by two.
148 - 1usec is the measurement accuracy advertised by TRex TG for the setup used in
149   FD.io labs used by CSIT project.
150 - TRex setup introduces an always-on error of about 2*2usec per latency flow -
151   additonal Tx/Rx interface latency induced by TRex SW writing and reading
152   packet timestamps on CPU cores without HW acceleration on NICs closer to the
153   interface line.