Created
March 7, 2015 02:35
-
-
Save netmarkjp/129cb5098912b72a7089 to your computer and use it in GitHub Desktop.
svfes_localbench.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
echo "## RUN BENCH" | |
echo `date` | |
service mysql restart | |
sleep 2 | |
service mysql stop | |
cd ~ | |
echo `date` | |
echo "3" > /proc/sys/vm/drop_caches | |
rm -rf /fioa/mysql | |
cp -a /fioa/mysql.orig /fioa/mysql | |
echo `date` | |
sync | |
echo "3" > /proc/sys/vm/drop_caches | |
service mysql start | |
echo `date` | |
cd ~/tpcc-mysql | |
cat /etc/my.cnf.d/server.cnf | |
time ./tpcc_start -h 127.0.0.1 -d tpcc -u root -p "" -w 1000 -c 30 -l 900 -i 60 -r 0 | |
echo `date` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment