Skip to content

experiment: measure checkpoint recovery and CPU overhead outside Pulse - #15

Closed
Jammy2211 wants to merge 7 commits into
feature/nautilus-30d-diagnosticsfrom
feature/nautilus-checkpoint-batching
Closed

Jammy2211 wants to merge 7 commits into
feature/nautilus-30d-diagnosticsfrom
feature/nautilus-checkpoint-batching

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

The completed bounded pilot is a negative performance result: full-snapshot interval5 batching was slower than native interval1 in all six matched D5/D10 seed pairs. Sampler.run took21.2–48.8% longer (median28.1%); full fit took15.6–46.6% longer (median23.8%). Checkpoint time rose2.81–4.44x and checkpoint write-syscall bytes rose2.37–2.62x. Keep the native default; do not promote this policy as a speed improvement. These six local pairs are exploratory, with timing variation.

All four controlled crash/resume witnesses passed (one/two workers × deferred/atomic interruption), with exact uninterrupted-control posterior/count/ESS equality. Saved checkpoint hashes remained intact. Controlled hooks lost200 or500 completed evaluations with zero in flight; these observations do not bound arbitrary interruption loss or establish power-loss/network-filesystem durability.

Scripts Changed

  • checkpoint_benchmark.py: frozen witnesses before paired timing; maximum20children,120s/4096MiB each,1800s total including preflight; stop on first failure/cap.
  • test_nautilus_checkpoint_benchmark.py: matrix, supervisor, configuration and restored-count receipt regression.
  • experiments/nautilus_checkpoint_batching/: all three attempt reports, exact provenance/settings, paired metrics, recovery evidence and quiet-host admission log.

Results and validation

The human explicitly authorized attempt03 once the host was quiet. After three load readings below1.0, it completed all20 children in931.93s; max child88.91s, max sampled process-group RSS493.1MiB, no missing cases. The original in-run load guard2.0 and all resource limits remained unchanged. Sampling/posterior/count/ESS/shells match exactly across every timing pair.

Measured producer5206f0b (benchmark unchanged from corrected daf0cc6), librarye16fba3ee; reporte1cebf8. Previous attempt01 receipt error and02host-load halt are retained with all raw data/worktrees (~120MiB total). No automatic retry.

125 tooling tests, Ruff check/format and unchanged catalogue validation passed; result export asserts20successes, four exact controls, six exact pairs, every case cap and checkpoint hashes. Library4302passes/2skips/1expected failure;10smoke cases; exact-head Python3.12/3.13/no-JAX CI42867205132 and Docs green. Final experiment head c06cae0 passed CI 42877256638: all 125 tooling tests, Ruff check/format, catalogue validation and link checks. Its only change after result report e1cebf8 fixes the existing process-reaping test race; measured producer 5206f0b and library e16fba3ee remain unchanged. Author review only.

Frozen settings:400live points,batch100,ESS10000,four default networks,discard_exploration=True,one timing worker/numerical thread. Search corner plotting disabled identically; other fit output retained. Native sampler, full fit and process times are reported separately. I/O counters are not physical-device bandwidth; full-snapshot logical-byte sums exclude native incremental writes. No comparison against historical phase0a settings.

Upstream PR

PyAutoLabs/PyAutoFit#1765 (library-first merge gate).
This PR targets diagnostic PR13's branch; both dependencies remain unmerged.

Live human approved both plans despite Heart RED and required work outside Pulse with human merge. Latest authoritative Heart (2026-11-10T18:35:43.930077+00:00) is RED: “PyAutoGalaxy: CI failure”; “PyAutoLens: CI failure”; “PyAutoCTI: 1 uncommitted source change(s)”. The last item is unrelated work outside this task; this report does not edit or release PyAutoCTI. No merge/release/CI bypass. Default interval1 unchanged. Wider phase0b/30D evidence accuracy remain incomplete. Refs PyAutoLabs/PyAutoFit#1763.

Generated by the PyAutoLabs agent workflow.

Copy link
Copy Markdown
Contributor Author

Live human selected “Run corrected checkpoint pilot once.” Attempt02 now running at clean producer15afe55 / librarye16fba3ee. The benchmark file is byte-for-byte unchanged from approved fixdaf0cc6; later commits only test portability and stopped-attempt reporting. Same20children/120s/4096MiB/1800s limits, four recovery witnesses before timing cases, stop on first error/cap. Both attempts retained, outside Pulse, human merge.

Copy link
Copy Markdown
Contributor Author

Live human authorized one further attempt once the host is quiet, with unchanged limits, outside Pulse and human merge. Waiting in this chat for three load readings below1.0 spaced30s with at least8GiB available; the in-run guard remains2.0. No sampling launched yet. Planned producer5206f0b (benchmark unchanged from daf0cc6), librarye16fba3ee. Preserve attempts01/02 and new03; same20children/120s/4096MiB/1800s, stop at first failure.

Copy link
Copy Markdown
Contributor Author

Quiet-host launch condition passed after waiting in this chat: final three one-minute loads0.9980,0.7402,0.5732 with ~13.2GiB available. Attempt03 started at unchanged clean producer5206f0b / librarye16fba3ee. Same20children/120s/4096MiB/1800s caps, in-run load guard2.0, four crash/resume witnesses before timing. No source edits or competing tests during measurement; no merge/Pulse.

Copy link
Copy Markdown
Contributor Author

Final result report e1cebf8 is retained. Its first CI run42876816798 exposed an existing TOCTOU race in the process-group cleanup test: /proc/PID/stat disappeared after exists() because the terminated child had been reaped. Test-only fix c06cae0 catches FileNotFoundError while continuing to assert zombie state for an existing child; no production/harness or sampling change. Local125tests/Ruff/check-format pass. No rerun of the completed scientific pilot. Final exact-head CI is on c06cae0; human merge remains required.

@Jammy2211
Jammy2211 deleted the branch feature/nautilus-30d-diagnostics November 12, 2026 15:53
@Jammy2211 Jammy2211 closed this Nov 12, 2026
@Jammy2211
Jammy2211 deleted the feature/nautilus-checkpoint-batching branch November 25, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant