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
62ee1d5a
Commit
62ee1d5a
authored
Aug 06, 2021
by
Antoine Kaufmann
Browse files
experiments: add parameter for proxy shm size
parent
7ec0b8a0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
experiments/simbricks/proxy.py
experiments/simbricks/proxy.py
+7
-2
No files found.
experiments/simbricks/proxy.py
View file @
62ee1d5a
...
...
@@ -36,6 +36,9 @@ class NetProxy(SimProxy):
# List of tuples (nic, with_listener)
nics
=
None
# Shared memory size in GB
shm_size
=
2048
class
NetProxyListener
(
NetProxy
):
def
__init__
(
self
):
self
.
listen
=
True
...
...
@@ -65,7 +68,8 @@ class RDMANetProxyListener(NetProxyListener):
def
run_cmd
(
self
,
env
):
cmd
=
(
f
'
{
env
.
repodir
}
/dist/net_rdma -l '
f
'-s
{
env
.
proxy_shm_path
(
self
)
}
'
)
f
'-s
{
env
.
proxy_shm_path
(
self
)
}
'
f
'-S
{
self
.
shm_size
}
'
)
for
(
nic
,
local
)
in
self
.
nics
:
cmd
+=
'-d '
if
local
else
'-n '
cmd
+=
env
.
nic_eth_path
(
nic
)
+
' '
...
...
@@ -78,7 +82,8 @@ class RDMANetProxyConnecter(NetProxyConnecter):
def
run_cmd
(
self
,
env
):
cmd
=
(
f
'
{
env
.
repodir
}
/dist/net_rdma '
f
'-s
{
env
.
proxy_shm_path
(
self
)
}
'
)
f
'-s
{
env
.
proxy_shm_path
(
self
)
}
'
f
'-S
{
self
.
shm_size
}
'
)
for
(
nic
,
local
)
in
self
.
nics
:
cmd
+=
'-n '
if
local
else
'-d '
cmd
+=
env
.
nic_eth_path
(
nic
)
+
' '
...
...
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