systems directory scripts for Centos7
[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 # "Flow Type": ["port"|"IP"]       # Optional. Defines flows complexity. In case
35 #                                  # it isn't specified, then "port" will be used.
36 #                                  # Values:
37 #                                  #    "port" - flow is defined by ingress ports
38 #                                  #    "IP"   - flow is defined by ingress ports
39 #                                  #             and src and dst IP addresses
40 # "iLoad": 0-100                   # Optional. Defines desired percentage
41 #                                  # of frame rate used during continuous stream
42 #                                  # tests. Can be overridden by cli option
43 #                                  # iload.
44 # "Load": dictionary               # Optional. Configures background load
45 #                                  # during testcase execution.
46 #   Description of "Load" dictionary keys, their meanings and available values:
47 #
48 #   "tool": "stress"               # One of the supported load generators.
49 #   "load": 0-100                  # percentage of cores which should be
50 #                                  # utilized by load generator
51 #                                  # e.g. load = 70%, detected cpu cores = 14 =>
52 #                                  # round(14*0.7)=10, i.e. 10 instances of load
53 #                                  # generator will be executed
54 #   "reserved": 0- (Default 0)     # Optional. Defines number of cores reserved
55 #                                  # for vsperf
56 #                                  # e.g. load = 80%, detected cpu cores = 14,
57 #                                  # reserved = 4 => round((14-4)*0.8)=8,
58 #                                  # i.e. 8 load gen. instances will be executed
59 #   "pattern" : "c"                # stress/stress-ng specific; Number of 'c',
60 #                                  # 'm' and 'i' defines ratio between cpu, mem
61 #                                  # and io workers respectively
62 #                                  # e.g. "ccccmmi" => ratio among workers types
63 #                                  # will be 3:2:1, so in case that 12 stress
64 #                                  # instances should be executed, then 6 cpu,
65 #                                  # 4 memory and 2 io workers will be executed
66 #   "load_memory": 0-100           # Optional. Defines percentage of the system
67 #                                  # memory, which should be utilized by memory
68 #                                  # workers (if they are part of "pattern").
69 #                                  # if not specified then default stress(-ng)
70 #                                  # value will be used
71 #   "options": ""                  # Optional. Additional command line options
72 #                                  # to be passed to the load generator.
73 # "Test Modifier": [FrameMod|Other],
74 # "Dependency": [Test_Case_Name |None],
75
76 PERFORMANCE_TESTS = [
77     {
78         "Name": "phy2phy_tput",
79         "Traffic Type": "rfc2544",
80         "Deployment": "p2p",
81         "biDirectional": "True",
82         "Description": "LTD.Throughput.RFC2544.PacketLossRatio",
83     },
84     {
85         "Name": "back2back",
86         "Traffic Type": "back2back",
87         "Deployment": "p2p",
88         "biDirectional": "True",
89         "Description": "LTD.Throughput.RFC2544.BackToBackFrames",
90     },
91     {
92         "Name": "phy2phy_tput_mod_vlan",
93         "Traffic Type": "rfc2544",
94         "Deployment": "p2p",
95         "Frame Modification": "vlan",
96         "biDirectional": "False",
97         "Description": "LTD.Throughput.RFC2544.PacketLossRatioFrameModification"
98     },
99     {
100         "Name": "phy2phy_cont",
101         "Traffic Type": "continuous",
102         "Deployment": "p2p",
103         "Description": "Phy2Phy Continuous Stream",
104         "biDirectional": "True",
105         "iLoad": "90",
106     },
107     {
108         "Name": "pvp_cont",
109         "Traffic Type": "continuous",
110         "Deployment": "pvp",
111         "Description": "PVP Continuous Stream",
112         "biDirectional": "True",
113         "iLoad": "90",
114     },
115     {
116         "Name": "pvvp_cont",
117         "Traffic Type": "continuous",
118         "Deployment": "pvvp",
119         "Description": "PVVP Continuous Stream",
120         "biDirectional": "True",
121         "iLoad": "90",
122     },
123     {
124         "Name": "phy2phy_scalability",
125         "Traffic Type": "rfc2544",
126         "Deployment": "p2p",
127         "biDirectional": "True",
128         "Description": "LTD.Scalability.RFC2544.0PacketLoss",
129         "MultiStream": "8000",
130     },
131     {
132         "Name": "pvp_tput",
133         "Traffic Type": "rfc2544",
134         "Deployment": "pvp",
135         "Description": "LTD.Throughput.RFC2544.PacketLossRatio",
136         "biDirectional": "True",
137     },
138     {
139         "Name": "pvp_back2back",
140         "Traffic Type": "back2back",
141         "Deployment": "pvp",
142         "Description": "LTD.Throughput.RFC2544.BackToBackFrames",
143         "biDirectional": "True",
144     },
145     {
146         "Name": "pvvp_tput",
147         "Traffic Type": "rfc2544",
148         "Collector": "cpu",
149         "Deployment": "pvvp",
150         "Description": "LTD.Throughput.RFC2544.PacketLossRatio",
151         "biDirectional": "True",
152     },
153     {
154         "Name": "pvvp_back2back",
155         "Traffic Type": "back2back",
156         "Collector": "cpu",
157         "Deployment": "pvvp",
158         "Description": "LTD.Throughput.RFC2544.BackToBackFrames",
159         "biDirectional": "True",
160     },
161     {
162         "Name": "phy2phy_cpu_load",
163         "Traffic Type": "rfc2544",
164         "Deployment": "p2p",
165         "biDirectional": "True",
166         "Description": "LTD.CPU.RFC2544.0PacketLoss",
167         "Load" : {
168             "tool" : "stress-ng",
169             "load" : 100,
170             "reserved" : 4,
171             "pattern" : "c",
172         }
173     },
174     {
175         "Name": "phy2phy_mem_load",
176         "Traffic Type": "rfc2544",
177         "Deployment": "p2p",
178         "biDirectional": "True",
179         "Description": "LTD.Memory.RFC2544.0PacketLoss",
180         "Load" : {
181             "tool" : "stress-ng",
182             "load" : 50,
183             "pattern" : "m",
184             "load_memory" : 80,
185         }
186     },
187
188 ]