solvers.DataModel
solvers.DataModel()Analyzes the ‘Data Wall’ — the throughput bottleneck between storage and compute.
This model simulates the data pipeline constraints, comparing the data demand of a workload (e.g., training tokens or high-resolution video frames) against the physical bandwidth of the storage hierarchy and IO interconnects.
Literature Source: 1. Janapa Reddi et al. (2025), “Machine Learning Systems,” Chapter 4 (Data Engineering). 2. Beitzel et al. (2024), “The Data Wall: Scaling Laws for Data Ingestion in AI.” 3. Mohan et al. (2022), “Analyzing and Mitigating Data Bottlenecks in Deep Learning Training.”
Methods
| Name | Description |
|---|---|
| solve | Compare ingestion demand with the slowest specified data path. |
solve
solvers.DataModel.solve(workload_data_rate, hardware)Compare ingestion demand with the slowest specified data path.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| workload_data_rate | Quantity | Nonnegative required ingestion bandwidth, convertible to GB/s. | required |
| hardware | HardwareNode | Hardware entry with optional storage and I/O bandwidth specifications. | required |
Returns
| Name | Type | Description |
|---|---|---|
| DataResult | Demand, supply, and margin in GB/s; utilization is demand/supply. is_stalled indicates demand above supply, not an empirical probability. Missing positive paths yield zero supply and infinite utilization. |
Notes
Equation: supply = min(positive specified storage and I/O bandwidths); utilization = demand/supply and margin = supply - demand.
Assumptions: each specified path carries the same steady-state byte stream. An absent or nonpositive path is omitted rather than treated as a zero-rate physical link. If all paths are absent, capacity is unknown.
Excludes: CPU transformations, buffering, burstiness, cache reuse, and concurrent clients. The stall flag alone does not predict elapsed time.
References
Derivation: conservation of the same byte stream across serial stages makes the smallest stage bandwidth the sustainable pipeline supply.
Examples
>>> from mlsysim import Hardware, Q_
>>> result = DataModel().solve(Q_("1 MB/s"), Hardware.Cloud.H100)
>>> result.margin == result.supply_bw - result.demand_bw
True