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
f5216010
Commit
f5216010
authored
Nov 28, 2020
by
Antoine Kaufmann
Browse files
experiments/dctcp: support for synchronized qemu
parent
cab36e8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
experiments/pyexps/dctcp.py
experiments/pyexps/dctcp.py
+8
-2
No files found.
experiments/pyexps/dctcp.py
View file @
f5216010
...
@@ -10,7 +10,7 @@ import modes.nodeconfig as node
...
@@ -10,7 +10,7 @@ import modes.nodeconfig as node
# net: switch/dumbbell/bridge
# net: switch/dumbbell/bridge
# app: DCTCPm
# app: DCTCPm
types_of_host
=
[
'qemu'
,
'gt'
]
types_of_host
=
[
'qemu'
,
'qt'
,
'gt'
]
types_of_nic
=
[
'cv'
,
'cb'
,
'ib'
]
types_of_nic
=
[
'cv'
,
'cb'
,
'ib'
]
types_of_net
=
[
'dumbbell'
]
types_of_net
=
[
'dumbbell'
]
types_of_app
=
[
'DCTCPm'
]
types_of_app
=
[
'DCTCPm'
]
...
@@ -41,13 +41,19 @@ for h in types_of_host:
...
@@ -41,13 +41,19 @@ for h in types_of_host:
e
=
exp
.
Experiment
(
h
+
'-'
+
c
+
'-'
+
'dumbbell'
+
'-'
+
'DCTCPm'
+
f
'
{
k_val
}
'
+
f
'-
{
mtu
}
'
)
e
=
exp
.
Experiment
(
h
+
'-'
+
c
+
'-'
+
'dumbbell'
+
'-'
+
'DCTCPm'
+
f
'
{
k_val
}
'
+
f
'-
{
mtu
}
'
)
e
.
add_network
(
net
)
e
.
add_network
(
net
)
e
.
checkpoint
=
True
# host
# host
if
h
==
'qemu'
:
if
h
==
'qemu'
:
host_class
=
sim
.
QemuHost
host_class
=
sim
.
QemuHost
elif
h
==
'qt'
:
def
qemu_timing
():
h
=
sim
.
QemuHost
()
h
.
sync
=
True
return
h
host_class
=
qemu_timing
elif
h
==
'gt'
:
elif
h
==
'gt'
:
host_class
=
sim
.
Gem5Host
host_class
=
sim
.
Gem5Host
e
.
checkpoint
=
True
else
:
else
:
raise
NameError
(
h
)
raise
NameError
(
h
)
...
...
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