Commit 5f2549b6 authored by Hejing Li's avatar Hejing Li
Browse files

nopaxos.py add intel nic and change naming

parent 3ff6bad1
......@@ -2,26 +2,54 @@ import modes.experiments as exp
import modes.simulators as sim
import modes.nodeconfig as node
host_configs = ['bm', 'cycle']
host_configs = ['qemu', 'gt']
seq_configs = ['swseq', 'ehseq']
nic_configs = ['ib', 'cb', 'cv']
experiments = []
link_rate_opt = '--LinkRate=100Gb/s ' # don't forget space at the end
link_latency_opt = '--LinkLatency=500ns '
for host_config in host_configs:
for seq_config in seq_configs:
e = exp.Experiment('nopaxos-' + host_config + '-' + seq_config)
for nic_config in nic_configs:
e = exp.Experiment('nopaxos-' + host_config + '-' + nic_config + '-' + seq_config)
net = sim.NS3SequencerNet()
net.opt = link_rate_opt + link_latency_opt
e.add_network(net)
if host_config == 'bm':
# host
if host_config == 'qemu':
host_class = sim.QemuHost
# nic
if nic_config == 'ib':
nic_class = sim.I40eNIC
nc_class = node.I40eLinuxNode
elif nic_config == 'cb':
nic_class = sim.CorundumBMNIC
nc_class = node.CorundumLinuxNode
elif host_config == 'cycle':
else:
continue
elif host_config == 'gt':
host_class = sim.Gem5Host
e.checkpoint = False
# nic
if nic_config == 'ib':
nic_class = sim.I40eNIC
nc_class = node.I40eLinuxNode
elif nic_config == 'cb':
nic_class = sim.CorundumBMNIC
nc_class = node.CorundumLinuxNode
elif nic_config == 'cv':
nic_class = sim.CorundumVerilatorNIC
nc_class = node.CorundumLinuxNode
else:
raise NameError(nic_config)
else:
raise NameError(host_config)
nc_class.disk_image = 'nopaxos'
if seq_config == 'ehseq':
......
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