-
Notifications
You must be signed in to change notification settings - Fork 4
/
runmyeval.sh
executable file
·77 lines (58 loc) · 2.19 KB
/
runmyeval.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
#!/bin/bash
# ycsb workload A--F
# memory usage:
# vectors in replayer: (8B+6B+8B)*1000000/1024/1024=25MB
# DB: 256MB
# flexible rom: 50MB
if [ "$#" -ne 1 ]; then
echo "Wrong number of parameters"
echo "1st arg - yes--with cgroup, no-without cgroup"
exit 1
fi
cgroupsw=$1
#distributions=(zipfian uniform sequential hotspot latest)
#wlist=(a b c d f)
distributions=(zipfian uniform)
wlist=(a d f)
reqcount=1000 # num of distinct keys
oprcount=2000000 # num of operations
for dds in ${distributions[@]};
do
#recordcount operationcount requestdistribution readproportion updateproportion scanproportion insertproportion readmodifywriteproportion name
./genycsbtrace.sh "$reqcount" "$oprcount" "$dds" 0.5 0.5 0 0 0 "$dds"_a
# ./genycsbtrace.sh "$reqcount" "$oprcount" "$dds" 0.95 0.05 0 0 0 "$dds"_b
# ./genycsbtrace.sh "$reqcount" "$oprcount" "$dds" 1 0 0 0 0 "$dds"_c
./genycsbtrace.sh "$reqcount" "$oprcount" "$dds" 0.95 0 0 0.05 0 "$dds"_d
./genycsbtrace.sh "$reqcount" "$oprcount" "$dds" 0.5 0 0 0 0.5 "$dds"_f
done
# --------------------------------------------------
rm tmp/* -rf
mkdir tmp
rm -f result.txt
touch result.txt
echo "workload p99 avg p50 ops KBread KBwrite " >> result.txt
# --------------------------------------------------
for dds in ${distributions[@]};
do
for wls in ${wlist[@]};
do
echo mywl_"$dds"_"$wls"
./y_breplayer workload/mywl_"$dds"_"$wls"_load workload/mywl_"$dds"_"$wls"_run mywl_"$wls"_"$dds"_b
rm tmp/* -rf
./y_lreplayer workload/mywl_"$dds"_"$wls"_load workload/mywl_"$dds"_"$wls"_run mywl_"$wls"_"$dds"_l
rm tmp/* -rf
./y_rreplayer workload/mywl_"$dds"_"$wls"_load workload/mywl_"$dds"_"$wls"_run mywl_"$wls"_"$dds"_r
rm tmp/* -rf
if [[ $wls = "f" ]]
then
#python3 rmwpair.py workload/mywl_"$dds"_f_run y
./y_freplayer workload/mywl_"$dds"_f_load workload/mywl_"$dds"_f_run mywl_f_"$dds"_f
else
./y_freplayer workload/mywl_"$dds"_"$wls"_load workload/mywl_"$dds"_"$wls"_run mywl_"$wls"_"$dds"_f
fi
rm tmp/* -rf
done
done
rm workload/mywl_*
ctt=$(date +%s)
mv result.txt result_"$cgroupsw".txt