(l: AggNode, r: AggNode)
| 2410 | /// system RAM by default). |
| 2411 | pub const RAM_USABLE_FRAC: f64 = 0.85; |
| 2412 | |
| 2413 | /// Predicted peak prover RAM (GiB) for a leaf of `cost` **actual** guest cost |
| 2414 | /// units (for predicted cost, multiply by [`COST_MODEL_HEADROOM`] first to |
| 2415 | /// get the worst-case bound the cap enforces). |
| 2416 | pub fn ram_gib_for_steps(cost: u64) -> f64 { |
| 2417 | RAM_BASE_GIB + RAM_GIB_PER_BCOST * (cost as f64 / 1e9) |
no outgoing calls