Commit 677d4082 authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

experiments: add gem5-i40e-pair

parent 8fe6fd3a
......@@ -55,6 +55,8 @@ GUESTS := \
gem5-pair-client-udp-cp \
qemu-mtcp-server \
qemu-mtcp-client \
gem5-pair-i40e-server \
gem5-pair-i40e-client \
# experiments we want for the paper
EXPERIMENTS := \
......@@ -80,14 +82,17 @@ EXPERIMENTS := \
gem5-timing-corundum-verilator-pair-udp-100m \
gem5-timing-corundum-verilator-pair-udp-150m \
#experiments using check points
EXP_CP := \
gem5-timing-corundum-verilator-pair-cp \
gem5-i40e-pair \
#experiments not using check points
EXP_NCP := \
qemu-corundum-bm-pair \
qemu-corundum-bm-switched-1 \
qemu-i40e-bm-mtcp \
# all experiments in repo
......
#!/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"
#!/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
#!/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
#!/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
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