Commit d6e42ff5 authored by Antoine Kaufmann's avatar Antoine Kaufmann Committed by Hejing Li
Browse files

experiments rework e2e_bgsplit experiment with new partitioner

parent d9369dac
...@@ -33,41 +33,38 @@ from simbricks.orchestration.e2e_topologies import ( ...@@ -33,41 +33,38 @@ from simbricks.orchestration.e2e_topologies import (
splits = [1,2,4] sync_factors = [1.0, 0.5, 0.25, 0.1]
options = { options = {
'ns3::TcpSocket::SegmentSize': '1448', 'ns3::TcpSocket::SegmentSize': '1448',
'ns3::TcpSocket::SndBufSize': '524288', 'ns3::TcpSocket::SndBufSize': '524288',
'ns3::TcpSocket::RcvBufSize': '524288', 'ns3::TcpSocket::RcvBufSize': '524288',
} }
kinds_of_parts = e2e_part.hier_partitions(DCFatTree()).keys()
experiments = [] experiments = []
for N in splits: for p in kinds_of_parts:
e = exp.Experiment(f'e2e_bgsplit-{N}') for sf in sync_factors:
# Make sure background hosts are placed the same way e = exp.Experiment(f'e2e_bgsplit-{p}-{sf}')
random.seed(42) # Make sure background hosts are placed the same way
random.seed(42)
# Create empty topology first # Create empty topology first
topology = DCFatTree( topology = DCFatTree()
n_spine_sw=1, # fill up with background traffic hosts
n_agg_bl=2, add_contig_bg(topology)
n_agg_sw=1,
n_agg_racks=2,
h_per_rack=10,
)
# fill up with background traffic hosts
add_contig_bg(topology)
# Partition into N ns-3 processes partition = e2e_part.hier_partitions(topology)[p]
nets, dot = e2e_part.partition(topology, N) nets = e2e_part.instantiate_partition(topology, partition, sf)
for net in nets: dot = e2e_part.dot_topology(topology, partition)
net.e2e_global.stop_time = '1s' for net in nets:
net.opt = ' '.join([f'--{o[0]}={o[1]}' for o in options.items()]) net.e2e_global.stop_time = '50ms'
net.wait = True net.opt = ' '.join([f'--{o[0]}={o[1]}' for o in options.items()])
e.add_network(net) net.wait = True
net.init_network() e.add_network(net)
net.init_network()
with open(f'out/{e.name}.dot', 'w') as f: with open(f'out/{e.name}.dot', 'w') as f:
f.write(dot) f.write(dot)
experiments.append(e) experiments.append(e)
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