diff --git a/experiments/memcached.shared.sh b/experiments/memcached.shared.sh
index f2aa9991d5c94f0e97db2881a90aa162934974ee..651966d7e30dbbff17782e59956748e0b1b87622 100644
--- a/experiments/memcached.shared.sh
+++ b/experiments/memcached.shared.sh
@@ -15,7 +15,7 @@ cleanup_memcached() {
 
 start_memcached() {
     echo "Starting memcached"
-    taskset -c 0-$THREADS $MEMCACHED -u root -t $THREADS -b 16384 -c 32768 -m 10240 -o hashpower=24,no_lru_maintainer,no_lru_crawler $@ 2>&1 > /dev/null &
+    taskset -c 0-$((THREADS - 1)) $MEMCACHED -u root -t $THREADS -b 16384 -c 32768 -m 10240 -o hashpower=24,no_lru_maintainer,no_lru_crawler $@ 2>&1 > /dev/null &
     MEMCACHED_PID=$!
 }