-
Notifications
You must be signed in to change notification settings - Fork 4
/
run_pFabric.sh
executable file
·74 lines (66 loc) · 2.1 KB
/
run_pFabric.sh
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/bin/bash
# Vary the random number generators run
# --RngRun=1
# NS_GLOBAL_VALUE="RngRun=1"
if [ $# -ne 1 ] ; then
echo "Usage: $0 <init_run>"
exit 1
fi
init_run=$1
trap "kill 0; exit 0" SIGINT SIGTERM EXIT
function spawn_sim {
for (( run=$init_run; run<$(($init_run + 500)); run++ ))
do
RunValue="RngRun="$run
#echo $RunValue
export NS_GLOBAL_VALUE=$RunValue
ulimit -Sv 750000 # 1.5GB memory limit
#echo $1
time ./waf --run "$1 --simprefix=$2"
done
}
# Packet Spray Lossless Red TCP
spawn_sim "scratch/pFabric_sim --pktspray=1" PktSprayPFabric &
while true
do
sleep 10
done
# PacketSpray Lossless Large CWND TCP
#spawn_sim "scratch/oldi_sim --pktspray=1 --dctcp=1 --lossless=1 --initCwnd=200 --noSlowStart=1 PacketSprayLosslessLCwndDctcp" &
#for (( run=$init_run; run<$(($init_run + 200)); run++ ))
#do
# RunValue="RngRun="$run
# echo $RunValue
# export NS_GLOBAL_VALUE=$RunValue
#
# # Normal TCP
# time ./waf --run "scratch/oldi_sim VanillaTcp"
#
# # Lossless Normal TCP
# time ./waf --run "scratch/oldi_sim --lossless=1 LosslessVanillaTcp"
#
# # Large CWND TCP
# time ./waf --run "scratch/oldi_sim --initCwnd=200 --noSlowStart=1 LCwndTcp"
#
# # Lossless Large CWND TCP
# time ./waf --run "scratch/oldi_sim --lossless=1 --initCwnd=200 --noSlowStart=1 LosslessLCwndTcp"
#
# # DCTCP
# time ./waf --run "scratch/oldi_sim --dctcp=1 Dctcp"
#
# # Lossless DCTCP
# time ./waf --run "scratch/oldi_sim --dctcp=1 --lossless=1 LosslessDctcp"
#
# # Large CWND DCTCP
# time ./waf --run "scratch/oldi_sim --dctcp=1 --initCwnd=200 --noSlowStart=1 LCwndDctcp"
#
# # Lossless Large CWND TCP
# time ./waf --run "scratch/oldi_sim --dctcp=1 --lossless=1 --initCwnd=200 --noSlowStart=1 LosslessLCwndDctcp"
#
# # Lossless Medium CWND TCP
# time ./waf --run "scratch/oldi_sim --dctcp=1 --lossless=1 --initCwnd=100 LosslessMCwndDctcp"
#
# # PacketSpray Lossless Large CWND TCP
# time ./waf --run "scratch/oldi_sim --pktspray=1 --dctcp=1 --lossless=1 --initCwnd=200 --noSlowStart=1 PacketSprayLosslessLCwndDctcp"
#
#done