Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
ab95b023
"...composable_kernel.git" did not exist on "393470f5b4caf362eb587753e43461507c461c5d"
Commit
ab95b023
authored
Jun 23, 2020
by
Jialin Li
Browse files
add nopaxos experiments
parent
8649aa28
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
74 additions
and
0 deletions
+74
-0
experiments/Makefile
experiments/Makefile
+4
-0
experiments/common-functions.sh
experiments/common-functions.sh
+23
-0
experiments/experiments/qemu-ns3-nopaxos.sh
experiments/experiments/qemu-ns3-nopaxos.sh
+19
-0
experiments/guests/qemu-nopaxos-client/run.sh
experiments/guests/qemu-nopaxos-client/run.sh
+6
-0
experiments/guests/qemu-nopaxos-replica-0/run.sh
experiments/guests/qemu-nopaxos-replica-0/run.sh
+8
-0
experiments/guests/qemu-nopaxos-replica-1/run.sh
experiments/guests/qemu-nopaxos-replica-1/run.sh
+7
-0
experiments/guests/qemu-nopaxos-replica-2/run.sh
experiments/guests/qemu-nopaxos-replica-2/run.sh
+7
-0
No files found.
experiments/Makefile
View file @
ab95b023
...
@@ -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
\
...
...
experiments/common-functions.sh
View file @
ab95b023
...
@@ -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
...
...
experiments/experiments/qemu-ns3-nopaxos.sh
0 → 100644
View file @
ab95b023
#!/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
experiments/guests/qemu-nopaxos-client/run.sh
0 → 100755
View file @
ab95b023
#!/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
experiments/guests/qemu-nopaxos-replica-0/run.sh
0 → 100755
View file @
ab95b023
#!/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
experiments/guests/qemu-nopaxos-replica-1/run.sh
0 → 100755
View file @
ab95b023
#!/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
experiments/guests/qemu-nopaxos-replica-2/run.sh
0 → 100755
View file @
ab95b023
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment