Commit 1b48864c authored by Hejing Li's avatar Hejing Li
Browse files

rename scalability python script

parent 501c1a5d
......@@ -25,7 +25,7 @@ import simbricks.simulators as sim
import simbricks.nodeconfig as node
# iperf TCP_single test
# iperf UDP test
# naming convention following host-nic-net-app
# host: gem5-timing
# nic: cv/cb/ib
......
......@@ -25,8 +25,8 @@ import simbricks.simulators as sim
import simbricks.nodeconfig as node
# iperf TCP_single test
# naming convention following host-nic-net-app
# iperf UDP Load Scalability test
# naming convention following host-nic-net
# host: gem5-timing
# nic: cv/cb/ib
# net: wire/switch/dumbbell/bridge
......@@ -34,13 +34,13 @@ import simbricks.nodeconfig as node
host_types = ['gt', 'qt', 'qemu']
nic_types = ['cv','cb','ib']
net_types = ['wire', 'switch', 'bridge']
net_types = ['wire', 'sw', 'br']
app = ['UDPs']
rate_types = []
rate_start = 0
rate_end = 140
rate_step = 20
rate_end = 1000
rate_step = 100
for r in range(rate_start, rate_end + 1, rate_step):
rate = f'{r}m'
rate_types.append(rate)
......@@ -53,11 +53,11 @@ for rate in rate_types:
for nic_type in nic_types:
for net_type in net_types:
e = exp.Experiment(host_type + '-' + nic_type + '-' + net_type + '-UDPs-' + rate )
e = exp.Experiment(host_type + '-' + nic_type + '-' + net_type + '-Load-' + rate )
# network
if net_type == 'switch':
if net_type == 'sw':
net = sim.SwitchNet()
elif net_type == 'bridge':
elif net_type == 'br':
net = sim.NS3BridgeNet()
elif net_type == 'wire':
net = sim.WireNet()
......@@ -76,7 +76,7 @@ for rate in rate_types:
host_class = qemu_timing
elif host_type == 'gt':
host_class = sim.Gem5Host
e.checkpoint = False
e.checkpoint = True
else:
raise NameError(host_type)
......@@ -106,6 +106,7 @@ for rate in rate_types:
clients[0].wait = True
clients[0].node_config.app.server_ip = servers[0].node_config.ip
clients[0].node_config.app.is_last = True
clients[0].node_config.app.rate = rate
print(e.name)
......
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