Skip to content
Snippets Groups Projects
Commit e31a8db5 authored by Peter Cai's avatar Peter Cai
Browse files

Re-introduce re-initialization of memcached every few runs

parent 4a06211f
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,8 @@ source "$EXP_ROOT/experiments/perf.shared.sh"
CONNS=160 # per agent thread
NO_RUNS=0
load_config() {
source "$EXP_ROOT/configs/memcached.sh"
source "$EXP_ROOT/configs/mutilate.sh"
......@@ -38,10 +40,17 @@ warmup() {
}
run_mutilate() {
if [ "$NO_RUNS" -ge 4 ]; then
echo "Re-intializing Memcached server"
memcached_shutdown
memcached_startup
NO_RUNS=0
fi
echo "Running mutilate with $CONNS connections per agent (core) and QPS = $QPS"
perf_stat_start "$1"
sudo -u $SSH_USER $MUTILATE --noload -c$CONNS $MUTCLIENTS -t30 -u 0 -q $QPS | tee $DATA_OUT/$1.txt
perf_stat_stop
NO_RUNS=$((NO_RUNS + 1))
}
memcached_pre_start() {
......@@ -59,13 +68,22 @@ memcached_pre_start() {
}
memcached_init() {
NO_RUNS=0
memcached_startup
}
memcached_startup() {
start_memcached
start_mutilate
warmup
}
memcached_deinit() {
memcached_shutdown() {
cleanup_mutilate
cleanup_memcached
}
memcached_deinit() {
memcached_shutdown
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment