forked from heechul/memguard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
exp-reclaimshare.sh
executable file
·67 lines (51 loc) · 1.39 KB
/
exp-reclaimshare.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
#!/bin/bash
. functions
#test_2core_twobench "470.lbm" "000.cpuhog" # (1) solor reference
#benchb=$allspec2006sorted #subject
outputfile=reclaimshare.txt
init_system
rmmod memguard
set_cpus "1 1 1 1"
disable_prefetcher >> /dev/null
echo "enable prefetcher" >> $outputfile
echo "llc:$llc_miss_evt arch:${archbit}bit" >> $outputfile
echo "RMIN: $RMIN"
set_cpu_interval 2
set_cpus "1 0 1 0"
SHARES="5 1"
test_isolation()
{
rmmod memguard
foreground=$allspec2006sorted
background=470.lbm
log_echo "w/o memguard, solo"
for f in $foreground; do
do_exp_ncore $f
done
log_echo "w/o memguard, co-run"
for f in $foreground; do
do_exp_ncore $f $background
done
log_echo "memguard-RO(reserve only), co-run"
for f in $foreground; do
do_init_share "$SHARES" 0 $RMIN 0 >& /dev/null
do_exp_ncore $f $background
done
log_echo "memguard-BR(reclaim), co-run"
for f in $foreground; do
do_init_share "$SHARES" 1 $RMIN 0 >& /dev/null
do_exp_ncore $f $background
done
log_echo "memguard-BR+SS(rtas13), co-run"
for f in $foreground; do
do_init_share "$SHARES" 1 $RMIN 2 >& /dev/null
do_exp_ncore $f $background
done
log_echo "memguard-BR+PS(journal), co-run"
for f in $foreground; do
do_init_share "$SHARES" 1 $RMIN 5 >& /dev/null
do_exp_ncore $f $background
done
}
test_isolation
finish