Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add bench script #176

Merged
merged 1 commit into from
Sep 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ benchmark/hopfs/hops
benchmark/hopfs/META-INF

storedprocs.jar
bench
bench/hdfs
65 changes: 65 additions & 0 deletions bench/bench.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
#! /bin/bash

# Create Files

for ((i=1;i<=8;i=i*2))
do
for ((j=1;j<=10000;j=j*10))
do
for k in {1..20}
do
# your-unix-command-here
bash ~/hadoop/test.sh
sleep 10
/home/gangliao/hadoop/hadoop-dist/target/hadoop-3.3.0-SNAPSHOT/bin/hadoop \
org.apache.hadoop.hdfs.server.namenode.NNThroughputBenchmark \
-fs hdfs://localhost:9000 -op create -threads ${i} -files ${j} \
-filesPerDir 100000 -logLevel INFO &>> voltfs_create_${i}_${j}.txt
done
done
done


# Open Files

bash ~/hadoop/test.sh
/home/gangliao/hadoop/hadoop-dist/target/hadoop-3.3.0-SNAPSHOT/bin/hadoop \
org.apache.hadoop.hdfs.server.namenode.NNThroughputBenchmark \
-fs hdfs://localhost:9000 -op open -threads 1 -files 100000 \
-filesPerDir 100000 -keepResults -logLevel INFO

for ((i=1;i<=8;i=i*2))
do
for ((j=1;j<=10000;j=j*10))
do
for k in {1..20}
do
# your-unix-command-here
sleep 10
/home/gangliao/hadoop/hadoop-dist/target/hadoop-3.3.0-SNAPSHOT/bin/hadoop \
org.apache.hadoop.hdfs.server.namenode.NNThroughputBenchmark \
-fs hdfs://localhost:9000 -op open -threads ${i} -files ${j} \
-filesPerDir 100000 -keepResults -useExisting -logLevel INFO &>> voltfs_open_${i}_${j}.txt
done
done
done


# Delete Files

for ((i=1;i<=8;i=i*2))
do
for ((j=1;j<=10000;j=j*10))
do
for k in {1..20}
do
# your-unix-command-here
bash ~/hadoop/test.sh
sleep 10
/home/gangliao/hadoop/hadoop-dist/target/hadoop-3.3.0-SNAPSHOT/bin/hadoop \
org.apache.hadoop.hdfs.server.namenode.NNThroughputBenchmark \
-fs hdfs://localhost:9000 -op delete -threads ${i} -files ${j} \
-filesPerDir 100 -logLevel INFO &>> voltfs_delete_${i}_${j}.txt
done
done
done