repowisealiyun/simai

Architecture of aliyun/simai

aliyun/simai is 340 source files holding 2,486 symbols across 4 modules, written mainly in Python, C++, Shell. The largest module is vidur-alibabacloud, with 160 files, and 8 files are entry points into the dependency graph.

How simai fits together

A run starts from a chosen mode (analytical, simulation or flow-only), which selects a scenario and feeds the simulation front end. The entry point astra-sim-alibabacloud/astra-sim/network_frontend/ns3/entry.h connects the network front end to the NS3 simulator, and astra-sim-alibabacloud/astra-sim/network_frontend/analytical pairs an analytical network API with a simulation driver called AnaSim. The astra-sim-alibabacloud/astra-sim/system directory executes the collective and network models, and astra-sim-alibabacloud/astra-sim/workload defines runnable simulation layers through the Layer class. On the Python side, vidur-alibabacloud/vidur/main.py is an entry point that runs scheduling scenarios, and vidur-alibabacloud/vidur/config holds the configuration dataclasses for the models it simulates. Profiling and analysis components, including vidur-alibabacloud/vidur/config_optimizer/analyzer/dashboard/main.py, turn run outputs into performance measurements and dashboards.

Largest modules

  • vidur-alibabacloud: 160 files and 14,468 lines of code
  • astra-sim-alibabacloud: 137 files and 17,600 lines of code
  • root: 1 file and 28 lines of code
  • scripts: 1 file and 79 lines of code

Languages

By file count: Python 159 files, C++ 135 files, Shell 3 files, Dockerfile 1 file, Makefile 1 file.

Documentation

Repowise documents simai in 501 pages generated from the source, 29 of them written explanations of the repository and its modules. Module guides include:

  • astra-sim-alibabacloud/astra-sim: Astra Sim Overview
  • vidur-alibabacloud/vidur/config: Base Configuration Models
  • vidur-alibabacloud/vidur/config_optimizer/analyzer: Bottleneck Analysis Backend
  • vidur-alibabacloud/vidur/profiling/cpu_overhead: CPU Overhead Benchmarks

More on simai: summary and FAQ, codebase overview, code health.

Related guide: Best dependency graph tools for monorepos