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