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
4949bc00
Commit
4949bc00
authored
Jun 05, 2022
by
Antoine Kaufmann
Browse files
experiments: in netperf app support specifying the duration
parent
77eba22c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
experiments/simbricks/nodeconfig.py
experiments/simbricks/nodeconfig.py
+5
-2
No files found.
experiments/simbricks/nodeconfig.py
View file @
4949bc00
...
@@ -420,10 +420,13 @@ class NetperfServer(AppConfig):
...
@@ -420,10 +420,13 @@ class NetperfServer(AppConfig):
class
NetperfClient
(
AppConfig
):
class
NetperfClient
(
AppConfig
):
server_ip
=
'10.0.0.1'
server_ip
=
'10.0.0.1'
duration_tp
=
10
duration_lat
=
10
def
run_cmds
(
self
,
node
):
def
run_cmds
(
self
,
node
):
return
[
'netserver'
,
'sleep 0.5'
,
return
[
'netserver'
,
'sleep 0.5'
,
'netperf -H '
+
self
.
server_ip
,
'netperf -H '
+
self
.
server_ip
+
' -l '
+
str
(
self
.
duration_tp
),
'netperf -H '
+
self
.
server_ip
+
' -t TCP_RR -- -o mean_latency,p50_latency,p90_latency,p99_latency'
]
'netperf -H '
+
self
.
server_ip
+
' -l '
+
str
(
self
.
duration_lat
)
+
\
' -t TCP_RR -- -o mean_latency,p50_latency,p90_latency,p99_latency'
]
class
VRReplica
(
AppConfig
):
class
VRReplica
(
AppConfig
):
index
=
0
index
=
0
...
...
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