Merge pull request #1260 from firesim/rework-startup

Setup defaults to be single-node
This commit is contained in:
Abraham Gonzalez 2023-01-17 14:14:29 -08:00 committed by GitHub
commit 15b80ee329
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 20 deletions

View File

@ -25,7 +25,7 @@ args:
run_farm_hosts_to_use:
- f1.16xlarge: 0
- f1.4xlarge: 0
- f1.2xlarge: 0
- f1.2xlarge: 1
- m4.16xlarge: 0
- z1d.3xlarge: 0
- z1d.6xlarge: 0

View File

@ -21,9 +21,8 @@ metasimulation:
metasimulation_only_vcs_plusargs: "+vcs+initreg+0 +vcs+initmem+0"
target_config:
# Set topology: no_net_config to run without a network simulation
topology: example_8config
no_net_num_nodes: 2
topology: no_net_config
no_net_num_nodes: 1
link_latency: 6405
switching_latency: 10
net_bandwidth: 200
@ -33,7 +32,7 @@ target_config:
# or from config_build_recipes.yaml for metasimulation
# In homogeneous configurations, use this to set the hardware config deployed
# for all simulators
default_hw_config: firesim_rocket_quadcore_nic_l2_llc4mb_ddr3
default_hw_config: firesim_rocket_quadcore_no_nic_l2_llc4mb_ddr3
# Advanced: Specify any extra plusargs you would like to provide when
# booting the simulator (in both FPGA-sim and metasim modes). This is

View File

@ -25,7 +25,7 @@ run_farm:
run_farm_hosts_to_use:
- f1.16xlarge: 0
- f1.4xlarge: 0
- f1.2xlarge: 0
- f1.2xlarge: 1
- m4.16xlarge: 0
- z1d.3xlarge: 0
- z1d.6xlarge: 0
@ -41,9 +41,8 @@ metasimulation:
metasimulation_only_vcs_plusargs: "+vcs+initreg+0 +vcs+initmem+0"
target_config:
# Set topology: no_net_config to run without a network simulation
topology: example_8config
no_net_num_nodes: 2
topology: no_net_config
no_net_num_nodes: 1
link_latency: 6405
switching_latency: 10
net_bandwidth: 200
@ -53,7 +52,7 @@ target_config:
# or from config_build_recipes.yaml for metasimulation
# In homogeneous configurations, use this to set the hardware config deployed
# for all simulators
default_hw_config: firesim_rocket_quadcore_nic_l2_llc4mb_ddr3
default_hw_config: firesim_rocket_quadcore_no_nic_l2_llc4mb_ddr3
# Advanced: Specify any extra plusargs you would like to provide when
# booting the simulator (in both FPGA-sim and metasim modes). This is

View File

@ -66,9 +66,10 @@ you have not modified it):
:code: yaml
For the 8-node cluster simulation, the defaults in this file are close to what
we want. Let's outline the important parameters:
we want but require slight modification. Let's outline the important parameters:
* ``f1.16xlarges: 1``: Change this parameter. This tells the manager that we want to launch one ``f1.16xlarge`` when we call the ``launchrunfarm`` command.
* ``f1.4xlarges: 0``: Change this parameter. This tells the manager to not launch any ``f1.4xlarge`` machines when we call the ``launchrunfarm`` command.
* ``topology: example_8config``: This tells the manager to use the topology named ``example_8config`` which is defined in ``deploy/runtools/user_topology.py``. This topology simulates an 8-node cluster with one ToR switch.
* ``link_latency: 6405``: This models a network with 6405 cycles of link latency. Since we are modeling processors running at 3.2 Ghz, 1 cycle = 1/3.2 ns, so 6405 cycles is roughly 2 microseconds.
* ``switching_latency: 10``: This models switches with a minimum port-to-port latency of 10 cycles.

View File

@ -79,10 +79,9 @@ You'll see other parameters in the ``run_farm`` mapping, like ``run_instance_mar
AWS user, you can see what these do by looking at the
:ref:`manager-configuration-files` section. Otherwise, don't change them.
Now, let's change the ``target_config`` mapping to model the correct target design.
By default, it is set to model an 8-node cluster with a cycle-accurate network.
Instead, we want to model a single-node with no network. To do so, we will need
to change a few items in this section:
Now, let's verify that the ``target_config`` mapping will model the correct target design.
By default, it is set to model a single-node with no network.
It should look like the following:
::
@ -100,13 +99,11 @@ to change a few items in this section:
default_hw_config: firesim_rocket_quadcore_no_nic_l2_llc4mb_ddr3
Note that we changed three of the parameters here: ``topology`` is now set to
Note ``topology`` is set to
``no_net_config``, indicating that we do not want a network. Then,
``no_net_num_nodes`` is set to ``1``, indicating that we only want to simulate
one node. Lastly, we changed ``default_hw_config`` from
``firesim_rocket_quadcore_nic_l2_llc4mb_ddr3`` to
``firesim_rocket_quadcore_no_nic_l2_llc4mb_ddr3``. Notice the subtle difference in this
last option? All we did is switch to a hardware configuration that does not
one node. Lastly, the ``default_hw_config`` is
``firesim_rocket_quadcore_no_nic_l2_llc4mb_ddr3``. This uses a hardware configuration that does not
have a NIC. This hardware configuration models a Quad-core Rocket Chip with 4
MB of L2 cache and 16 GB of DDR3, and **no** network interface card.