Refuse or resume a grant whose W budget is below its template's image

Aperta
#59 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
58/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go, kubernetes, linux

Direzione di ricerca

Start by reading the proc runtime’s resume path and the grant admission checks, then compare them with the cloudhv copy-on-write restore described in issue #58. Use the Kata example and its examples/kata/kind/run.sh workaround to understand the 32 MiB failure and 64 MiB workaround. Add the issue’s requested table case and verify that an undersized W budget is refused with the image size and budget, or that park and resume both succeed.

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

Descrizione

On the proc runtime, a resume restores the whole template image into the fiber's cgroup. CRIU's restore pages are charged to the fiber's leaf, so a grant whose W budget is below the image size can park a fiber but never resume it. CRIU is OOM-killed on the copy, and the resume fails with a CRIU error, not a budget refusal.

The GPU PoC's Kata row hit this on the A100 on 2026-10-23. The sha256:conform image is about 33 MiB. A 32Mi W budget parked fine, then dmesg showed a memcg OOM kill of criu in leaf f-1-2 on the resume. examples/kata/kind/run.sh now uses 64Mi as a workaround (1dd6bb1).

Fix, one of these.

  • Refuse such a grant at admission, with a message that names the image size and the budget. The template's full image size is known once the template is cached.
  • Or run the restore outside the budget and charge only what the fiber writes afterwards, as the cloudhv copy-on-write restore does for W (#58).

Test. A table case with a W budget below the template's image size that checks the grant is refused, or that a park and resume both succeed.

Lingua principale
Go
Stelle
5
Fork
5
Merge medio
15h 27m
PR unite (30g)
41

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 Azure/fiberd

Tutte le issue di Azure/fiberd

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.