-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexecute_bar_plot_simulations.sh
83 lines (81 loc) · 2.35 KB
/
execute_bar_plot_simulations.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
75
76
77
78
79
80
81
82
83
#!/bin/bash
#source ~/.bashrc
#conda activate phdwork
path=psn
trace=fixed_popularity_catalog_50.pkl
mkdir res
mkdir res/$path
for graph in balanced_tree erdos_renyi balanced_tree hypercube geant abilene dtelekom; do
for cache in TBGRD ; do
if [ $cache == 'EWMAGRAD' ]; then
for param in .005 .01 .05 .1; do
echo python CacheNetwork.py res/$path/$path \
--graph_type $graph \
--cache_type $cache \
--graph_size 100 \
--min_capacity 1 \
--max_capacity 5 \
--query_nodes 5 \
--catalog_size 50 \
--demand_size 200 \
--min_weight 0 \
--max_weight 100 \
--time 1000 \
--beta $param \
--trace_location traces/$trace &
done
elif [ $cache == 'LMIN' ]; then
for param in .005 .01 .05 .1 .5 1 2 5; do
echo python CacheNetwork.py res/$path/$path \
--graph_type $graph \
--cache_type $cache \
--graph_size 100 \
--min_capacity 1 \
--max_capacity 5 \
--query_nodes 5 \
--catalog_size 50 \
--demand_size 200 \
--min_weight 0 \
--max_weight 100 \
--time 1000 \
--gamma $param \
--trace_location traces/$trace &
done
elif [ $cache == 'TBGRD' ]; then
for freq in -1; do
for param in .0001 .0005 .001 .005 .01 .05 .1; do
echo python CacheNetwork.py res/$path/$path \
--graph_type $graph \
--cache_type $cache \
--graph_size 100 \
--min_capacity 1 \
--max_capacity 5 \
--query_nodes 5 \
--catalog_size 50 \
--demand_size 200 \
--min_weight 0 \
--max_weight 100 \
--time 1000 \
--action_selector_eta $param \
--frequency $freq \
--trace_location traces/$trace &
done
done
else
echo python CacheNetwork.py res/$path/$path \
--graph_type $graph \
--cache_type $cache \
--graph_size 100 \
--min_capacity 1 \
--max_capacity 5 \
--query_nodes 5 \
--catalog_size 50 \
--demand_size 200 \
--min_weight 0 \
--max_weight 100 \
--time 1000 \
--trace_location traces/$trace &
fi
done
done
sleep 1000