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
d2122c1d
Commit
d2122c1d
authored
Feb 01, 2024
by
Hejing Li
Browse files
add exp_name to the ns3 prob output file name
parent
217507b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
experiments/pyexps/e2e_bg_homa.py
experiments/pyexps/e2e_bg_homa.py
+3
-3
experiments/simbricks/orchestration/e2e_topologies.py
experiments/simbricks/orchestration/e2e_topologies.py
+4
-2
No files found.
experiments/pyexps/e2e_bg_homa.py
View file @
d2122c1d
...
...
@@ -33,7 +33,7 @@ from simbricks.orchestration.e2e_topologies import (
random
.
seed
(
42
)
types_of_host
=
[
'qemu'
,
'qt'
,
'gem5'
]
types_of_protocol
=
[
'tcp'
,
'dctcp'
,
'homa'
]
types_of_protocol
=
[
'tcp'
,
'homa'
]
options
=
{
'ns3::TcpSocket::SegmentSize'
:
'1448'
,
...
...
@@ -69,7 +69,7 @@ for h in types_of_host:
n_agg_bl
=
1
,
n_agg_sw
=
1
,
n_agg_racks
=
1
,
h_per_rack
=
2
,
h_per_rack
=
4
,
)
...
...
@@ -124,7 +124,7 @@ for h in types_of_host:
topology
.
add_simbricks_host_r
(
client_nic
)
topology
.
add_simbricks_host_r
(
server_nic
)
add_homa_bg
(
topology
,
app_proto
=
p
)
add_homa_bg
(
topology
,
app_proto
=
p
,
exp_name
=
e
.
name
)
net
.
init_network
()
experiments
.
append
(
e
)
experiments/simbricks/orchestration/e2e_topologies.py
View file @
d2122c1d
...
...
@@ -353,7 +353,8 @@ def add_homa_bg(topo, subnet='10.0.0.0/16', **kwargs):
s_host
.
add_component
(
s_app
)
s_probe
=
e2e
.
E2EPeriodicSampleProbe
(
'probe'
,
'Rx'
)
s_probe
.
interval
=
'1s'
s_probe
.
file
=
f
'sink-rx-
{
i
}
'
exp_name
=
params
[
'exp_name'
]
s_probe
.
file
=
f
'
{
exp_name
}
_sink-rx-
{
i
}
'
s_app
.
add_component
(
s_probe
)
elif
(
params
[
'app_proto'
]
==
'homa'
):
s_app
=
e2e
.
E2EMsgGenApplication
(
'msggen'
)
...
...
@@ -362,7 +363,8 @@ def add_homa_bg(topo, subnet='10.0.0.0/16', **kwargs):
s_host
.
add_component
(
s_app
)
s_probe
=
e2e
.
E2EPeriodicSampleProbe
(
'probe'
,
'Rx'
)
s_probe
.
interval
=
'1s'
s_probe
.
file
=
f
'sink-rx-
{
i
}
'
exp_name
=
params
[
'exp_name'
]
s_probe
.
file
=
f
'
{
exp_name
}
_sink-rx-
{
i
}
'
s_app
.
add_component
(
s_probe
)
topo
.
add_host_r
(
s_host
)
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