Skip to content

Commit

Permalink
reset master
Browse files Browse the repository at this point in the history
  • Loading branch information
mdcallag committed Dec 22, 2016
1 parent 47d5a26 commit df7e9a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bench/sysbench.lua/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ fi
dbcreds="--mysql-user=root --mysql-password=pw --mysql-host=127.0.0.1 --mysql-db=test"
sfx="nr${nr}.range${range}.${engine}.${testType}"

$client -uroot -ppw -e 'reset master' 2> /dev/null

if [[ $setup == 1 ]]; then
echo Setup

Expand All @@ -54,6 +56,7 @@ fi

echo sysbench --test=tests/db/oltp.lua --db-driver=mysql --mysql-engine-trx=$etrx $dbcreds --mysql-table-engine=$engine $topt --oltp-range-size=$range --oltp-table-size=$nr --oltp-tables-count=$ntabs --max-requests=0 --max-time=$secs prepare > sb.prepare.$sfx
time ./sysbench --test=tests/db/oltp.lua --db-driver=mysql --mysql-engine-trx=$etrx $dbcreds --mysql-table-engine=$engine $topt --oltp-range-size=$range --oltp-table-size=$nr --oltp-tables-count=$ntabs --max-requests=0 --max-time=$secs prepare >> sb.prepare.$sfx 2>&1
$client -uroot -ppw -e 'reset master' 2> /dev/null
fi

shift 9
Expand All @@ -63,8 +66,6 @@ rm -f sb.r.trx.$sfx sb.r.qps.$sfx sb.r.rtavg.$sfx sb.r.rtmax.$sfx sb.r.rt95.$sfx
for nt in "$@"; do
echo Run for $nt threads

$client -uroot -ppw -e 'reset master' 2> /dev/null

echo Run for nt $nt at $( date )
killall vmstat
killall iostat
Expand Down

0 comments on commit df7e9a5

Please sign in to comment.