Skip to content

Commit b122829

Browse files
committed
more memory/run, gather ICE logs too, other misc. features
1 parent ef16edc commit b122829

File tree

3 files changed

+41
-2
lines changed

3 files changed

+41
-2
lines changed

bench/BMscripts/161_163

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"use_home_for_ice": true,
99

1010
"h2o_per_host": 1,
11-
"java_heap_GB": 133,
11+
"java_heap_GB": 150,
1212

1313
"hdfs_name_node": "192.168.1.176",
1414
"hdfs_version": "cdh3",

bench/runBench.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ function doAlgo {
3737
fi
3838
zip -r ${archive}/${h2oBuild}-${DATE}-$1 sandbox/
3939
wait
40-
rm -rf sandbox/
40+
rm -rf sandbox/
41+
bash startloggers.sh ${JSON} ice $1
4142
}
4243

4344
function debug {

bench/startloggers.sh

+38
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,34 @@ function clearCaches {
5555
done
5656
}
5757

58+
function gatherLogs {
59+
for i in ${MACHINES[@]}
60+
do
61+
echo "Gather logs from machine $i"
62+
mach=`echo $i | awk -F. '{print $4}'`
63+
if [ ! -d machine_${mach}_logs ]
64+
then
65+
mkdir machine_${mach}_logs
66+
fi
67+
scp -r spencer@$i:~/h2o/bench/BMLogs/ machine_${mach}_logs
68+
done
69+
}
70+
71+
function gatherICE {
72+
phase=$1
73+
for i in ${MACHINES[@]}
74+
do
75+
echo "Gather ICE from machine $i"
76+
mach=`echo $i | awk -F. '{print $4}'`
77+
ssh 0xdiag@$i zip -r ice_${phase}_${mach} ice.55555*/h2ologs
78+
if [ ! -d ICES ]
79+
then
80+
mkdir ICES
81+
fi
82+
scp 0xdiag@$i:~/ice_${phase}_${mach}.zip ICES/
83+
done
84+
}
85+
5886
if [ $2 = "big" ]
5987
then
6088
startBigLoggers >/dev/null
@@ -79,3 +107,13 @@ if [ $2 = "clear_" ]
79107
then
80108
clearCaches
81109
fi
110+
111+
if [ $2 = "gather" ]
112+
then
113+
gatherLogs >/dev/null
114+
fi
115+
116+
if [ $2 = "ice" ]
117+
then
118+
gatherICE $3
119+
fi

0 commit comments

Comments
 (0)