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

Abierto
#59 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
1-2 días
Aptitud para principiantes
58/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
go, kubernetes, linux

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Go
Estrellas
5
Forks
5
Merge medio
15 h 27 min
PR fusionados (30 d)
41

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Azure/fiberd

Todos los issues de Azure/fiberd

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.