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
ce0d1366
Commit
ce0d1366
authored
Nov 23, 2020
by
Hejing Li
Browse files
simple fix
parent
6ad98ddb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
16 deletions
+17
-16
experiments/modes/nodeconfig.py
experiments/modes/nodeconfig.py
+12
-12
experiments/modes/simulators.py
experiments/modes/simulators.py
+1
-1
experiments/pyexps/dctcp.py
experiments/pyexps/dctcp.py
+4
-3
No files found.
experiments/modes/nodeconfig.py
View file @
ce0d1366
...
...
@@ -201,12 +201,12 @@ class I40eDCTCPNode(NodeConfig):
'sysctl -w net.core.rmem_default=31457280'
,
'sysctl -w net.core.rmem_max=31457280'
,
'sysctl -w net.core.wmem_default=31457280'
,
'sysctl -w net.core.wmem_max
=
31457280'
,
'sysctl -w net.core.optmem_max
=
25165824'
,
'sysctl -w net.ipv4.tcp_mem
=
"786432 1048576 26777216"'
,
'sysctl -w net.ipv4.tcp_rmem
=
"8192 87380 33554432"'
,
'sysctl -w net.ipv4.tcp_wmem
=
"8192 87380 33554432"'
,
'sysctl -w net.ipv4.tcp_congestion_control
=
dctcp'
,
'sysctl -w net.core.wmem_max
=
31457280'
,
'sysctl -w net.core.optmem_max
=
25165824'
,
'sysctl -w net.ipv4.tcp_mem
=
"786432 1048576 26777216"'
,
'sysctl -w net.ipv4.tcp_rmem
=
"8192 87380 33554432"'
,
'sysctl -w net.ipv4.tcp_wmem
=
"8192 87380 33554432"'
,
'sysctl -w net.ipv4.tcp_congestion_control
=
dctcp'
,
'sysctl -w net.ipv4.tcp_ecn=1'
]
...
...
@@ -229,12 +229,12 @@ class CorundumDCTCPNode(NodeConfig):
'sysctl -w net.core.rmem_default=31457280'
,
'sysctl -w net.core.rmem_max=31457280'
,
'sysctl -w net.core.wmem_default=31457280'
,
'sysctl -w net.core.wmem_max
=
31457280'
,
'sysctl -w net.core.optmem_max
=
25165824'
,
'sysctl -w net.ipv4.tcp_mem
=
"786432 1048576 26777216"'
,
'sysctl -w net.ipv4.tcp_rmem
=
"8192 87380 33554432"'
,
'sysctl -w net.ipv4.tcp_wmem
=
"8192 87380 33554432"'
,
'sysctl -w net.ipv4.tcp_congestion_control
=
dctcp'
,
'sysctl -w net.core.wmem_max
=
31457280'
,
'sysctl -w net.core.optmem_max
=
25165824'
,
'sysctl -w net.ipv4.tcp_mem
=
"786432 1048576 26777216"'
,
'sysctl -w net.ipv4.tcp_rmem
=
"8192 87380 33554432"'
,
'sysctl -w net.ipv4.tcp_wmem
=
"8192 87380 33554432"'
,
'sysctl -w net.ipv4.tcp_congestion_control
=
dctcp'
,
'sysctl -w net.ipv4.tcp_ecn=1'
]
...
...
experiments/modes/simulators.py
View file @
ce0d1366
...
...
@@ -249,7 +249,7 @@ def create_dctcp_hosts(e, num, name_prefix, net, nic_class, host_class,
host
=
host_class
()
host
.
name
=
'%s.%d'
%
(
name_prefix
,
i
)
host
.
freq
=
cpu_freq
host
.
cpu_
freq
=
cpu_freq
node_config
=
nc_class
()
node_config
.
mtu
=
mtu
...
...
experiments/pyexps/dctcp.py
View file @
ce0d1366
...
...
@@ -17,11 +17,12 @@ types_of_app = ['DCTCPm']
num_pairs
=
2
max_k
=
199680
k_step
=
8320
#k_step = 8320
k_step
=
16640
link_rate_opt
=
'--LinkRate=10Gb/s '
# don't forget space at the end
link_latency_opt
=
'--LinkLatency=0 '
cpu_freq
=
'5GHz'
#GHz
mtu
=
9
000
mtu
=
4
000
ip_start
=
'192.168.64.1'
...
...
@@ -38,7 +39,7 @@ for h in types_of_host:
net
=
net_class
()
net
.
opt
=
link_rate_opt
+
link_latency_opt
+
f
'--EcnTh=
{
k_val
}
'
e
=
exp
.
Experiment
(
h
+
'-'
+
c
+
'-'
+
'dumbbell'
+
'-'
+
'DCTCPm'
+
f
'
{
k_val
}
'
)
e
=
exp
.
Experiment
(
h
+
'-'
+
c
+
'-'
+
'dumbbell'
+
'-'
+
'DCTCPm'
+
f
'
{
k_val
}
'
+
f
'-
{
mtu
}
'
)
e
.
add_network
(
net
)
e
.
checkpoint
=
True
...
...
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