Skip to content

Commit 8a2eb36

Browse files
committed
scripts: add new parameters to testing scripts
1 parent 2f72cc3 commit 8a2eb36

1 file changed

Lines changed: 33 additions & 5 deletions

File tree

script/start_Discovery-3FLP-3EPN.sh.in

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,10 @@ STF_BUILDER+=" $CHECKRDH"
124124
STF_BUILDER+=" --io-threads $IO_THREADS"
125125
STF_BUILDER+=" --detector $DETECTOR"
126126
STF_BUILDER+=" --detector-rdh 4"
127-
STF_BUILDER+=" --monitoring-rate=1.0"
127+
STF_BUILDER+=" --monitoring-interval=1.0"
128128
STF_BUILDER+=" --monitoring-log"
129+
STF_BUILDER+=" --discovery-partition=$PARTITION"
130+
# STF_BUILDER+=" --run-type=topology"
129131

130132
if [[ ! -z $STF_BUILDER_DPL_CHAN ]]; then
131133
STF_BUILDER+=" --dpl-channel-name=$STF_BUILDER_DPL_CHAN"
@@ -147,15 +149,16 @@ STF_SENDER="StfSender"
147149
STF_SENDER+=" --discovery-net-if=$FLP_NETIF"
148150
STF_SENDER+=" --discovery-partition=$PARTITION"
149151
STF_SENDER+=" --mq-config $chainConfig"
150-
STF_SENDER+=" --monitoring-rate=5.0"
152+
STF_SENDER+=" --monitoring-interval=2.0"
151153
STF_SENDER+=" --monitoring-log"
152154

153155
TF_BUILDER="TfBuilder"
154156
TF_BUILDER+=" --discovery-net-if=$EPN_NETIF"
155157
TF_BUILDER+=" --discovery-partition=$PARTITION"
156158
TF_BUILDER+=" --mq-config $chainConfig"
157-
TF_BUILDER+=" --monitoring-rate=1.0"
159+
TF_BUILDER+=" --monitoring-interval=5.0"
158160
TF_BUILDER+=" --monitoring-log"
161+
TF_BUILDER+=" --stand-alone"
159162

160163
if [[ ! -z $TF_BUILDER_DPL_CHAN ]]; then
161164
TF_BUILDER+=" --dpl-channel-name=$TF_BUILDER_DPL_CHAN"
@@ -175,6 +178,8 @@ fi
175178

176179
TF_SCHEDULER="TfScheduler"
177180
TF_SCHEDULER+=" --discovery-net-if=$EPN_NETIF"
181+
TF_SCHEDULER+=" --monitoring-interval=2.0"
182+
TF_SCHEDULER+=" --monitoring-log"
178183

179184
echo "$STF_BUILDER"
180185
echo "$STF_SENDER"
@@ -239,10 +244,33 @@ else
239244
split-window \
240245
"source $ENV_VAR_FILE; numactl --interleave=all $TF_BUILDER --id tf_builder-0 --discovery-id=epn0 --session epn-s0; read" \; \
241246
select-layout even-horizontal
247+
fi
248+
249+
if [[ $FLP_CNT -gt 1 ]]; then
250+
FLP_ID_LIST+=";flp1"
251+
tmux -CC \
252+
new-window \
253+
"source $ENV_VAR_FILE; $READOUT $READOUT_PARAM_1; read" \; \
254+
split-window \
255+
"source $ENV_VAR_FILE; $STF_BUILDER --id stf_builder-1 --session flp-s1; read" \; \
256+
split-window \
257+
"source $ENV_VAR_FILE; $STF_SENDER --id stf_sender-1 --discovery-id=flp1 --session flp-s1; read" \; \
258+
select-layout even-horizontal
259+
fi
242260

243-
sleep 2
244-
rm "$ENV_VAR_FILE"
261+
# NOTE: does not work with the updated configuration
262+
# cat $ENV_VAR_FILE
263+
if [[ $EPN_CNT -gt 1 ]]; then
264+
tmux -CC \
265+
split-window \
266+
"source $ENV_VAR_FILE; numactl --interleave=all $TF_BUILDER --id tf_builder-1 --discovery-id=epn1 --session epn-s1; read" \; \
267+
select-layout even-horizontal
268+
269+
# "source $ENV_VAR_FILE; numactl --interleave=all gdb --args $TF_BUILDER --id tf_builder-1 --discovery-id=epn1 --session epn-s1; read" \; \
245270
fi
271+
272+
sleep 2
273+
rm "$ENV_VAR_FILE"
246274
fi
247275

248276

0 commit comments

Comments
 (0)