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
88d0a56b
Commit
88d0a56b
authored
Sep 15, 2020
by
Jialin Li
Browse files
checkpoint
parent
c63197c0
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
1 deletion
+42
-1
experiments/Makefile
experiments/Makefile
+1
-0
experiments/common-functions.sh
experiments/common-functions.sh
+4
-0
experiments/experiments/qemu-ns3-nopaxos-endhost-sequencer.sh
...riments/experiments/qemu-ns3-nopaxos-endhost-sequencer.sh
+22
-0
experiments/guests/qemu-nopaxos-endhost-sequencer/run.sh
experiments/guests/qemu-nopaxos-endhost-sequencer/run.sh
+6
-0
images/nopaxos.json
images/nopaxos.json
+7
-1
images/sequencer.config
images/sequencer.config
+2
-0
No files found.
experiments/Makefile
View file @
88d0a56b
...
...
@@ -88,6 +88,7 @@ EXP_NCP := \
qemu-corundum-bm-pair
\
qemu-corundum-bm-switched-1
\
qemu-i40e-bm-mtcp
\
qemu-ns3-nopaxos
\
# all experiments in repo
...
...
experiments/common-functions.sh
View file @
88d0a56b
...
...
@@ -231,6 +231,10 @@ run_ns3_sequencer() {
epath
=
"
`
readlink
-f
$OUTDIR
/eth.
$p
`
"
ports
=
"
$ports
--ServerPort=
$epath
"
done
for
p
in
$4
;
do
epath
=
"
`
readlink
-f
$OUTDIR
/eth.
$p
`
"
ports
=
"
$ports
--EndhostSequencerPort=
$epath
"
done
$NS3_BASE
/cosim-run.sh sequencer sequencer-single-switch-example
\
$ports
$4
&>
$OUTDIR
/ns3_sequencer.
$1
.log &
...
...
experiments/experiments/qemu-ns3-nopaxos-endhost-sequencer.sh
0 → 100644
View file @
88d0a56b
#!/bin/bash
source
common-functions.sh
init_out qemu-ns3-nopaxos
$1
run_corundum_bm c0
run_corundum_bm r0
run_corundum_bm r1
run_corundum_bm r2
run_corundum_bm es
sleep
0.5
run_ns3_sequencer nopaxos
"c0"
"r0 r1 r2"
"es"
run_qemu es es build/qemu-nopaxos-endhost-sequencer.tar nopaxos
run_qemu r0 r0 build/qemu-nopaxos-replica-0.tar nopaxos
sleep
1
run_qemu r1 r1 build/qemu-nopaxos-replica-1.tar nopaxos
run_qemu r2 r2 build/qemu-nopaxos-replica-2.tar nopaxos
sleep
1
run_qemu c0 c0 build/qemu-nopaxos-client.tar nopaxos
client_pid
=
$!
wait
$client_pid
cleanup
experiments/guests/qemu-nopaxos-endhost-sequencer/run.sh
0 → 100755
View file @
88d0a56b
#!/bin/bash
insmod mqnic.ko
ip
link set
dev eth0 up
ip addr add 10.1.0.100/24 dev eth0
/root/nopaxos/sequencer/sequencer
-c
/root/sequencer.config
poweroff
images/nopaxos.json
View file @
88d0a56b
...
...
@@ -53,9 +53,15 @@
"destination"
:
"/tmp/nopaxos.config"
,
"direction"
:
"upload"
},
{
"type"
:
"file"
,
"source"
:
"sequencer.config"
,
"destination"
:
"/tmp/nopaxos.config"
,
"direction"
:
"upload"
},
{
"type"
:
"shell"
,
"inline"
:
[
"sudo mv /tmp/nopaxos.config /root/nopaxos.config"
]
"inline"
:
[
"sudo mv /tmp/nopaxos.config /root/nopaxos.config
; sudo mv /tmp/sequencer.config /root/sequencer.config
"
]
}
],
"variables"
:
{
...
...
images/sequencer.config
0 → 100644
View file @
88d0a56b
interface
eth0
groupaddr
10
.
1
.
0
.
255
:
12345
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