"library/vscode:/vscode.git/clone" did not exist on "730204eed039289ca1c5ad15005841007c4bc755"
Commit a8de7067 authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

experiments/dctcp: use lower frequency for timed qemu

parent c0ef7db8
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment