|
|
|
@ -30,35 +30,27 @@ |
|
|
|
|
|
|
|
|
|
# performs a single qps run with one client and one server |
|
|
|
|
|
|
|
|
|
set - |
|
|
|
|
ex |
|
|
|
|
set -ex |
|
|
|
|
|
|
|
|
|
cd |
|
|
|
|
$(dirname $0) / |
|
|
|
|
../../ |
|
|
|
|
.. |
|
|
|
|
cd $(dirname $0)/../../.. |
|
|
|
|
|
|
|
|
|
killall qps_worker |
|
|
|
|
|| true |
|
|
|
|
killall qps_worker || true |
|
|
|
|
|
|
|
|
|
config=opt |
|
|
|
|
|
|
|
|
|
NUMCPUS =`python2 .7 - c |
|
|
|
|
'import multiprocessing; print multiprocessing.cpu_count()'` |
|
|
|
|
NUMCPUS=`python2.7 -c 'import multiprocessing; print multiprocessing.cpu_count()'` |
|
|
|
|
|
|
|
|
|
make CONFIG = $config qps_worker qps_driver - |
|
|
|
|
j$NUMCPUS |
|
|
|
|
make CONFIG=$config qps_worker qps_driver -j$NUMCPUS |
|
|
|
|
|
|
|
|
|
bins |
|
|
|
|
/ $config / qps_worker |
|
|
|
|
- driver_port |
|
|
|
|
10000 &PID1 = $ !bins / $config / qps_worker |
|
|
|
|
- driver_port 10010 &PID2 = $ ! |
|
|
|
|
bins/$config/qps_worker -driver_port 10000 & |
|
|
|
|
PID1=$! |
|
|
|
|
bins/$config/qps_worker -driver_port 10010 & |
|
|
|
|
PID2=$! |
|
|
|
|
|
|
|
|
|
export QPS_WORKERS="localhost:10000,localhost:10010" |
|
|
|
|
|
|
|
|
|
bins |
|
|
|
|
/ $config / qps_driver $ * |
|
|
|
|
bins/$config/qps_driver $* |
|
|
|
|
|
|
|
|
|
kill -2 $PID1 $PID2 |
|
|
|
|
wait |
|
|
|
|
|
|
|
|
|
kill |
|
|
|
|
- 2 $PID1 $PID2 wait |
|
|
|
|