Repository navigation
LinearSolveDistributed: raise sizes for the runner; two-regime strong scaling - #1641
Conversation
…caling Follow-up invited in SciML#1639 review. The first runner execution reproduced the known small-N cache artifact in strong scaling (9x speedup on 2 ranks, 35x on 4 at N=40k), so StrongScaling.jmd now runs two sizes deliberately: N=40k as the labeled cache-artifact regime and N=1e6 as the honest regime, plotted together so the contrast is the content rather than a puzzle. Ranks extend to 8 in both scaling documents; weak scaling moves to 100k unknowns per rank; the crossover sweep extends to 1e6 to bracket the crossover the first run placed above 90k. Budget: the runner completed the whole folder in 20 minutes at the previous sizes; scaled per-solve estimates put the raised folder around two hours, well inside limits.
|
The three benchmark jobs here were cancelled by the 24 hour queue limit without starting. It looks like the runner has been occupied by two runs since Aug 10 and Aug 11, and everything queued behind them is being auto cancelled at the 24 hour mark, including the master runs from yesterday. Could those two runs be checked and the jobs here retriggered when a slot frees up? |
|
@ChrisRackauckas The benchmark jobs here have now been cancelled three times by the 24 hour queue limit; the runner's slots have been held for days by long shards, so a PR run cannot get through at the moment. The documents are runner-proven at the previous sizes and two of the three were woven end-to-end at the raised sizes in containers. Happy to leave it queued, but if you are comfortable merging on that evidence, the master rebuild will produce the pages when the runner frees up. |
…currency (#1666) The Benchmarks workflow used a single concurrency group for every master run (`benchmarks-refs/heads/master`). GitHub permits one running + one pending run per group and a newly queued run cancels the pending one, so: - run 32024671720 (#1651) has held the group since Aug 19 because its SimpleHandwrittenPDE job is multi-day; LinearSolve / ComplicatedPDE / AstroChem / LinearSolveGPU results from that run can't publish until it ends (timeout is 200 h) while amdci1-1 sits idle; - run 32389171706 (#1663, NonStiffSDE) was parked pending and then cancelled at 2026-08-21T19:27:27Z, the second run 32518558085 (#1641) was queued; its benchmark jobs never ran; - run 31479805309 (#1629) had DynamicalODE / NonlinearProblem / LinearSolveDistributed succeed but queued siblings expired (>24 h), the run was marked cancelled, and Publish Results was skipped, so those results never reached SciMLBenchmarksOutput. Changes: * Group master runs (push and workflow_dispatch) by run id instead of by ref, so they run concurrently across the self-hosted runners and never evict each other. PR runs keep the per-ref cancel-in-progress group. * Drop the job-level `scimlbenchmarks-deploy` group on Publish Results — it has the same one-pending semantics and would cancel a publish (and lose that run's results) when several master runs finish close together. * Make publish_benchmark_output.sh tolerate concurrent publishers instead: clone → copy → commit → push in a retry loop; on a non-fast-forward rejection it re-clones and retries (default 6 attempts with jitter). Each attempt lays the same files over the newest output, so there is nothing to merge. Also exits early when no artifact dirs exist, and uses a depth-1 clone. The remote URL and a pre-push hook are overridable via env for local testing; a local two-publisher test against a bare repo exercised the rejected → retried → published path. Claude-Session: https://claude.ai/code/session_01KrTtUuDkfgNEq3asQuZ3F6 Co-authored-by: Claude Fable 5 <[email protected]>
Summary
The follow-up invited in #1639. The first runner execution reproduced the known small-N cache artifact in strong scaling (9x speedup on 2 ranks, 35x on 4 at N=40k), so this PR makes that artifact part of the document's content instead of a puzzle:
StrongScaling.jmd now runs two sizes deliberately and plots them together: N=40k as the labeled cache-artifact regime (per-rank working set drops into cache as ranks are added, producing spectacular but meaningless superlinear speedup) and N=1e6 as the honest regime where the working set exceeds cache at every rank count. The text explains the contrast; the superlinearity warning now only flags the large series, since tripping there would mean the honest regime has not been reached.
WeakScaling.jmd moves to 100k unknowns per rank and extends to 8 ranks. SerialCrossover.jmd extends the sweep to 1e6 unknowns to bracket the crossover the first run placed above 90k. Both scaling documents now cover ranks 1 through 8.
Budget
The runner completed the whole folder in 20 minutes at the previous sizes. Scaling the measured per-solve times to the raised sizes puts the folder around two hours, well inside limits; the N=1e6 rank-1 baseline in StrongScaling is the dominant term.
Validation
WeakScaling and SerialCrossover were woven end-to-end at the raised sizes in isolated containers replicating the CI path (setup.sh MPI pin, exact committed environment, benchmark.jl per document): both pass with markdown produced and all correctness gates green. StrongScaling's container run exceeded the container time budget on slower cloud hosts (its N=1e6 rank-1 baseline is a long serial solve there); its mechanics are identical to the already runner-proven version, its restructured two-series logic was verified locally, and its N=1e6 distributed path is exercised by SerialCrossover's passing run, so it is submitted on that evidence plus the budget arithmetic above.