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
3e72b1ca
Commit
3e72b1ca
authored
Jun 26, 2024
by
Hejing Li
Committed by
Jonas Kaufmann
Aug 20, 2024
Browse files
sepecification.py: add netperf app
parent
5f0013d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
experiments/simbricks/splitsim/specification.py
experiments/simbricks/splitsim/specification.py
+27
-1
No files found.
experiments/simbricks/splitsim/specification.py
View file @
3e72b1ca
...
@@ -335,4 +335,30 @@ class Sleep(AppConfig):
...
@@ -335,4 +335,30 @@ class Sleep(AppConfig):
self
.
server_ip
=
server_ip
self
.
server_ip
=
server_ip
def
run_cmds
(
self
,
node
:
Host
)
->
tp
.
List
[
str
]:
def
run_cmds
(
self
,
node
:
Host
)
->
tp
.
List
[
str
]:
return
[
'sleep 10'
]
return
[
'sleep 10'
]
\ No newline at end of file
class
NetperfServer
(
AppConfig
):
def
run_cmds
(
self
,
node
:
Host
)
->
tp
.
List
[
str
]:
return
[
'netserver'
,
'sleep infinity'
]
class
NetperfClient
(
AppConfig
):
def
__init__
(
self
,
server_ip
:
str
=
'192.168.64.1'
)
->
None
:
super
().
__init__
()
self
.
server_ip
=
server_ip
self
.
duration_tp
=
10
self
.
duration_lat
=
10
def
run_cmds
(
self
,
node
:
Host
)
->
tp
.
List
[
str
]:
return
[
'netserver'
,
'sleep 0.5'
,
f
'netperf -H
{
self
.
server_ip
}
-l
{
self
.
duration_tp
}
'
,
(
f
'netperf -H
{
self
.
server_ip
}
-l
{
self
.
duration_lat
}
-t TCP_RR'
' -- -o mean_latency,p50_latency,p90_latency,p99_latency'
)
]
\ No newline at end of file
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