Skip to content

Commit e1df388

Browse files
committed
reproduce: add dataset input for fig6.sh $ jemalloc fix
1 parent 23a9e84 commit e1df388

File tree

5 files changed

+40
-7
lines changed

5 files changed

+40
-7
lines changed

fig6.sh

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,33 @@
11
#!/bin/bash
2-
datasets=('com-dblp.ungraph.json3')
2+
DATASET_ALIAS="${1:-null}"
3+
resolve_dataset() {
4+
case "$1" in
5+
dblp) echo "com-dblp.ungraph.json3" ;;
6+
wikipedia)
7+
echo "wikipedia.json3" ;;
8+
orkut) echo "com-orkut.ungraph.json3" ;;
9+
twitter)
10+
echo "twitter-2010.json3" ;;
11+
*)
12+
echo "Unknown dataset alias: $1" >&2
13+
return 1
14+
;;
15+
esac
16+
}
17+
dataset="$(resolve_dataset "$DATASET_ALIAS")"
18+
datasets=($dataset)
19+
320
vnum=3072627
421
algms=('get-and-add.groovy')
522

623
ratios=(0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9)
724
# ratios=(0.5)
825
total_ops=1000000
926

10-
export LD_PRELOAD=/usr/local/lib/libjemalloc.so
27+
export LD_PRELOAD="$(
28+
( /sbin/ldconfig -p 2>/dev/null || /usr/sbin/ldconfig -p 2>/dev/null || ldconfig -p ) \
29+
| awk '/libjemalloc\.so(\.|$)/{print $4; exit}'
30+
)"
1131

1232
for ds in "${datasets[@]}"
1333
do

fig7.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ datasets=('com-dblp.ungraph.json3')
33
vnum=3072627
44
algms=('basics.groovy')
55

6-
export LD_PRELOAD=/usr/local/lib/libjemalloc.so
6+
export LD_PRELOAD="$(
7+
( /sbin/ldconfig -p 2>/dev/null || /usr/sbin/ldconfig -p 2>/dev/null || ldconfig -p ) \
8+
| awk '/libjemalloc\.so(\.|$)/{print $4; exit}'
9+
)"
710

811
for ds in "${datasets[@]}"
912
do

fig7_property.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
# datasets=(ldbc.json2 freebase_large.json2)
66
datasets=(ldbc.json2)
77

8-
export LD_PRELOAD=/usr/local/lib/libjemalloc.so
8+
export LD_PRELOAD="$(
9+
( /sbin/ldconfig -p 2>/dev/null || /usr/sbin/ldconfig -p 2>/dev/null || ldconfig -p ) \
10+
| awk '/libjemalloc\.so(\.|$)/{print $4; exit}'
11+
)"
912

1013
for ds in "${datasets[@]}"
1114
do

fig8.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
#!/bin/bash
22
# datasets=('twitch.json3')
33
# datasets=('com-orkut.ungraph.json3')
4-
datasets=('wikipedia.json3' 'com-orkut.ungraph.json3')
4+
datasets=('com-dblp.ungraph.json3')
5+
#datasets=('wikipedia.json3' 'com-orkut.ungraph.json3')
56
ratios=(0.5)
67
ratios=(0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9)
78
# updates=(0)
89
updates=(0 1 2)
910

10-
export LD_PRELOAD=/usr/local/lib/libjemalloc.so
11+
export LD_PRELOAD="$(
12+
( /sbin/ldconfig -p 2>/dev/null || /usr/sbin/ldconfig -p 2>/dev/null || ldconfig -p ) \
13+
| awk '/libjemalloc\.so(\.|$)/{print $4; exit}'
14+
)"
1115

1216
for ds in "${datasets[@]}"
1317
do

fig9.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
# datasets=('com-orkut.ungraph.json3')
44
datasets=('com-dblp.ungraph.json3')
55

6-
export LD_PRELOAD=/usr/local/lib/libjemalloc.so
6+
export LD_PRELOAD="$(
7+
( /sbin/ldconfig -p 2>/dev/null || /usr/sbin/ldconfig -p 2>/dev/null || ldconfig -p ) \
8+
| awk '/libjemalloc\.so(\.|$)/{print $4; exit}'
9+
)"
710

811
cp scripts/inmemory.groovy tmp.groovy
912

0 commit comments

Comments
 (0)