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
a8de7067
Commit
a8de7067
authored
Dec 05, 2020
by
Antoine Kaufmann
Browse files
experiments/dctcp: use lower frequency for timed qemu
parent
c0ef7db8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
experiments/pyexps/dctcp.py
experiments/pyexps/dctcp.py
+6
-3
No files found.
experiments/pyexps/dctcp.py
View file @
a8de7067
...
@@ -22,7 +22,8 @@ k_step = 8320
...
@@ -22,7 +22,8 @@ k_step = 8320
#k_step = 16640
#k_step = 16640
link_rate_opt
=
'--LinkRate=10Gb/s '
# don't forget space at the end
link_rate_opt
=
'--LinkRate=10Gb/s '
# don't forget space at the end
link_latency_opt
=
'--LinkLatency=500ns '
link_latency_opt
=
'--LinkLatency=500ns '
cpu_freq
=
'5GHz'
#GHz
cpu_freq
=
'5GHz'
cpu_freq_qemu
=
'2GHz'
#mtu = 4000
#mtu = 4000
sys_clock
=
'2GHz'
# if not set, default 1GHz
sys_clock
=
'2GHz'
# if not set, default 1GHz
...
@@ -44,10 +45,12 @@ for mtu in types_of_mtu:
...
@@ -44,10 +45,12 @@ for mtu in types_of_mtu:
e
=
exp
.
Experiment
(
h
+
'-'
+
c
+
'-'
+
'dumbbell'
+
'-'
+
'DCTCPm'
+
f
'
{
k_val
}
'
+
f
'-
{
mtu
}
'
)
e
=
exp
.
Experiment
(
h
+
'-'
+
c
+
'-'
+
'dumbbell'
+
'-'
+
'DCTCPm'
+
f
'
{
k_val
}
'
+
f
'-
{
mtu
}
'
)
e
.
add_network
(
net
)
e
.
add_network
(
net
)
freq
=
cpu_freq
# host
# host
if
h
==
'qemu'
:
if
h
==
'qemu'
:
host_class
=
sim
.
QemuHost
host_class
=
sim
.
QemuHost
elif
h
==
'qt'
:
elif
h
==
'qt'
:
freq
=
cpu_freq_qemu
def
qemu_timing
():
def
qemu_timing
():
h
=
sim
.
QemuHost
()
h
=
sim
.
QemuHost
()
h
.
sync
=
True
h
.
sync
=
True
...
@@ -80,9 +83,9 @@ for mtu in types_of_mtu:
...
@@ -80,9 +83,9 @@ for mtu in types_of_mtu:
servers
=
sim
.
create_dctcp_hosts
(
e
,
num_pairs
,
'server'
,
net
,
nic_class
,
host_class
,
servers
=
sim
.
create_dctcp_hosts
(
e
,
num_pairs
,
'server'
,
net
,
nic_class
,
host_class
,
nc_class
,
node
.
DctcpServer
,
cpu_
freq
,
mtu
)
nc_class
,
node
.
DctcpServer
,
freq
,
mtu
)
clients
=
sim
.
create_dctcp_hosts
(
e
,
num_pairs
,
'client'
,
net
,
nic_class
,
host_class
,
clients
=
sim
.
create_dctcp_hosts
(
e
,
num_pairs
,
'client'
,
net
,
nic_class
,
host_class
,
nc_class
,
node
.
DctcpClient
,
cpu_
freq
,
mtu
,
ip_start
=
num_pairs
+
1
)
nc_class
,
node
.
DctcpClient
,
freq
,
mtu
,
ip_start
=
num_pairs
+
1
)
i
=
0
i
=
0
...
...
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