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

Add experiment type irq_packing

parent cae154c6
No related branches found
No related tags found
No related merge requests found
......@@ -25,8 +25,8 @@ cleanup_memcached() {
start_memcached() {
echo "Starting memcached"
echo "taskset -c 0-$((THREADS - 1)) $MEMCACHED $MEMCACHED_ARGS -u root -t $THREADS -b 16384 -c 32768 -m 10240 -o hashpower=24,no_lru_maintainer,no_lru_crawler"
taskset -c 0-$((THREADS - 1)) $MEMCACHED $MEMCACHED_ARGS -u root -t $THREADS -b 16384 -c 32768 -m 10240 -o hashpower=24,no_lru_maintainer,no_lru_crawler &
echo "taskset -c 0-$((THREADS - 1 - THREAD_TAIL_OFFSET)) $MEMCACHED $MEMCACHED_ARGS -u root -t $((THREADS - THREAD_TAIL_OFFSET)) -b 16384 -c 32768 -m 10240 -o hashpower=24,no_lru_maintainer,no_lru_crawler"
taskset -c 0-$((THREADS - 1 - THREAD_TAIL_OFFSET)) $MEMCACHED $MEMCACHED_ARGS -u root -t $((THREADS - THREAD_TAIL_OFFSET)) -b 16384 -c 32768 -m 10240 -o hashpower=24,no_lru_maintainer,no_lru_crawler &
MEMCACHED_PID=$!
}
......
......@@ -25,3 +25,5 @@ sysctl net.core.busy_read=0
sysctl net.core.dev_weight=64
sysctl net.core.netdev_budget=300
sysctl net.core.netdev_budget_usecs=8000
export THREAD_TAIL_OFFSET=0
if [ "$THREADS" -ne 8 ]; then
echo "IRQ packing can only be done with 8 threads"
exit 1
fi
export THREAD_TAIL_OFFSET=2
# IRQ packing 2-2-6 scheme
ethtool -L $NET_IF rx 2 tx 8
$EXP_ROOT/irq.sh set 0 7
$EXP_ROOT/irq.sh set rx 6 7
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