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
4257a3a7
"...resnet50_tensorflow.git" did not exist on "4a351ba0d51a2884bfc603854c7b7990de746cc2"
Commit
4257a3a7
authored
Sep 03, 2021
by
Antoine Kaufmann
Browse files
experiments: multiple racks per host for memcache
parent
2035c096
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
experiments/pyexps/dist_memcache.py
experiments/pyexps/dist_memcache.py
+11
-3
No files found.
experiments/pyexps/dist_memcache.py
View file @
4257a3a7
...
...
@@ -29,10 +29,12 @@ import simbricks.nodeconfig as node
host_types
=
[
'qemu'
,
'gem5'
,
'qt'
]
n_nets
=
[
1
,
2
,
3
,
4
,
8
,
16
,
32
]
n_hosts
=
[
2
,
10
,
20
,
30
,
40
,
50
]
n_hosts
=
[
2
,
10
,
20
,
30
,
35
,
40
,
50
,
60
,
70
,
80
]
experiments
=
[]
separate_net
=
True
nets_per_host
=
2
def
select_servers
(
i
,
j
,
racks
,
n
,
n_host
):
nc
=
int
(
n_host
/
2
)
...
...
@@ -58,7 +60,10 @@ for host_type in host_types:
for
n_host
in
n_hosts
:
random
.
seed
(
n
+
1000
*
n_host
)
nh
=
n
if
not
separate_net
else
n
+
1
nh
=
math
.
ceil
(
n
/
nets_per_host
)
if
separate_net
:
nh
+=
1
e
=
exp
.
DistributedExperiment
(
f
'dist_memcache-
{
host_type
}
-
{
n
}
-
{
n_host
}
'
,
nh
)
# host
...
...
@@ -85,7 +90,10 @@ for host_type in host_types:
racks
=
[]
for
i
in
range
(
0
,
n
):
h_i
=
i
if
not
separate_net
else
i
+
1
h_i
=
int
(
i
/
nets_per_host
)
if
separate_net
:
h_i
+=
1
switch
=
sim
.
SwitchNet
()
switch
.
name
=
'switch_%d'
%
(
i
,)
if
host_type
==
'qemu'
:
...
...
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