bugfix: Fix failure caused by unset locale
[vswitchperf.git] / conf / 01_testcases.conf
1 # Copyright 2015 Intel Corporation.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #   http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 # This file describes a list of testcases.  Each testcase is described as a
16 # dictionary in a list of dictionaries.
17 #
18 # The dictionary keys, their meanings and available values are:
19 #
20 # "Name": "phy2phy_burst",         # A human-readable string identifying the
21 #                                  # test.
22 # "Traffic Type": "rfc2544",       # One of the supported traffic types.
23 # "Deployment": "p2p",             # One of the supported deployment scenarios.
24 # "Description": "Lorem ipsum..."  # Optional. A human-readable string
25 #                                  # describing the test.
26 # "Frame Modification": "vlan"     # One of the supported frame modifications:
27 #                                  # vlan, mpls, mac, dscp, ttl, ip_addr,
28 #                                  # ip_port.
29 # "biDirectional": [true|false],   # Specifies if genearted traffic will be
30 #                                  # full-duplex (true) or half-duplex (false)
31 # "MultiStream": 0-65535           # Optional. Defines number of flows simulated
32 #                                  # by traffic generator. Value 0 disables
33 #                                  # MultiStream feature
34 #                                  # It can be overridden by cli option multistream.
35 # "Stream Type": ["L2"|"L3"|"L4"]  # Optional. Stream Type is an extension
36 #                                  # of the "MultiStream" feature. If MultiStream
37 #                                  # is disabled, then Stream Type will be ignored.
38 #                                  # Stream Type defines ISO OSI network layer
39 #                                  # used for simulation of multiple streams.
40 #                                  # It can be overridden by cli option stream_type.
41 #                                  # Values:
42 #                                  #    "L2" - iteration of destination MAC address
43 #                                  #    "L3" - iteration of destination IP address
44 #                                  #    "L4" - iteration of destination UDP port
45 #                                  # Default value is "L4".
46 # "Flow Type": ["port"|"IP"]       # Optional. Defines flows complexity. In case
47 #                                  # it isn't specified, then "port" will be used.
48 #                                  # Values:
49 #                                  #    "port" - flow is defined by ingress ports
50 #                                  #    "IP"   - flow is defined by ingress ports
51 #                                  #             and src and dst IP addresses
52 # "iLoad": 0-100                   # Optional. Defines desired percentage
53 #                                  # of frame rate used during continuous stream
54 #                                  # tests. Can be overridden by cli option
55 #                                  # iload.
56 # "Load": dictionary               # Optional. Configures background load
57 #                                  # during testcase execution.
58 #   Description of "Load" dictionary keys, their meanings and available values:
59 #
60 #   "tool": "stress"               # One of the supported load generators.
61 #   "load": 0-100                  # percentage of cores which should be
62 #                                  # utilized by load generator
63 #                                  # e.g. load = 70%, detected cpu cores = 14 =>
64 #                                  # round(14*0.7)=10, i.e. 10 instances of load
65 #                                  # generator will be executed
66 #   "reserved": 0- (Default 0)     # Optional. Defines number of cores reserved
67 #                                  # for vsperf
68 #                                  # e.g. load = 80%, detected cpu cores = 14,
69 #                                  # reserved = 4 => round((14-4)*0.8)=8,
70 #                                  # i.e. 8 load gen. instances will be executed
71 #   "pattern" : "c"                # stress/stress-ng specific; Number of 'c',
72 #                                  # 'm' and 'i' defines ratio between cpu, mem
73 #                                  # and io workers respectively
74 #                                  # e.g. "ccccmmi" => ratio among workers types
75 #                                  # will be 3:2:1, so in case that 12 stress
76 #                                  # instances should be executed, then 6 cpu,
77 #                                  # 4 memory and 2 io workers will be executed
78 #   "load_memory": 0-100           # Optional. Defines percentage of the system
79 #                                  # memory, which should be utilized by memory
80 #                                  # workers (if they are part of "pattern").
81 #                                  # if not specified then default stress(-ng)
82 #                                  # value will be used
83 #   "options": ""                  # Optional. Additional command line options
84 #                                  # to be passed to the load generator.
85 # "Test Modifier": [FrameMod|Other],
86 # "Dependency": [Test_Case_Name |None],
87
88 PERFORMANCE_TESTS = [
89     {
90         "Name": "phy2phy_tput",
91         "Traffic Type": "rfc2544",
92         "Deployment": "p2p",
93         "biDirectional": "True",
94         "Description": "LTD.Throughput.RFC2544.PacketLossRatio",
95     },
96     {
97         "Name": "back2back",
98         "Traffic Type": "back2back",
99         "Deployment": "p2p",
100         "biDirectional": "True",
101         "Description": "LTD.Throughput.RFC2544.BackToBackFrames",
102     },
103     {
104         "Name": "phy2phy_tput_mod_vlan",
105         "Traffic Type": "rfc2544",
106         "Deployment": "p2p",
107         "Frame Modification": "vlan",
108         "biDirectional": "False",
109         "Description": "LTD.Throughput.RFC2544.PacketLossRatioFrameModification"
110     },
111     {
112         "Name": "phy2phy_cont",
113         "Traffic Type": "continuous",
114         "Deployment": "p2p",
115         "Description": "Phy2Phy Continuous Stream",
116         "biDirectional": "True",
117         "iLoad": "90",
118     },
119     {
120         "Name": "pvp_cont",
121         "Traffic Type": "continuous",
122         "Deployment": "pvp",
123         "Description": "PVP Continuous Stream",
124         "biDirectional": "True",
125         "iLoad": "90",
126     },
127     {
128         "Name": "pvvp_cont",
129         "Traffic Type": "continuous",
130         "Deployment": "pvvp",
131         "Description": "PVVP Continuous Stream",
132         "biDirectional": "True",
133         "iLoad": "90",
134     },
135     {
136         "Name": "phy2phy_scalability",
137         "Traffic Type": "rfc2544",
138         "Deployment": "p2p",
139         "biDirectional": "True",
140         "Description": "LTD.Scalability.RFC2544.0PacketLoss",
141         "MultiStream": "8000",
142     },
143     {
144         "Name": "pvp_tput",
145         "Traffic Type": "rfc2544",
146         "Deployment": "pvp",
147         "Description": "LTD.Throughput.RFC2544.PacketLossRatio",
148         "biDirectional": "True",
149     },
150     {
151         "Name": "pvp_back2back",
152         "Traffic Type": "back2back",
153         "Deployment": "pvp",
154         "Description": "LTD.Throughput.RFC2544.BackToBackFrames",
155         "biDirectional": "True",
156     },
157     {
158         "Name": "pvvp_tput",
159         "Traffic Type": "rfc2544",
160         "Collector": "cpu",
161         "Deployment": "pvvp",
162         "Description": "LTD.Throughput.RFC2544.PacketLossRatio",
163         "biDirectional": "True",
164     },
165     {
166         "Name": "pvvp_back2back",
167         "Traffic Type": "back2back",
168         "Collector": "cpu",
169         "Deployment": "pvvp",
170         "Description": "LTD.Throughput.RFC2544.BackToBackFrames",
171         "biDirectional": "True",
172     },
173     {
174         "Name": "phy2phy_cpu_load",
175         "Traffic Type": "rfc2544",
176         "Deployment": "p2p",
177         "biDirectional": "True",
178         "Description": "LTD.CPU.RFC2544.0PacketLoss",
179         "Load" : {
180             "tool" : "stress-ng",
181             "load" : 100,
182             "reserved" : 4,
183             "pattern" : "c",
184         }
185     },
186     {
187         "Name": "phy2phy_mem_load",
188         "Traffic Type": "rfc2544",
189         "Deployment": "p2p",
190         "biDirectional": "True",
191         "Description": "LTD.Memory.RFC2544.0PacketLoss",
192         "Load" : {
193             "tool" : "stress-ng",
194             "load" : 50,
195             "pattern" : "m",
196             "load_memory" : 80,
197         }
198     },
199
200 ]