-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·41 lines (34 loc) · 1.09 KB
/
run.sh
File metadata and controls
executable file
·41 lines (34 loc) · 1.09 KB
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
#!/bin/bash
export M5_PATH=$(pwd)
if [ $# -eq 0 ]
then
echo "Usage: ./run.sh workload persistency_model[arp|epoch]"
fi
if ! [[ "$1" =~ ^(nstore|echo|vacation|memcached|atlas_heap|atlas_queue|atlas_skiplist|cceh|fast_fair|dash_lh|dash_ex|recipe_art|recipe_clht|recipe_masstree)$ ]]
then
echo "Invalid workload. Select from nstore|echo|vacation|memcached|atlas_heap|atlas_queue|atlas_skiplist|cceh|fast_fair|dash_lh|dash_ex|recipe_art|recipe_clht|recipe_masstree"
exit
fi
if ! [[ "$1" =~ ^(dash_lh|dash_ex|recipe_art|recipe_clht|recipe_masstree)$ ]]
then
image=part1.img;
else
image=part2.img;
fi
if [ "$1" == "memcached" ]
then
cores=9
else
cores=5
fi
if [ "$2" == "arp" ]
then
pModel="arp"
elif [ "$2" == "epoch" ]
then
pModel="epoch"
else
echo "Invalid persistency model"
exit
fi
sudo build/X86/gem5.fast -d results/asap_$2/$1 configs/example/fs.py --pmem --pmem-pwq --persist-buffers --pmem-wr-latency=60ns --mem-size=48GB --cpu-type=X86KvmCPU --kernel=$(pwd)/vmlinux_12 --disk-image=$image --ruby --asap -n $cores --script=scripts/$1.rcS --persistency-model=$pModel