Permalink
Browse files

Added TPCC experiment scripts

  • Loading branch information...
jarulraj committed Mar 14, 2014
1 parent a1484ad commit 796a1592d2b85ff68b99587855627231752b9605
Showing with 74 additions and 12 deletions.
  1. +6 −8 experiment.sh
  2. +1 −1 properties/benchmarks/ycsb.properties
  3. +22 −0 run_tpcc.sh
  4. +42 −0 run_ycsb.sh
  5. +3 −3 src/benchmarks/edu/brown/benchmark/ycsb/YCSBConstants.java
View
@@ -18,7 +18,7 @@ NVM_LATENCY=110
BASE_PROJECT="ycsb"
# Parse command line options.
while getopts hvarmgs: OPT; do
while getopts hrgsd:yt OPT; do
case "$OPT" in
h)
echo "$USAGE"
@@ -98,8 +98,6 @@ function onexit() {
SITE_HOST="10.212.84.152"
CLIENT_HOSTS=( \
"client1" \
"client2" \
"10.212.84.152" \
"10.212.84.152" \
)
@@ -150,14 +148,14 @@ BASE_ARGS=( \
# Client Params
"-Dclient.scalefactor=1" \
"-Dclient.memory=2048" \
"-Dclient.txnrate=10000" \
"-Dclient.txnrate=20000" \
"-Dclient.warmup=60000" \
"-Dclient.duration=60000" \
"-Dclient.interval=10000" \
"-Dclient.interval=20000" \
"-Dclient.shared_connection=false" \
# "-Dclient.blocking=false" \
"-Dclient.blocking_concurrent=1000" \
# "-Dclient.throttle_backoff=100" \
"-Dclient.blocking=false" \
"-Dclient.blocking_concurrent=100" \
"-Dclient.throttle_backoff=100" \
"-Dclient.output_interval=10000" \
# "-Dclient.output_anticache_evictions=evictions.csv" \
# "-Dclient.output_memory=memory.csv" \
@@ -10,4 +10,4 @@ fixed_size = true
num_records = 1000000
# Zipfian skew factor for tuple access
skew_factor = 0.75
skew_factor = 0.5
View
@@ -0,0 +1,22 @@
#!/usr/bin/zsh
# RUN EXPERIMENTS
DEFAULT_LATENCY=100
LOG_DIR=log
SCRIPT=./experiment.sh
for ((i=2; i<=8; i*=4))
do
l=$(($i*$DEFAULT_LATENCY))
echo "---------------------------------------------------"
echo "LATENCY" $l
$SCRIPT -s $l &> $LOG_DIR/$i.log
echo "---------------------------------------------------"
$SCRIPT -t &>> $LOG_DIR/$i.log
cp results.csv "$LOG_DIR/$i.csv"
done
View
@@ -0,0 +1,42 @@
#!/usr/bin/zsh
# RUN EXPERIMENTS
DEFAULT_LATENCY=100
LOG_DIR=log
SCRIPT=./experiment.sh
for ((i=2; i<=8; i*=4))
do
l=$(($i*$DEFAULT_LATENCY))
echo "---------------------------------------------------"
echo "LATENCY" $l
#$SCRIPT -s $l &> $LOG_DIR/$i.log
# RESET SKEW AT START
cp ./src/benchmarks/edu/brown/benchmark/ycsb/YCSBConstants.java.base ./src/benchmarks/edu/brown/benchmark/ycsb/YCSBConstants.java
cp ./properties/benchmarks/ycsb.properties.base ./properties/benchmarks/ycsb.properties
grep "skew_factor =" ./properties/benchmarks/ycsb.properties
grep "ZIPFIAN_CONSTANT =" ./src/benchmarks/edu/brown/benchmark/ycsb/YCSBConstants.java
echo "---------------------------------------------------"
for ((s=1; s<=5; s+=1))
do
p=$((0.25*$s));
q=$((0.25*$(($s+1))));
echo "UPDATING SKEW FROM $p TO $q"
sed -i "s/skew_factor = $p/skew_factor = $q/g" ./properties/benchmarks/ycsb.properties
sed -i "s/ZIPFIAN_CONSTANT = $p/ZIPFIAN_CONSTANT = $q/g" ./src/benchmarks/edu/brown/benchmark/ycsb/YCSBConstants.java
grep "skew_factor =" ./properties/benchmarks/ycsb.properties
grep "ZIPFIAN_CONSTANT =" ./src/benchmarks/edu/brown/benchmark/ycsb/YCSBConstants.java
$SCRIPT -y &>> $LOG_DIR/$i.log
cp results.csv "$LOG_DIR/""$i""_$s.csv"
done
done
@@ -33,7 +33,7 @@
public static final int NUM_RECORDS = 1000000; // Note: this should match value in YCSB.properties
public static final double ZIPFIAN_CONSTANT = 0.75;
public static final double ZIPFIAN_CONSTANT = 0.5;
public static final int HOT_DATA_WORKLOAD_SKEW = 50;
public static final int HOT_DATA_SIZE = 50;
@@ -52,7 +52,7 @@
// Transaction frequencies as specified in YCSB
public static final int FREQUENCY_INSERT_RECORD = 0;
public static final int FREQUENCY_DELETE_RECORD = 0;
public static final int FREQUENCY_READ_RECORD = 100;
public static final int FREQUENCY_READ_RECORD = 50;
public static final int FREQUENCY_SCAN_RECORD = 0;
public static final int FREQUENCY_UPDATE_RECORD = 0;
public static final int FREQUENCY_UPDATE_RECORD = 50;
}

0 comments on commit 796a159

Please sign in to comment.