You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to have two Ethernet devices in each system in an ARM-distributed system.
I was able to run a distributed system simulation with a single Ethernet device per system without any issues.
I tried to add two ethernet devices to the simulation as below:
I edited the dist_bigLITTLE.py file to instantiate a second DistEtherLink as below:
def addEthernet(system, options):
# create NIC
dev = IGbE_e1000()
system.attach_pci(dev)
system.ethernet = dev
# create a second NIC
dev2 = IGbE_e1000()
system.attach_pci(dev2)
system.ethernet2 = dev2
# create distributed ethernet link
system.etherlink = DistEtherLink(
speed=options.ethernet_linkspeed,
delay=options.ethernet_linkdelay,
dist_rank=options.dist_rank,
dist_size=options.dist_size,
server_name=options.dist_server_name,
server_port=options.dist_server_port,
sync_start=options.dist_sync_start,
sync_repeat=options.dist_sync_repeat,
)
system.etherlink.int0 = Parent.system.ethernet.interface
if options.etherdump:
system.etherdump = EtherDump(file=options.etherdump)
system.etherlink.dump = system.etherdump
# create a second distributed ethernet link
system.etherlink2 = DistEtherLink(
speed=options.ethernet_linkspeed,
delay=options.ethernet_linkdelay,
dist_rank=options.dist_rank,
dist_size=options.dist_size,
server_name=options.dist_server_name,
server_port=options.dist_server_port,
sync_start=options.dist_sync_start,
sync_repeat=options.dist_sync_repeat,
)
system.etherlink2.int0 = Parent.system.ethernet2.interface
if options.etherdump:
system.etherdump2 = EtherDump(file=options.etherdump)
system.etherlink2.dump = system.etherdump
As shown, I first defined an ethernet2 device in the system and then instantiated a second etherlink2.
After I made these changes, the second system simulation did not run. It hung without initiating the bootup.
I guessed that this is related to the switch as well, maybe the switch needs to be configured to accept 4 connections, 2 per system.
What is the correct way to add 2 Ethernet devices per system? Is there a parameter in the switch that I can change to accommodate this (I could not find such an option so far)?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to have two Ethernet devices in each system in an ARM-distributed system.
I was able to run a distributed system simulation with a single Ethernet device per system without any issues.
I tried to add two ethernet devices to the simulation as below:
I edited the dist_bigLITTLE.py file to instantiate a second DistEtherLink as below:
gem5/configs/example/arm/dist_bigLITTLE.py
Line 138 in c890e6b
As shown, I first defined an ethernet2 device in the system and then instantiated a second etherlink2.
After I made these changes, the second system simulation did not run. It hung without initiating the bootup.
I guessed that this is related to the switch as well, maybe the switch needs to be configured to accept 4 connections, 2 per system.
What is the correct way to add 2 Ethernet devices per system? Is there a parameter in the switch that I can change to accommodate this (I could not find such an option so far)?
Beta Was this translation helpful? Give feedback.
All reactions