largeallocpeakcheck arm M fails on a fast Mac since #648: the `--deps` run no longer reads over its limit

Aperta
#690 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp
Ambito
testing

Direzione di ricerca

Start with test/largeallocpeakcheck.sh and inspect arm M, the --deps run, and its --max-memory limit; compare that setup with arm D, which accepts the disclosed overshoot line. Reproduce the failure on the cited c565a3fad main revision, then choose a fix that preserves what arm M is intended to test. Done means the gate reliably stops a run over its configured limit and passes on the affected Mac.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

test/largeallocpeakcheck.sh arm M goes red on my machine (Apple M5 Max, 64 GB, macOS 26.6.2, plain dev build). It still fails on main c565a3fad:

  PASS  P: route peak 473 MB <= 75 % of 687 MB
  PASS  B: answers byte-identical with and without the route
  FAIL  M: --max-memory=256M against a 473 MB run did not stop (exit 0): the guard does not see routed pages

I bisected it with clean rebuilds, running the whole gate each time:

44f7d3326  main before TRAIN-1111f                 PASS  M: ... stops (exit 5)
7bade003b  44f7d3326 + #648 DEPS-NO-GRAPH only    FAIL  M
d624cff5f  TRAIN-1111f                             FAIL  M
c565a3fad  main today                              FAIL  M

I don't think the guard is broken. The run finishes and says so on stderr:

ripwire: memory peak 474M went over the 256M limit (from --max-memory), and the run finished and answered: the guard reads the limit between phases, and by then this run had given that memory back. ...

That's the D band, honestly disclosed. Arm M just never gets the stop it expects anymore. My read: arm M runs --deps, and after #648 --deps skips the graph build, so the hard line loses the reading that used to land over 256M. The fixture's run takes about 1.7 s here, under the guard's 5 s cadence, so it only gets the readings at ingest start and after the ingest. At this size the post ingest footprint sits between 128M and 256M: --max-memory=128M stops it (exit 5), and 256M finishes.

CI's macOS runners stay green, I'd guess because a slower runner crosses the 5 s cadence and gets a reading during the parse. I can't confirm that, since the logs only print failing gates.

Three ways I can see to fix it:

  1. Run arm M without --deps, so the graph build and its hard line reading come back.
  2. Size the limit from the after ingest reading instead of half the routed peak.
  3. Let arm M also pass on the disclosed overshoot line, the way arm D does. The weakest option, since it stops testing the stop.

Do you have a preference? I can bring the PR, with the arm red on c565a3fad first.

Lingua principale
C++
Stelle
2.6k
Fork
182
Merge medio
21h 12m
PR unite (30g)
262

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di redhat-et/ripwire

Tutte le issue di redhat-et/ripwire

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.