"...composable_kernel.git" did not exist on "f0c620c42e753432ded96040abdac1bbae89aab5"
Commit bf60b96e authored by Antoine Kaufmann's avatar Antoine Kaufmann Committed by Hejing Li
Browse files

experiments: update e2e_bgsplit experiment with working partitions

parent a530c146
...@@ -31,9 +31,9 @@ from simbricks.orchestration.e2e_topologies import ( ...@@ -31,9 +31,9 @@ from simbricks.orchestration.e2e_topologies import (
DCFatTree, add_contig_bg DCFatTree, add_contig_bg
) )
random.seed(42)
e = exp.Experiment('e2e_bg')
splits = [1,2,4]
options = { options = {
'ns3::TcpSocket::SegmentSize': '1448', 'ns3::TcpSocket::SegmentSize': '1448',
...@@ -41,19 +41,30 @@ options = { ...@@ -41,19 +41,30 @@ options = {
'ns3::TcpSocket::RcvBufSize': '524288', 'ns3::TcpSocket::RcvBufSize': '524288',
} }
topology = DCFatTree( experiments = []
for N in splits:
e = exp.Experiment(f'e2e_bgsplit-{N}')
# Make sure background hosts are placed the same way
random.seed(42)
# Create empty topology first
topology = DCFatTree(
n_spine_sw=1, n_spine_sw=1,
n_agg_bl=2, n_agg_bl=2,
n_agg_sw=1, n_agg_sw=1,
n_agg_racks=1, n_agg_racks=2,
h_per_rack=1, h_per_rack=10,
) )
add_contig_bg(topology) # fill up with background traffic hosts
nets = e2e_part.partition(topology, 2) add_contig_bg(topology)
for net in nets:
# Partition into N ns-3 processes
nets = e2e_part.partition(topology, N)
for net in nets:
net.e2e_global.stop_time = '1s'
net.opt = ' '.join([f'--{o[0]}={o[1]}' for o in options.items()]) net.opt = ' '.join([f'--{o[0]}={o[1]}' for o in options.items()])
net.wait = True net.wait = True
e.add_network(net) e.add_network(net)
net.init_network() net.init_network()
experiments = [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