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

THREADS should be a global option

parent 3d6b6d84
No related branches found
No related tags found
No related merge requests found
...@@ -5,3 +5,7 @@ X86_ENERGY_PERF_POLICY=x86_energy_perf_policy ...@@ -5,3 +5,7 @@ X86_ENERGY_PERF_POLICY=x86_energy_perf_policy
# Execute all SSH commands under this user # Execute all SSH commands under this user
# so that we don't need ssh keys for root # so that we don't need ssh keys for root
SSH_USER=p5cai SSH_USER=p5cai
# Default No. of threads
# Note that not all experiments honor this setting
THREADS=8
MEMCACHED=/home/p5cai/workspace/memcached/memcached MEMCACHED=/home/p5cai/workspace/memcached/memcached
THREADS=8 # default
...@@ -3,20 +3,6 @@ source "$EXP_ROOT/experiments/memcached.shared.sh" ...@@ -3,20 +3,6 @@ source "$EXP_ROOT/experiments/memcached.shared.sh"
pre_start() { pre_start() {
load_config load_config
while [[ $# -gt 0 ]]; do
case $1 in
-t)
[ -z "$2" ] && echo "# of threads must not be empty" && exit 1
THREADS="$2"
shift
shift
;;
*)
break
;;
esac
done
EXPERIMENT_NAME_EXT="t$THREADS.c$CONNS" EXPERIMENT_NAME_EXT="t$THREADS.c$CONNS"
cleanup_mutilate cleanup_mutilate
......
...@@ -31,6 +31,11 @@ while [[ $# -gt 0 ]]; do ...@@ -31,6 +31,11 @@ while [[ $# -gt 0 ]]; do
shift shift
shift shift
;; ;;
-t|--threads)
THREADS="$2"
shift
shift
;;
*) *)
break break
;; ;;
......
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