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