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
677d4082
Commit
677d4082
authored
Sep 13, 2020
by
Antoine Kaufmann
Browse files
experiments: add gem5-i40e-pair
parent
8fe6fd3a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
58 additions
and
0 deletions
+58
-0
experiments/Makefile
experiments/Makefile
+5
-0
experiments/experiments/gem5-i40e-pair-mck.sh
experiments/experiments/gem5-i40e-pair-mck.sh
+18
-0
experiments/experiments/gem5-i40e-pair.sh
experiments/experiments/gem5-i40e-pair.sh
+18
-0
experiments/guests/gem5-pair-i40e-client/run.sh
experiments/guests/gem5-pair-i40e-client/run.sh
+9
-0
experiments/guests/gem5-pair-i40e-server/run.sh
experiments/guests/gem5-pair-i40e-server/run.sh
+8
-0
No files found.
experiments/Makefile
View file @
677d4082
...
@@ -55,6 +55,8 @@ GUESTS := \
...
@@ -55,6 +55,8 @@ GUESTS := \
gem5-pair-client-udp-cp
\
gem5-pair-client-udp-cp
\
qemu-mtcp-server
\
qemu-mtcp-server
\
qemu-mtcp-client
\
qemu-mtcp-client
\
gem5-pair-i40e-server
\
gem5-pair-i40e-client
\
# experiments we want for the paper
# experiments we want for the paper
EXPERIMENTS
:=
\
EXPERIMENTS
:=
\
...
@@ -80,14 +82,17 @@ EXPERIMENTS := \
...
@@ -80,14 +82,17 @@ EXPERIMENTS := \
gem5-timing-corundum-verilator-pair-udp-100m
\
gem5-timing-corundum-verilator-pair-udp-100m
\
gem5-timing-corundum-verilator-pair-udp-150m
\
gem5-timing-corundum-verilator-pair-udp-150m
\
#experiments using check points
#experiments using check points
EXP_CP
:=
\
EXP_CP
:=
\
gem5-timing-corundum-verilator-pair-cp
\
gem5-timing-corundum-verilator-pair-cp
\
gem5-i40e-pair
\
#experiments not using check points
#experiments not using check points
EXP_NCP
:=
\
EXP_NCP
:=
\
qemu-corundum-bm-pair
\
qemu-corundum-bm-pair
\
qemu-corundum-bm-switched-1
\
qemu-corundum-bm-switched-1
\
qemu-i40e-bm-mtcp
\
# all experiments in repo
# all experiments in repo
...
...
experiments/experiments/gem5-i40e-pair-mck.sh
0 → 100644
View file @
677d4082
#!/bin/bash
source
common-functions.sh
init_out gem5-i40e-pair checkpoint
# first run to checkpoint with fast CPU
run_i40e_bm a
run_i40e_bm b
sleep
2
run_wire ab a b
run_gem5 a a build/gem5-pair-i40e-server.tar X86KvmCPU server
"--cosim-type=i40e"
run_gem5 b b build/gem5-pair-i40e-client.tar X86KvmCPU client
"--cosim-type=i40e"
client_pid
=
$!
wait
$client_pid
cleanup
echo
"Took checkpoint successfully"
experiments/experiments/gem5-i40e-pair.sh
0 → 100644
View file @
677d4082
#!/bin/bash
source
common-functions.sh
init_out gem5-i40e-pair
$1
echo
"Restoring from checkpoint"
# then run with timing CPU
run_i40e_bm a
run_i40e_bm b
sleep
0.5
run_wire a a b
run_gem5 a a build/gem5-pair-i40e-server.tar TimingSimpleCPU server
"-r 0 --cosim-sync --cosim-type=i40e"
run_gem5 b b build/gem5-pair-i40e-client.tar TimingSimpleCPU client
"-r 0 --cosim-sync --cosim-type=i40e"
client_pid
=
$!
wait
$client_pid
cleanup
experiments/guests/gem5-pair-i40e-client/run.sh
0 → 100755
View file @
677d4082
#!/bin/bash
m5 checkpoint
modprobe i40e
ip
link set
dev eth0 up
ip addr add 192.168.64.2/24 dev eth0
ethtool
-K
eth0 tso off
sleep
2
iperf
-l
1M
-w
1M
-c
192.168.64.1
m5
exit
experiments/guests/gem5-pair-i40e-server/run.sh
0 → 100755
View file @
677d4082
#!/bin/bash
m5 checkpoint
modprobe i40e
ip
link set
dev eth0 up
ip addr add 192.168.64.1/24 dev eth0
ethtool
-K
eth0 tso off
iperf
-s
-l
1M
-w
1M
m5
exit
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