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
1b48864c
Commit
1b48864c
authored
Apr 30, 2021
by
Hejing Li
Browse files
rename scalability python script
parent
501c1a5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
experiments/pyexps/ScaleHost.py
experiments/pyexps/ScaleHost.py
+1
-1
experiments/pyexps/ScaleLoad.py
experiments/pyexps/ScaleLoad.py
+10
-9
No files found.
experiments/pyexps/
udp-miciobench
.py
→
experiments/pyexps/
ScaleHost
.py
View file @
1b48864c
...
...
@@ -25,7 +25,7 @@ import simbricks.simulators as sim
import
simbricks.nodeconfig
as
node
# iperf
TCP_single
test
# iperf
UDP
test
# naming convention following host-nic-net-app
# host: gem5-timing
# nic: cv/cb/ib
...
...
experiments/pyexps/
gt_udp_single
.py
→
experiments/pyexps/
ScaleLoad
.py
View file @
1b48864c
...
...
@@ -25,8 +25,8 @@ import simbricks.simulators as sim
import
simbricks.nodeconfig
as
node
# iperf
TCP_single
test
# naming convention following host-nic-net
-app
# iperf
UDP Load Scalability
test
# naming convention following host-nic-net
# host: gem5-timing
# nic: cv/cb/ib
# net: wire/switch/dumbbell/bridge
...
...
@@ -34,13 +34,13 @@ import simbricks.nodeconfig as node
host_types
=
[
'gt'
,
'qt'
,
'qemu'
]
nic_types
=
[
'cv'
,
'cb'
,
'ib'
]
net_types
=
[
'wire'
,
'sw
itch
'
,
'br
idge
'
]
net_types
=
[
'wire'
,
'sw'
,
'br'
]
app
=
[
'UDPs'
]
rate_types
=
[]
rate_start
=
0
rate_end
=
1
4
0
rate_step
=
2
0
rate_end
=
1
00
0
rate_step
=
10
0
for
r
in
range
(
rate_start
,
rate_end
+
1
,
rate_step
):
rate
=
f
'
{
r
}
m'
rate_types
.
append
(
rate
)
...
...
@@ -53,11 +53,11 @@ for rate in rate_types:
for
nic_type
in
nic_types
:
for
net_type
in
net_types
:
e
=
exp
.
Experiment
(
host_type
+
'-'
+
nic_type
+
'-'
+
net_type
+
'-
UDPs
-'
+
rate
)
e
=
exp
.
Experiment
(
host_type
+
'-'
+
nic_type
+
'-'
+
net_type
+
'-
Load
-'
+
rate
)
# network
if
net_type
==
'sw
itch
'
:
if
net_type
==
'sw'
:
net
=
sim
.
SwitchNet
()
elif
net_type
==
'br
idge
'
:
elif
net_type
==
'br'
:
net
=
sim
.
NS3BridgeNet
()
elif
net_type
==
'wire'
:
net
=
sim
.
WireNet
()
...
...
@@ -76,7 +76,7 @@ for rate in rate_types:
host_class
=
qemu_timing
elif
host_type
==
'gt'
:
host_class
=
sim
.
Gem5Host
e
.
checkpoint
=
Fals
e
e
.
checkpoint
=
Tru
e
else
:
raise
NameError
(
host_type
)
...
...
@@ -106,6 +106,7 @@ for rate in rate_types:
clients
[
0
].
wait
=
True
clients
[
0
].
node_config
.
app
.
server_ip
=
servers
[
0
].
node_config
.
ip
clients
[
0
].
node_config
.
app
.
is_last
=
True
clients
[
0
].
node_config
.
app
.
rate
=
rate
print
(
e
.
name
)
...
...
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