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
978a6cb8
"src/include/ConstantMatrixDescriptor.hpp" did not exist on "aa0199a31ca262f1a62746dc08e54ee6dc71fd5c"
Commit
978a6cb8
authored
May 06, 2021
by
Hejing Li
Browse files
ScaleHost script minor change
parent
dfa9594d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
experiments/pyexps/ScaleHost.py
experiments/pyexps/ScaleHost.py
+8
-7
experiments/simbricks/nodeconfig.py
experiments/simbricks/nodeconfig.py
+9
-2
No files found.
experiments/pyexps/ScaleHost.py
View file @
978a6cb8
...
...
@@ -34,13 +34,13 @@ import simbricks.nodeconfig as node
host_types
=
[
'gt'
,
'qt'
,
'qemu'
]
nic_types
=
[
'cv'
,
'cb'
,
'ib'
]
net_types
=
[
'sw
itch
'
,
'br
idge
'
]
app
=
[
'
UDPmicro
'
]
net_types
=
[
'sw'
,
'br'
]
app
=
[
'
Host
'
]
total_rate
=
1000
# Mbps
num_client_max
=
8
num_client_step
=
2
num_client_types
=
[
1
,
3
,
7
,
1
5
,
31
]
num_client_types
=
[
1
,
4
,
9
,
1
4
,
20
]
#for n in range(1, num_client_max + 1, num_client_step):
# num_client_types.append(n)
# print(n)
...
...
@@ -59,11 +59,11 @@ for n_client in num_client_types:
for
nic_type
in
nic_types
:
for
net_type
in
net_types
:
e
=
exp
.
Experiment
(
host_type
+
'-'
+
nic_type
+
'-'
+
net_type
+
'-
UDPmicro
-'
+
f
'
{
total_rate
}
'
+
f
'-
{
n_client
}
'
)
e
=
exp
.
Experiment
(
host_type
+
'-'
+
nic_type
+
'-'
+
net_type
+
'-
Host
-'
+
f
'
{
total_rate
}
m
'
+
f
'-
{
n_client
}
'
)
# 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
()
else
:
raise
NameError
(
net_type
)
...
...
@@ -105,12 +105,13 @@ for n_client in num_client_types:
clients
=
sim
.
create_basic_hosts
(
e
,
n_client
,
'client'
,
net
,
nic_class
,
host_class
,
nc_class
,
node
.
IperfUDPClient
,
ip_start
=
2
)
clients
[
n_client
-
1
].
node_config
.
app
=
node
.
IperfUDPClientLast
()
clients
[
n_client
-
1
].
node_config
.
app
.
is_last
=
True
clients
[
n_client
-
1
].
wait
=
True
for
c
in
clients
:
c
.
node_config
.
app
.
server_ip
=
servers
[
0
].
node_config
.
ip
c
.
node_config
.
app
.
rate
=
rate
#c.wait = True
print
(
e
.
name
)
...
...
experiments/simbricks/nodeconfig.py
View file @
978a6cb8
...
...
@@ -317,11 +317,18 @@ class IperfUDPServer(AppConfig):
class
IperfTCPClient
(
AppConfig
):
server_ip
=
'10.0.0.1'
procs
=
1
is_last
=
False
def
run_cmds
(
self
,
node
):
return
[
'sleep 1'
,
cmds
=
[
'sleep 1'
,
'iperf -l 32M -w 32M -c '
+
self
.
server_ip
+
' -i 1 -P '
+
str
(
self
.
procs
)]
if
self
.
is_last
:
cmds
.
append
(
'sleep 0.5'
)
else
:
cmds
.
append
(
'sleep 10'
)
return
cmds
class
IperfUDPClient
(
AppConfig
):
server_ip
=
'10.0.0.1'
...
...
@@ -335,7 +342,7 @@ class IperfUDPClient(AppConfig):
if
self
.
is_last
:
cmds
.
append
(
'sleep 0.5'
)
else
:
cmds
.
append
(
'sleep
infinity
'
)
cmds
.
append
(
'sleep
10
'
)
return
cmds
...
...
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