Separate user guides, benchmarks, and routing internals
This commit is contained in:
parent
24559bb6aa
commit
e4d5952677
1 changed files with 846 additions and 270 deletions
|
|
@ -1,14 +1,14 @@
|
|||
# Routing diagnostics and metrics
|
||||
|
||||
Start with the symptom. A missing net, a worse path, and a slower run call for different evidence. For layout or option changes, first use the [user tuning guide](../DOCS.md#tune-a-run).
|
||||
Start with the symptom. For layout or option changes, use the [user troubleshooting guide](user/tune-and-troubleshoot.md).
|
||||
|
||||
## Automatic reports
|
||||
|
||||
**Was the run limited by the layout or by a search attempt?** Compare the number of `verified_net_ids` with `max_routed`. A reached bound with a missing net calls for a geometry change. For example, `overloaded-gate` requests four routes through a three-track cut. `capacity_limit.cut_x` locates that cut, so an extra iteration cannot recover the fourth net at the same geometry. If coverage is below the bound, use `stages` to find which nets were skipped, locked, or recovered and where coverage stopped increasing. [Bounds and fixtures](topological-routing.md#benchmark-corpus)
|
||||
- **A net is missing.** Compare the verified count with `max_routed`. In `overloaded-gate`, `capacity_limit.cut_x` locates the cut that fits three of four requested routes. Below the bound, read `stages` for skipped or locked nets and for the attempt where coverage stopped increasing. [Run the overloaded-gate fixture](benchmarks.md#run-a-benchmark)
|
||||
|
||||
**Why did the chosen route change?** Start at `stages[selected_stage]`, then work back to the search or planner that produced its paths. The `planner` identifies the source of a proposal. The `mode` identifies the worker that ran it. For example, an `off` worker can verify a bundle seed. Use `planner_rejections` when a constructive layout never reaches selection. Compare per-net paths and costs on the same verified IDs before drawing a quality conclusion. [Report definitions](../inire/results.py)
|
||||
- **The chosen route changed.** Start at `stages[selected_stage]`. The `planner` identifies the source of the proposal and `mode` identifies the worker, so a bundle seed can be checked by an `off` worker. Use `planner_rejections` for constructive candidates that never reached selection. [Report definitions](../inire/results.py)
|
||||
|
||||
**Where did the time go?** Group exclusive `timings` by policy and operation, including failed attempts. Compare with the run's `duration_s`, which also includes orchestration. A short selected search can follow a long unsuccessful one. Detailed traces, corridor reports, and plotted expanded states describe the selected attempt when present. Use `run.metrics` and stage data for work across attempts. [Benchmark profiles](topological-routing.md#reproduce-a-comparison)
|
||||
- **The run slowed down.** Group exclusive `timings` by policy and operation, including failed attempts. `duration_s` also includes orchestration. Detailed traces, corridor reports, and expanded states describe the selected attempt when present. Check `run.metrics` and stage data for work across attempts. [Benchmark profiles](benchmarks.md#choose-a-profile)
|
||||
|
||||
## Route metrics
|
||||
|
||||
|
|
@ -36,9 +36,20 @@ Enable the `DiagnosticsOptions` flag for the question you want to answer.
|
|||
| What did the last unresolved iteration hand to pair-local repair? | `capture_pre_pair_frontier_trace` records `pre_pair_frontier_trace`. Check reroute order, conflict edges, and per-net attempt work immediately before repair. |
|
||||
| Where did the router explore? | `capture_expanded` records `expanded_nodes` for plotting. See the [fan-out example](../examples/07_large_scale_routing.py). |
|
||||
|
||||
The historical no-warm-start fan-out trace shows why both the final result and the iteration trace matter. The last iteration in the first scenario leaves two conflict edges and six completed nets. The run finishes with all ten valid after pair-local repair. When an iteration change alters that handoff, compare the restored snapshot, pair-local acceptance, and the final conflict trace. [Iteration trace](iteration_trace.md#example_07_large_scale_routing_no_warm_start) · [Conflict trace](conflict_trace.md) · [Pre-pair trace](pre_pair_frontier_trace.md)
|
||||
### Follow a late conflict into pair-local repair
|
||||
|
||||
For live progress across attempts, use an `iteration_callback`. Use the final result to establish coverage. Callback indices increase across automatic attempts, and the number of callbacks follows the actual search schedule. [Callback API](../DOCS.md#read-the-result)
|
||||
Capture the no-warm-start fan-out scenario from the repository root.
|
||||
|
||||
```sh
|
||||
python -m scripts.record_iteration_trace --scenario example_07_large_scale_routing_no_warm_start \
|
||||
--include-performance-only --output-dir /tmp/inire-trace
|
||||
```
|
||||
|
||||
1. Open the generated `iteration_trace.md`. Compare the last iteration's completed count and conflict edges with the final result summary. In the recorded example, the last iteration had six completed nets and two conflict edges.
|
||||
2. Inspect the final result and pair-local counters in `iteration_trace.json`. All ten nets verified after repair in the recorded run. The last congestion iteration alone misses this improvement.
|
||||
3. To see which paths overlapped, capture the same scenario with `scripts.record_conflict_trace`. Compare `restored_best` with `final`. Use the pre-pair trace to investigate reroute order and per-net work before repair. [Recorded iteration trace](iteration_trace.md#example_07_large_scale_routing_no_warm_start) · [Conflict trace](conflict_trace.md) · [Pre-pair trace](pre_pair_frontier_trace.md)
|
||||
|
||||
Use an `iteration_callback` for live progress across automatic attempts and the final result for coverage. [Callback API](user/api-reference.md#route-a-problem)
|
||||
|
||||
## Reproduce and compare
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue