Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Retry an insertion round with fewer workers when it is refused for memory

Aperta
#2,139 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à
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c

Direzione di ricerca

Start with wirelog/columnar/eval_tdd_insert.c and the wl_columnar_eval_tdd_insert_stratum round, then read wirelog/columnar/session.c to follow how ENOSPC reaches col_session_snapshot_impl. Find the existing insert-route tests and round hook; the issue does not name their files. Done when budgeted snapshots at 4 and 8 workers retry, succeed, and match fresh evaluation, while unbudgeted round and task counts stay unchanged.

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

Descrizione

enhancement

Summary

Since #2122 a snapshot after an incremental insert runs a stratum's insertion rounds on up to num_workers worker clones (wl_columnar_eval_tdd_insert_stratum, wirelog/columnar/eval_tdd_insert.c). Each clone holds its own arena, delta pool, arrangements and output bags, and the leading inputs of split instances are copied into ranges. On the CSPA overlap bench row the process's peak RSS at 16 workers rose from about 400 MB to about 710 MB (433 to 488 MB at 8 workers).

Under an enforcing memory budget, a round that fitted on one clone can now be refused. The refusal is returned from the snapshot as ENOSPC. session_snapshot_insert's caller (col_session_snapshot_impl, wirelog/columnar/session.c) falls back to full evaluation only on ENOTSUP/EINVAL, so that snapshot fails and the session re-evaluates in full at the next snapshot.

Proposed change

When a parallel round fails with ENOSPC, discard its bags (the heads are untouched until the merge), and retry the same round with fewer tasks and no range splitting, down to one clone, before failing the snapshot.

Acceptance

  • A test with an enforcing budget that admits the serial round but not the parallel one: at 4 and 8 workers the insert-route snapshot succeeds, matches a fresh evaluation, and the round hook reports the retry.
  • Without a budget, round and task counts are unchanged.
Lingua principale
C
Stelle
18
Fork
2
Merge medio
9h 28m
PR unite (30g)
169

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 semantic-reasoning/wirelog

Tutte le issue di semantic-reasoning/wirelog

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.