-
Notifications
You must be signed in to change notification settings - Fork 0
/
cleanUpScript
executable file
·37 lines (33 loc) · 1.1 KB
/
cleanUpScript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Script to launch series of perf tests
# - on 2 to maxnumber machines
# - with the size listed in listsize
# The machines used are listed in hostnames
# It is also possible to specify the following parameters
# - ntr (number of trains)
# - warmup
# - measurement
# - cooldown
# - sleepAfterCooldown
#
# Each test generates 2 or more file (depending on the number of
# participants to the protocol) named for instance
# perf_cooldown_10_measurement_600_number_5_ntr_2_size_7000_warmup_300_concernedHost
##########################################
# Parameters of the different tests
##########################################
# Array of hostnames on which to launch the test
# WARNING : if hostnames does not contain any localhost, then in the following ficname definition,
# take off final '_'$i
hostnames=('b313-01' 'b313-02' 'b313-03' 'b313-05' 'b313-07')
maxnumber=5
for ((number=0; number<$maxnumber; number+=1))
do
cmd=""
dist="\"killall clients_sim\""
cmd="$cmd (ssh ${hostnames[$number]} $dist &);"
# we launch the test
echo -e "$cmd\n"
eval "$cmd"
done
killall server_sim