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
cd12cb2e
Commit
cd12cb2e
authored
Feb 01, 2024
by
Hejing Li
Browse files
add rx prob
parent
e7521bb1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
experiments/pyexps/e2e_bg_homa.py
experiments/pyexps/e2e_bg_homa.py
+1
-0
experiments/simbricks/orchestration/e2e_topologies.py
experiments/simbricks/orchestration/e2e_topologies.py
+5
-5
No files found.
experiments/pyexps/e2e_bg_homa.py
View file @
cd12cb2e
...
@@ -52,6 +52,7 @@ add_homa_bg(topology, app_proto='ns3::HomaSocketFactory')
...
@@ -52,6 +52,7 @@ add_homa_bg(topology, app_proto='ns3::HomaSocketFactory')
net
=
sim
.
NS3E2ENet
()
net
=
sim
.
NS3E2ENet
()
net
.
opt
=
' '
.
join
([
f
'--
{
o
[
0
]
}
=
{
o
[
1
]
}
'
for
o
in
options
.
items
()])
net
.
opt
=
' '
.
join
([
f
'--
{
o
[
0
]
}
=
{
o
[
1
]
}
'
for
o
in
options
.
items
()])
net
.
e2e_global
.
stop_time
=
"20s"
net
.
add_component
(
topology
)
net
.
add_component
(
topology
)
net
.
wait
=
True
net
.
wait
=
True
e
.
add_network
(
net
)
e
.
add_network
(
net
)
...
...
experiments/simbricks/orchestration/e2e_topologies.py
View file @
cd12cb2e
...
@@ -325,7 +325,7 @@ def add_homa_bg(topo, subnet='10.42.0.0/16', **kwargs):
...
@@ -325,7 +325,7 @@ def add_homa_bg(topo, subnet='10.42.0.0/16', **kwargs):
'link_rate'
:
'5Gbps'
,
'link_rate'
:
'5Gbps'
,
'link_delay'
:
'1us'
,
'link_delay'
:
'1us'
,
'link_queue_size'
:
'512KB'
,
'link_queue_size'
:
'512KB'
,
'app_stop_time'
:
'
6
0s'
,
'app_stop_time'
:
'
1
0s'
,
}
}
for
(
k
,
v
)
in
kwargs
.
items
():
for
(
k
,
v
)
in
kwargs
.
items
():
params
[
k
]
=
v
params
[
k
]
=
v
...
@@ -350,8 +350,8 @@ def add_homa_bg(topo, subnet='10.42.0.0/16', **kwargs):
...
@@ -350,8 +350,8 @@ def add_homa_bg(topo, subnet='10.42.0.0/16', **kwargs):
s_app
.
stop_time
=
params
[
'app_stop_time'
]
s_app
.
stop_time
=
params
[
'app_stop_time'
]
s_app
.
remotes
=
remotes
s_app
.
remotes
=
remotes
s_host
.
add_component
(
s_app
)
s_host
.
add_component
(
s_app
)
#
s_probe = e2e.E2EPeriodicSampleProbe('probe', 'Rx')
s_probe
=
e2e
.
E2EPeriodicSampleProbe
(
'probe'
,
'Rx'
)
#
s_probe.interval = '1
00m
s'
s_probe
.
interval
=
'1s'
#
s_probe.file = f'sink-rx-{i}'
s_probe
.
file
=
f
'sink-rx-
{
i
}
'
#
s_app.add_component(s_probe)
s_app
.
add_component
(
s_probe
)
topo
.
add_host_r
(
s_host
)
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