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