Skip to content

Commit 2503c3f

Browse files
authored
Merge pull request #176 from DSL-UMD/distributed
add bench script
2 parents b79409e + e340069 commit 2503c3f

File tree

2 files changed

+66
-1
lines changed

2 files changed

+66
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@ benchmark/hopfs/hops
7979
benchmark/hopfs/META-INF
8080

8181
storedprocs.jar
82-
bench
82+
bench/hdfs

bench/bench.sh

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
#! /bin/bash
2+
3+
# Create Files
4+
5+
for ((i=1;i<=8;i=i*2))
6+
do
7+
for ((j=1;j<=10000;j=j*10))
8+
do
9+
for k in {1..20}
10+
do
11+
# your-unix-command-here
12+
bash ~/hadoop/test.sh
13+
sleep 10
14+
/home/gangliao/hadoop/hadoop-dist/target/hadoop-3.3.0-SNAPSHOT/bin/hadoop \
15+
org.apache.hadoop.hdfs.server.namenode.NNThroughputBenchmark \
16+
-fs hdfs://localhost:9000 -op create -threads ${i} -files ${j} \
17+
-filesPerDir 100000 -logLevel INFO &>> voltfs_create_${i}_${j}.txt
18+
done
19+
done
20+
done
21+
22+
23+
# Open Files
24+
25+
bash ~/hadoop/test.sh
26+
/home/gangliao/hadoop/hadoop-dist/target/hadoop-3.3.0-SNAPSHOT/bin/hadoop \
27+
org.apache.hadoop.hdfs.server.namenode.NNThroughputBenchmark \
28+
-fs hdfs://localhost:9000 -op open -threads 1 -files 100000 \
29+
-filesPerDir 100000 -keepResults -logLevel INFO
30+
31+
for ((i=1;i<=8;i=i*2))
32+
do
33+
for ((j=1;j<=10000;j=j*10))
34+
do
35+
for k in {1..20}
36+
do
37+
# your-unix-command-here
38+
sleep 10
39+
/home/gangliao/hadoop/hadoop-dist/target/hadoop-3.3.0-SNAPSHOT/bin/hadoop \
40+
org.apache.hadoop.hdfs.server.namenode.NNThroughputBenchmark \
41+
-fs hdfs://localhost:9000 -op open -threads ${i} -files ${j} \
42+
-filesPerDir 100000 -keepResults -useExisting -logLevel INFO &>> voltfs_open_${i}_${j}.txt
43+
done
44+
done
45+
done
46+
47+
48+
# Delete Files
49+
50+
for ((i=1;i<=8;i=i*2))
51+
do
52+
for ((j=1;j<=10000;j=j*10))
53+
do
54+
for k in {1..20}
55+
do
56+
# your-unix-command-here
57+
bash ~/hadoop/test.sh
58+
sleep 10
59+
/home/gangliao/hadoop/hadoop-dist/target/hadoop-3.3.0-SNAPSHOT/bin/hadoop \
60+
org.apache.hadoop.hdfs.server.namenode.NNThroughputBenchmark \
61+
-fs hdfs://localhost:9000 -op delete -threads ${i} -files ${j} \
62+
-filesPerDir 100 -logLevel INFO &>> voltfs_delete_${i}_${j}.txt
63+
done
64+
done
65+
done

0 commit comments

Comments
 (0)