relax run: heap grows ~4 GB/s about 10 s after the first output since ae7e79d4 (background item checks)

Abierto
#265 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
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
18/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust

Línea de trabajo

The regression window is ae7e79d4 against its parent 114353a6; start by diffing that commit, focusing on the new background item-check path and where allocations receive their memory tag. Reproduce with RELAX_MEM_REPORT=1 RELAX_MEM_SAMPLE_MS=500 and watch the other tag grow after first output; the reporter can run diagnostic builds against the private 28-crate workspace. Done means the heap stays flat after first output with background item checks enabled.

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

Descripción

Since ae7e79d4 ("relax run checks every crate's items in the background, not only the bodies"), relax run --allow-c of our app's logic process reaches its first output and then, 8 to 10 s later, grows its heap at 3.5 to 4.5 GB/s until the OOM killer stops it (a 9 GiB and a 12 GiB cgroup cap; uncapped it took a 32 GB machine to 29 GB before systemd-oomd killed it).

Bisect. e2098d3a..148c0924, 9 steps, each a lone child process (no host, no GPU) with stdin kept open and stdout drained, judged over 45 s past its first output:

  • 114353a6 (ae7e79d4's parent): first output at 43 s on a cold cache, then flat; peak 5.3 to 5.6 GiB.
  • ae7e79d4 and every later commit tested, through 148c0924: the runaway.
  • RELAX_O3=0 does not change it (first output later, runaway about 10 s after it).

Heap accounting (RELAX_MEM_REPORT=1 RELAX_MEM_SAMPLE_MS=500, 148c0924): all of the growth is in the other tag; every other tag stays flat.

mem-sample: t=36056ms rss=4140MB live=2737MB other=521 ... typeck=167 ... planner=930
mem-sample: t=36557ms rss=5267MB live=3866MB other=1648 ...
mem-sample: t=37058ms rss=7044MB live=5786MB other=3569 ...
mem-sample: t=37560ms rss=8858MB live=8026MB other=5809 ...
mem-sample: t=38562ms rss=11524MB live=13146MB other=10929 ...

The same program built by cargo holds 425 MiB for 60 s. The app is a 28-crate workspace on wgpu and winit with --allow-c native builds of blake3, cc, rayon-core, rustix and two of its own crates with C++ build scripts. The repository is private; I can run any diagnostic build, trace or environment switch you name and post the output.

Lenguaje dominante
Rust
Estrellas
601
Forks
34
Merge medio
1 h 58 min
PR fusionados (30 d)
45

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 makepad/relax

Todos los issues de makepad/relax

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.