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
c233be4d
"official/legacy/image_classification/augment.py" did not exist on "749baad327b49932c55e4e044a5da241ffd86a3d"
Commit
c233be4d
authored
Jun 06, 2022
by
Hejing Li
Browse files
ae: complete pci latency python script
parent
913f172f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
experiments/pyexps/ae/f9_latency.py
experiments/pyexps/ae/f9_latency.py
+13
-6
No files found.
experiments/pyexps/ae/f9_latency.py
View file @
c233be4d
...
...
@@ -22,11 +22,6 @@
########################################################################
# This script is for reproducing [Figure 9] in the paper.
# It generates experiments for
#
# Host type has qemu-kvm(qemu in short), gem5-timing-mode(gt), qemu-timing-mode(qt)
# Nic type has Intel_i40e behavioral model(ib), corundum behavioral model(cb), corundum verilator(cv)
# Net type has Switch behavioral model(sw), ns-3(ns3)
#
# In each simulation, two hosts are connected by a switch
# [HOST_0] - [NIC_0] ---- [SWITCH] ---- [NIC_1] - [HOST_1]
...
...
@@ -58,7 +53,13 @@ for pci_type in pci_latency:
host_class
=
sim
.
Gem5Host
e
.
checkpoint
=
True
nic_class
=
sim
.
I40eNIC
def
nic_pci
():
n
=
sim
.
I40eNIC
()
n
.
sync_period
=
pci_type
n
.
pci_latency
=
pci_type
return
n
nic_class
=
nic_pci
nc_class
=
node
.
I40eLinuxNode
# create servers and clients
...
...
@@ -68,7 +69,13 @@ for pci_type in pci_latency:
clients
=
create_basic_hosts
(
e
,
1
,
'client'
,
net
,
nic_class
,
host_class
,
nc_class
,
node
.
NetperfClient
,
ip_start
=
2
)
for
s
in
servers
:
s
.
pci_latency
=
pci_type
s
.
sync_period
=
pci_type
for
c
in
clients
:
c
.
pci_latency
=
pci_type
c
.
sync_period
=
pci_type
c
.
wait
=
True
c
.
node_config
.
app
.
server_ip
=
servers
[
0
].
node_config
.
ip
...
...
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