-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAkkaCrun
More file actions
executable file
·79 lines (69 loc) · 2.61 KB
/
AkkaCrun
File metadata and controls
executable file
·79 lines (69 loc) · 2.61 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
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
#!/bin/sh -
sbtflags="--warn -J-Xmx32g"
hostname=`hostname`
if [ "${hostname}" = "plg2" ] ; then
startcore=0
elif [ "${hostname}" = "plg7b" ] ; then
startcore=0
elif [ "${hostname}" = "nasus" ] ; then
startcore=128
elif [ "${hostname}" = "jax" ] ; then
startcore=24
elif [ "${hostname}" = "pyke" ] ; then
startcore=0
else
echo "unsupported host" ${hostname}
exit 1
fi
for benchmark in SendStatic SendDynamic Become ; do
echo "AkkaC${benchmark}"
cd AkkaC/${benchmark}
rm -rf project target # random out of memory errors without this
taskset -c ${startcore} /usr/bin/time -f "%Uu %Ss %Er %Mkb" sbt ${sbtflags} "run d" 2>&1 | grep -v "Slf4jLogger started" | sed -e "s/\x1b\[0J//" > ../../AkkaC${benchmark}
cd - > /dev/null
done
mkdir -p AkkaCBatch
cd AkkaC/Executor
rm -rf project target # random out of memory errors without this
for bt in 1 10 100 ; do
echo "AkkaCBatch ${bt}"
#p=1
#while [ ${p} -le 32 ] ; do
cat /dev/null > ../../AkkaCBatch/AkkaCExecutor_${bt} # empty file
for p in 1 2 4 8 16 24 32 ; do #
sed -i "s/parallelism-min = .*/parallelism-min = ${p}/g" application.conf
sed -i "s/parallelism-max = .*/parallelism-max = ${p}/g" application.conf
taskset -c ${startcore}-`expr ${startcore} + ${p} - 1` /usr/bin/time -f "%Uu %Ss %Er %Mkb" sbt ${sbtflags} "run d d d ${p} ${bt}" 2>&1 | grep -v "Slf4jLogger started" | sed -e "s/\x1b\[0J//" >> ../../AkkaCBatch/AkkaCExecutor_${bt}
#p=`expr ${p} + 1`
echo "" >> ../../AkkaCBatch/AkkaCExecutor_${bt}
sbt clean > /dev/null
done
done
# reset
sed -i "s/parallelism-min = .*/parallelism-min = 1/g" application.conf
sed -i "s/parallelism-max = .*/parallelism-max = 1/g" application.conf
cd - > /dev/null
cat /dev/null > AkkaCMatrix # empty file
cd AkkaC/Matrix
rm -rf project target # random out of memory errors without this
for p in 1 2 4 8 16 24 32 ; do #
echo "AkkaCMatrix ${p}"
sed -i "s/parallelism-min = .*/parallelism-min = ${p}/g" application.conf
sed -i "s/parallelism-max = .*/parallelism-max = ${p}/g" application.conf
# echo "${p} processor"
i=1
while [ ${i} -le 11 ] ; do
#/usr/bin/time -f "%Uu %Ss %Er %Mkb" a.out d d d ${p}
taskset -c ${startcore}-`expr ${startcore} + ${p} - 1` /usr/bin/time -f "%Uu %Ss %Er %Mkb" sbt ${sbtflags} "run d d d ${p}" 2>&1 | grep -v "SLF4J:" | grep -v "Slf4jLogger started" | sed -e "s/\x1b\[0J//" >> ../../AkkaCMatrix
i=`expr ${i} + 1`
done
echo "" >> ../../AkkaCMatrix
sbt clean > /dev/null
done
# reset
sed -i "s/parallelism-min = .*/parallelism-min = 1/g" application.conf
sed -i "s/parallelism-max = .*/parallelism-max = 1/g" application.conf
cd - > /dev/null
# Local Variables: #
# tab-width: 4 #
# End: #