| 1 |
# -*- mode:conf -*- |
| 2 |
|
| 3 |
# The batch file is parsed as an ini file, and can have three types of sections: |
| 4 |
# commands, batches and args. Each section also has a name. Type and name are |
| 5 |
# separated with two colons. |
| 6 |
# |
| 7 |
# Sections of the same type can inherit from each other. Args are used for the |
| 8 |
# loop facility (explained below). All variables are recursively substituted by |
| 9 |
# using the${varname} syntax. These three operations are resolved in this order |
| 10 |
# (inheritance, arg interpolation and variable substitution). |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
[Batch::power_usage] |
| 15 |
# These are all Flent parameters that correspond to command line options. |
| 16 |
extended_metadata = no |
| 17 |
debug_error = yes |
| 18 |
debug_log = yes |
| 19 |
step_size = 2 |
| 20 |
title = ${batch_title} ncpus:${n_cpus} load:${cpu_load} |
| 21 |
output_path = ${batch_title}-batch-${batch_time} |
| 22 |
length = 120 |
| 23 |
test_name = power_usage |
| 24 |
|
| 25 |
test_parameters= mqtt_topic=shellies/shellyplusplugs-b0b21c129e10/status/switch:0;mqtt_host=mqtt.toke.dk;mqtt_user=cli;mqtt_payload_key=apower;ipmi_host=server-monitor;cpu_stats_hosts=${dut_host};n_cpu_runners=${n_cpus};cpu_load=${cpu_load}; |
| 26 |
remote_hosts= 0=${dut_host} |
| 27 |
|
| 28 |
|
| 29 |
# This is a special variable that specifies things to *append* to the filename |
| 30 |
# Flent generates (based on time etc). The first part of the filename will be |
| 31 |
# the same for every test in a batch, so the idea is to use this variable to |
| 32 |
# disambiguate subsequent test runs (so putting 'repetition' in there is |
| 33 |
# generally a good idea). |
| 34 |
# |
| 35 |
# The 'repetition' variable is another special variable that will get assigned |
| 36 |
# the current repetition for each run. |
| 37 |
n_cpus_prefix = |
| 38 |
filename_extra = ${n_cpus_prefix}${n_cpus}cpu-load${cpu_load}-${repetition} |
| 39 |
|
| 40 |
# This is a special variable that causes the test in the batch to be repeated |
| 41 |
# this many times (setting the ${repetition} variable for each). |
| 42 |
repetitions = 1 |
| 43 |
|
| 44 |
# Special variable - how long to pause after each test run before proceeding to |
| 45 |
# the next one. |
| 46 |
pause = 5 |
| 47 |
|
| 48 |
# These are variables that are used for variable expansion in settings above. |
| 49 |
# The idea is that other batches can override these to change part of the |
| 50 |
# configuration. |
| 51 |
batch_title = power_usage |
| 52 |
dut_host=intelserv |
| 53 |
|
| 54 |
# This is the loop mechanism of the batch facility. Each variable that starts |
| 55 |
# with for_ defines a loop (Flent doesn't care about the part after for_, but |
| 56 |
# they matter when inheriting). The batch will then be repeated for each of the |
| 57 |
# values of this variable. Each value must be defined in the batch file as a |
| 58 |
# heading of type [Arg::name]. The variables in each [Arg] section will then be |
| 59 |
# applied on top of the batch containing the loop before the test run |
| 60 |
# corresponding to that arg. |
| 61 |
# |
| 62 |
# When multiple for_ statements are present, the cross product of all of them |
| 63 |
# will be run. Likewise with repetitions (each arg will be repeated as many |
| 64 |
# times as specified). |
| 65 |
# |
| 66 |
# The example here is used to repeat each test run with different qdiscs. |
| 67 |
for_ncpus = 1cpu, 2cpu, 3cpu, 4cpu, 5cpu, 6cpu, 7cpu, 8cpu, 9cpu, 10cpu, 11cpu, 12cpu, 13cpu, 14cpu, 15cpu, 16cpu, 17cpu, 18cpu, 19cpu, 20cpu, 21cpu, 22cpu, 23cpu, 24cpu, 25cpu, 26cpu, 27cpu, 28cpu, 29cpu, 30cpu, 31cpu, 32cpu, 33cpu, 34cpu, 35cpu, 36cpu |
| 68 |
for_load = load25, load50, load75, load100 |
| 69 |
|
| 70 |
[Arg::1cpu] |
| 71 |
n_cpus = 1 |
| 72 |
n_cpus_prefix = 0 |
| 73 |
|
| 74 |
[Arg::2cpu] |
| 75 |
n_cpus = 2 |
| 76 |
n_cpus_prefix = 0 |
| 77 |
|
| 78 |
[Arg::3cpu] |
| 79 |
n_cpus = 3 |
| 80 |
n_cpus_prefix = 0 |
| 81 |
|
| 82 |
[Arg::4cpu] |
| 83 |
n_cpus = 4 |
| 84 |
n_cpus_prefix = 0 |
| 85 |
|
| 86 |
[Arg::5cpu] |
| 87 |
n_cpus = 5 |
| 88 |
n_cpus_prefix = 0 |
| 89 |
|
| 90 |
[Arg::6cpu] |
| 91 |
n_cpus = 6 |
| 92 |
n_cpus_prefix = 0 |
| 93 |
|
| 94 |
[Arg::7cpu] |
| 95 |
n_cpus = 7 |
| 96 |
n_cpus_prefix = 0 |
| 97 |
|
| 98 |
[Arg::8cpu] |
| 99 |
n_cpus = 8 |
| 100 |
n_cpus_prefix = 0 |
| 101 |
|
| 102 |
[Arg::9cpu] |
| 103 |
n_cpus = 9 |
| 104 |
n_cpus_prefix = 0 |
| 105 |
|
| 106 |
[Arg::10cpu] |
| 107 |
n_cpus = 10 |
| 108 |
|
| 109 |
[Arg::11cpu] |
| 110 |
n_cpus = 11 |
| 111 |
|
| 112 |
[Arg::12cpu] |
| 113 |
n_cpus = 12 |
| 114 |
|
| 115 |
[Arg::13cpu] |
| 116 |
n_cpus = 13 |
| 117 |
|
| 118 |
[Arg::14cpu] |
| 119 |
n_cpus = 14 |
| 120 |
|
| 121 |
[Arg::15cpu] |
| 122 |
n_cpus = 15 |
| 123 |
|
| 124 |
[Arg::16cpu] |
| 125 |
n_cpus = 16 |
| 126 |
|
| 127 |
[Arg::17cpu] |
| 128 |
n_cpus = 17 |
| 129 |
|
| 130 |
[Arg::18cpu] |
| 131 |
n_cpus = 18 |
| 132 |
|
| 133 |
[Arg::19cpu] |
| 134 |
n_cpus = 19 |
| 135 |
|
| 136 |
[Arg::20cpu] |
| 137 |
n_cpus = 20 |
| 138 |
|
| 139 |
[Arg::21cpu] |
| 140 |
n_cpus = 21 |
| 141 |
|
| 142 |
[Arg::22cpu] |
| 143 |
n_cpus = 22 |
| 144 |
|
| 145 |
[Arg::23cpu] |
| 146 |
n_cpus = 23 |
| 147 |
|
| 148 |
[Arg::24cpu] |
| 149 |
n_cpus = 24 |
| 150 |
|
| 151 |
[Arg::25cpu] |
| 152 |
n_cpus = 25 |
| 153 |
|
| 154 |
[Arg::26cpu] |
| 155 |
n_cpus = 26 |
| 156 |
|
| 157 |
[Arg::27cpu] |
| 158 |
n_cpus = 27 |
| 159 |
|
| 160 |
[Arg::28cpu] |
| 161 |
n_cpus = 28 |
| 162 |
|
| 163 |
[Arg::29cpu] |
| 164 |
n_cpus = 29 |
| 165 |
|
| 166 |
[Arg::30cpu] |
| 167 |
n_cpus = 30 |
| 168 |
|
| 169 |
[Arg::31cpu] |
| 170 |
n_cpus = 31 |
| 171 |
|
| 172 |
[Arg::32cpu] |
| 173 |
n_cpus = 32 |
| 174 |
|
| 175 |
[Arg::33cpu] |
| 176 |
n_cpus = 33 |
| 177 |
|
| 178 |
[Arg::34cpu] |
| 179 |
n_cpus = 34 |
| 180 |
|
| 181 |
[Arg::35cpu] |
| 182 |
n_cpus = 35 |
| 183 |
|
| 184 |
[Arg::36cpu] |
| 185 |
n_cpus = 36 |
| 186 |
|
| 187 |
[Arg::load25] |
| 188 |
cpu_load = 25 |
| 189 |
|
| 190 |
[Arg::load50] |
| 191 |
cpu_load = 50 |
| 192 |
|
| 193 |
[Arg::load75] |
| 194 |
cpu_load = 75 |
| 195 |
|
| 196 |
[Arg::load100] |
| 197 |
cpu_load = 100 |