Commit ab95b023 authored by Jialin Li's avatar Jialin Li
Browse files

add nopaxos experiments

parent 8649aa28
...@@ -6,6 +6,10 @@ GUESTS := \ ...@@ -6,6 +6,10 @@ GUESTS := \
gem5-pair-client \ gem5-pair-client \
gem5-pair-server-cp \ gem5-pair-server-cp \
gem5-pair-client-cp \ gem5-pair-client-cp \
qemu-nopaxos-replica-0 \
qemu-nopaxos-replica-1 \
qemu-nopaxos-replica-2 \
qemu-nopaxos-client \
EXPERIMENTS := \ EXPERIMENTS := \
qemu-corundum-bm-pair \ qemu-corundum-bm-pair \
......
...@@ -178,6 +178,29 @@ run_ns3_dumbbell() { ...@@ -178,6 +178,29 @@ run_ns3_dumbbell() {
return $pid return $pid
} }
# Args:
# - Instance name
# - Client Port names
# - Server Port names
# - Other args
run_ns3_sequencer() {
ports=""
for p in $2; do
epath="`readlink -f $OUTDIR/eth.$p`"
ports="$ports --ClientPort=$epath"
done
for p in $3; do
epath="`readlink -f $OUTDIR/eth.$p`"
ports="$ports --ServerPort=$epath"
done
$NS3_BASE/cosim-run.sh sequencer sequencer-single-switch-example \
$ports $4 &>$OUTDIR/ns3_sequencer.$1.log &
pid=$!
ALL_PIDS="$ALL_PIDS $pid"
return $pid
}
cleanup() { cleanup() {
echo Cleaning up echo Cleaning up
for p in $ALL_PIDS ; do for p in $ALL_PIDS ; do
......
#!/bin/bash
source common-functions.sh
init_out qemu-ns3-nopaxos
run_corundum_bm c0
run_corundum_bm r0
run_corundum_bm r1
run_corundum_bm r2
sleep 0.5
run_ns3_sequencer nopaxos "c0" "r0 r1 r2"
sleep 5
run_qemu r0 r0 build/qemu-nopaxos-replica-0.tar
run_qemu r1 r1 build/qemu-nopaxos-replica-1.tar
run_qemu r2 r2 build/qemu-nopaxos-replica-2.tar
#run_qemu c0 c0 build/qemu-nopaxos-client.tar
client_pid=$!
wait $client_pid
cleanup
#!/bin/bash
insmod mqnic.ko
ip link set dev eth0 up
ip addr add 10.1.0.100/24 broadcast 10.1.0.255 dev eth0
/root/nopaxos/bench/client -c /root/nopaxos.config -m nopaxos -n 1000
poweroff -f
#!/bin/bash
insmod mqnic.ko
ip link set dev eth0 up
ip addr add 10.1.0.1/24 dev eth0
ping -c 5 10.1.0.2
ping -c 5 10.1.0.3
/root/nopaxos/bench/replica -c /root/nopaxos.config -i 0 -m nopaxos
poweroff
#!/bin/bash
insmod mqnic.ko
ip link set dev eth0 up
ip addr add 10.1.0.2/24 dev eth0
ping -c 5 10.1.0.1
/root/nopaxos/bench/replica -c /root/nopaxos.config -i 1 -m nopaxos
poweroff
#!/bin/bash
insmod mqnic.ko
ip link set dev eth0 up
ip addr add 10.1.0.3/24 dev eth0
ping -c 5 10.1.0.1
/root/nopaxos/bench/replica -c /root/nopaxos.config -i 2 -m nopaxos
poweroff
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment