-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmore_rank_scaling.sh
executable file
·81 lines (70 loc) · 1.42 KB
/
more_rank_scaling.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
78
79
80
81
#!/bin/bash
# script to reproduce scaling issues with join_als
set -e
if [ $# -eq 0 ]
then
echo ERROR usage: ./rank_scaling.sh master jar sparkhome trainfile
exit 1
fi
MASTER=$1
JAR=$2
SPARKHOME=$3
TRAINFILE=$4
# run with smaller rank (10)
sbt/sbt "run-main als_debug.Join_ALS
--blocked=true
--master=$MASTER
--jars=$JAR
--sparkhome=$SPARKHOME
--train=$TRAINFILE
--niter=10
--nsplits=32
--rank=40" 2>&1 | tee rank_40_log_0607
# slightly bigger rank (20)
sbt/sbt "run-main als_debug.Join_ALS
--blocked=true
--master=$MASTER
--jars=$JAR
--sparkhome=$SPARKHOME
--train=$TRAINFILE
--niter=10
--nsplits=32
--rank=50" 2>&1 | tee rank_50_log_0607
# a little bigger... rank (30)
sbt/sbt "run-main als_debug.Join_ALS
--blocked=true
--master=$MASTER
--jars=$JAR
--sparkhome=$SPARKHOME
--train=$TRAINFILE
--niter=10
--nsplits=32
--rank=60" 2>&1 | tee rank_60_log_0607
# bigger rank (100)
sbt/sbt "run-main als_debug.Join_ALS
--blocked=true
--master=$MASTER
--jars=$JAR
--sparkhome=$SPARKHOME
--train=$TRAINFILE
--niter=10
--nsplits=32
--rank=70" 2>&1 | tee rank_70_log_0607
sbt/sbt "run-main als_debug.Join_ALS
--blocked=true
--master=$MASTER
--jars=$JAR
--sparkhome=$SPARKHOME
--train=$TRAINFILE
--niter=10
--nsplits=32
--rank=80" 2>&1 | tee rank_80_log_0607
sbt/sbt "run-main als_debug.Join_ALS
--blocked=true
--master=$MASTER
--jars=$JAR
--sparkhome=$SPARKHOME
--train=$TRAINFILE
--niter=10
--nsplits=32
--rank=90" 2>&1 | tee rank_90_log_0607