FIX: VXLAN scale
[csit.git] / tests / vpp / perf / tcp / 2n1l-10ge2p1x710-eth-ip4tcphttp-wrk8u8c50con-rps.robot
1 # Copyright (c) 2019 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:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
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.
13
14 *** Settings ***
15
16 | Library  | resources.tools.wrk.wrk
17 | Resource | resources/libraries/robot/wrk/wrk_utils.robot
18 | Resource | resources/libraries/robot/shared/default.robot
19 | Resource | resources/libraries/robot/tcp/tcp_setup.robot
20 |
21 | Force Tags | 2_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV
22 | ... | HTTP | TCP | TCP_RPS | NIC_Intel-X710 | DRV_VFIO_PCI
23 |
24 | Suite Setup | Setup suite single link | wrk
25 | Suite Teardown | Tear down suite
26 | Test Setup | Setup test
27 | Test Teardown | Tear down test
28 |
29 | Test Template | Local template
30 |
31 | Documentation | *HTTP requests per seconds.*
32 |
33 | ... | *[Top] Network Topologies:* TG-DUT-TG 2-node topology
34 | ... | with single link between nodes.
35 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4-TCP-HTTP for TCP Host Stack
36 | ... | *[Cfg] DUT configuration:*
37 | ... | *[Ver] TG verification:*
38 | ... | *[Ref] Applicable standard specifications:*
39
40 *** Variables ***
41 | @{plugins_to_enable}= | dpdk_plugin.so | http_static_plugin.so
42 | ... | hs_apps_plugin.so
43 | ${crypto_type}= | ${None}
44 | ${nic_name}= | Intel-X710
45 | ${nic_driver}= | vfio-pci
46 | ${traffic_profile}= | wrk-sf-2n-ethip4tcphttp-8u8c50con-rps
47 | ${http_static_plugin}= | ${true}
48
49 *** Keywords ***
50 | Local template
51 | | [Arguments] | ${phy_cores} | ${rxq}=${None}
52 | |
53 | | Given Set Max Rate And Jumbo
54 | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq}
55 | | And Pre-initialize layer driver | ${nic_driver}
56 | | FOR | ${dut} | IN | @{duts}
57 | | | Import Library | resources.libraries.python.VppConfigGenerator
58 | | | ... | WITH NAME | ${dut}
59 | | | Run keyword | ${dut}.Add api segment global size | 2G
60 | | | Run keyword | ${dut}.Add api segment api size | 1G
61 | | | Run keyword | ${dut}.Add TCP preallocated connections | 1000000
62 | | | Run keyword | ${dut}.Add TCP preallocated half open connections | 1000000
63 | | | Run keyword | ${dut}.Add session event queue length | 1000000
64 | | | Run keyword | ${dut}.Add session preallocated sessions | 1000000
65 | | | Run keyword | ${dut}.Add session v4 session table buckets | 500000
66 | | | Run keyword | ${dut}.Add session v4 session table memory | 1g
67 | | | Run keyword | ${dut}.Add session v4 halfopen table buckets | 2500000
68 | | | Run keyword | ${dut}.Add session v4 halfopen table memory | 3g
69 | | | Run keyword | ${dut}.Add session local endpoints table buckets | 2500000
70 | | | Run keyword | ${dut}.Add session local endpoints table memory | 3g
71 | | END
72 | | And Apply startup configuration on all VPP DUTs
73 | | When Initialize layer driver | ${nic_driver}
74 | | And Initialize layer interface
75 | | And Set up HTTP server with parameters on the VPP node
76 | | ... | ${http_static_plugin} | 500000 | 4 | 4000m
77 | | Then Measure requests per second | ${traffic_profile}
78
79 *** Test Cases ***
80 | tc01-IMIX-1c-eth-ip4tcphttp-wrk8u8c50con-rps
81 | | [Tags] | 1C
82 | | phy_cores=${1}
83
84 | tc02-IMIX-2c-eth-ip4tcphttp-wrk8u8c50con-rps
85 | | [Tags] | 2C
86 | | phy_cores=${2}
87
88 | tc03-IMIX-4c-eth-ip4tcphttp-wrk8u8c50con-rps
89 | | [Tags] | 4C
90 | | phy_cores=${4}