1 # Copyright (c) 2018 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
6 # http://www.apache.org/licenses/LICENSE-2.0
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
16 | Library | resources.tools.wrk.wrk
17 | Resource | resources/libraries/robot/wrk/wrk_utils.robot
18 | Resource | resources/libraries/robot/performance/performance_setup.robot
19 | Resource | resources/libraries/robot/tcp/tcp_setup.robot
21 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | HTTP | TCP
23 | Suite Setup | Set up 3-node performance topology with wrk and DUT's NIC model
26 | Test Setup | Set up tcp performance test
27 | Test Teardown | Tear down performance test with wrk
29 | Documentation | *HTTP requests per seconds, connections per seconds and
30 | ... | throughput measurement.*
32 | ... | *[Top] Network Topologies:* TG-DUT-TG 2-node topology
33 | ... | with single link between nodes.
34 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for IPv4 routing.
35 | ... | *[Cfg] DUT configuration:*
36 | ... | *[Ver] TG verification:*
37 | ... | *[Ref] Applicable standard specifications:*
40 | Measure throughput or rps or cps
41 | | [Arguments] | ${traffic_profile} | ${wt} | ${rxq} | ${test_type}
43 | | Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
44 | | Add PCI devices to DUTs in 3-node single link topology
45 | | ${duts}= | Get Matches | ${nodes} | DUT*
46 | | :FOR | ${dut} | IN | @{duts}
47 | | | Import Library | resources.libraries.python.VppConfigGenerator
48 | | | ... | WITH NAME | ${dut}
49 | | | Run keyword | ${dut}.Add api segment global size | 2G
50 | | | Run keyword | ${dut}.Add api segment api size | 1G
51 | | | Run keyword | ${dut}.Add TCP preallocated connections | 1000000
52 | | | Run keyword | ${dut}.Add TCP preallocated half open connections | 1000000
53 | | | Run keyword | ${dut}.Add session event queue length | 1000000
54 | | | Run keyword | ${dut}.Add session preallocated sessions | 1000000
55 | | | Run keyword | ${dut}.Add session v4 session table buckets | 500000
56 | | | Run keyword | ${dut}.Add session v4 session table memory | 1g
57 | | | Run keyword | ${dut}.Add session v4 halfopen table buckets | 2500000
58 | | | Run keyword | ${dut}.Add session v4 halfopen table memory | 3g
59 | | | Run keyword | ${dut}.Add session local endpoints table buckets | 2500000
60 | | | Run keyword | ${dut}.Add session local endpoints table memory | 3g
61 | | Apply startup configuration on all VPP DUTs
62 | | Run Keyword If | '${test_type}' == 'bw'
63 | | ... | Run keywords
64 | | ... | Set up HTTP server with paramters on the VPP node
65 | | ... | 500000 | 4 | 4000m | AND
66 | | ... | Measure throughput | ${traffic_profile}
67 | | ... | ELSE IF | '${test_type}' == 'rps'
68 | | ... | Run keywords
69 | | ... | Set up HTTP server with paramters on the VPP node
70 | | ... | 500000 | 4 | 4000m | AND
71 | | ... | Measure requests per second | ${traffic_profile}
72 | | ... | ELSE IF | '${test_type}' == 'cps'
73 | | ... | Run keywords
74 | | ... | Set up HTTP server with paramters on the VPP node
75 | | ... | 31000 | 64 | 4000m | AND
76 | | ... | Measure connections per second | ${traffic_profile}
79 | tc01-1t1c-ethip4tcphttp-httpserver-cps
81 | | ... | Measure number of connections per second using wrk.
83 | | [Tags] | 1T1C | TCP_CPS
85 | | [Template] | Measure throughput or rps or cps
86 | | traffic_profile=wrk-sf-2n-ethip4tcphttp-8u8c50con-cps | wt=1 | rxq=1
87 | | ... | test_type=cps
89 | tc02-2t2c-ethip4tcphttp-httpserver-cps
91 | | ... | Measure number of connections per second using wrk.
93 | | [Tags] | 2T2C | TCP_CPS
95 | | [Template] | Measure throughput or rps or cps
96 | | traffic_profile=wrk-sf-2n-ethip4tcphttp-8u8c50con-cps | wt=2 | rxq=2
97 | | ... | test_type=cps
99 | tc03-4t4c-ethip4tcphttp-httpserver-cps
101 | | ... | Measure number of connections per second using wrk.
103 | | [Tags] | 4T4C | TCP_CPS
105 | | [Template] | Measure throughput or rps or cps
106 | | traffic_profile=wrk-sf-2n-ethip4tcphttp-8u8c50con-cps | wt=4 | rxq=4
107 | | ... | test_type=cps
109 | tc04-1t1c-ethip4tcphttp-httpserver-rps
111 | | ... | Measure and report number of requests per second using wrk.
113 | | [Tags] | 1T1C | TCP_RPS
115 | | [Template] | Measure throughput or rps or cps
116 | | traffic_profile=wrk-sf-2n-ethip4tcphttp-8u8c50con-rps | wt=1 | rxq=1
117 | | ... | test_type=rps
119 | tc05-2t2c-ethip4tcphttp-httpserver-rps
121 | | ... | Measure and report number of requests per second using wrk.
123 | | [Tags] | 2T2C | TCP_RPS
125 | | [Template] | Measure throughput or rps or cps
126 | | traffic_profile=wrk-sf-2n-ethip4tcphttp-8u8c50con-rps | wt=2 | rxq=2
127 | | ... | test_type=rps
129 | tc06-4t4c-ethip4tcphttp-httpserver-rps
131 | | ... | Measure and report number of requests per second using wrk.
133 | | [Tags] | 4T4C | TCP_RPS
135 | | [Template] | Measure throughput or rps or cps
136 | | traffic_profile=wrk-sf-2n-ethip4tcphttp-8u8c50con-rps | wt=4 | rxq=4
137 | | ... | test_type=rps