Commit 274f06bf authored by Hejing Li's avatar Hejing Li
Browse files

dctcp.py: add O3

parent 232952d8
...@@ -10,19 +10,21 @@ import modes.nodeconfig as node ...@@ -10,19 +10,21 @@ import modes.nodeconfig as node
# net: switch/dumbbell/bridge # net: switch/dumbbell/bridge
# app: DCTCPm # app: DCTCPm
types_of_host = ['qemu', 'qt','gt'] types_of_host = ['qemu', 'qt','gt', 'gO3']
types_of_nic = ['cv','cb','ib'] types_of_nic = ['cv','cb','ib']
types_of_net = ['dumbbell'] types_of_net = ['dumbbell']
types_of_app = ['DCTCPm'] types_of_app = ['DCTCPm']
types_of_mtu = [1500, 4000, 9000]
num_pairs = 2 num_pairs = 2
max_k = 199680 max_k = 199680
#k_step = 8320 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=0 ' link_latency_opt = '--LinkLatency=500ns '
cpu_freq = '5GHz' #GHz cpu_freq = '5GHz' #GHz
mtu = 4000 #mtu = 4000
sys_clock = '2GHz' # if not set, default 1GHz
ip_start = '192.168.64.1' ip_start = '192.168.64.1'
...@@ -31,8 +33,8 @@ experiments = [] ...@@ -31,8 +33,8 @@ experiments = []
# set network sim # set network sim
net_class = sim.NS3DumbbellNet net_class = sim.NS3DumbbellNet
for mtu in types_of_mtu:
for h in types_of_host: for h in types_of_host:
for c in types_of_nic: for c in types_of_nic:
for k_val in range(0, max_k + 1, k_step): for k_val in range(0, max_k + 1, k_step):
...@@ -53,6 +55,12 @@ for h in types_of_host: ...@@ -53,6 +55,12 @@ for h in types_of_host:
host_class = qemu_timing host_class = qemu_timing
elif h == 'gt': elif h == 'gt':
host_class = sim.Gem5Host host_class = sim.Gem5Host
host_class.sys_clock = sys_clock
e.checkpoint = True
elif h == 'gO3':
host_class = sim.Gem5Host
host_class.cpu_type = 'DerivO3CPU'
host_class.sys_clock = sys_clock
e.checkpoint = True e.checkpoint = True
else: else:
raise NameError(h) raise NameError(h)
......
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