Skip to content

Commit 41f4eaf

Browse files
committed
docs(skill): route compiler memory findings
1 parent 79a69f1 commit 41f4eaf

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎skills/new-package/SKILL.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,13 @@ Do not reuse host-built modules inside a container or share compiled modules
175175
between different images. `EASYBUILD_SOURCEPATH` may remain a shared archive
176176
cache.
177177

178+
Size `EASYBUILD_PARALLEL` against the executor's memory allocation, not only
179+
its CPU count. Memory-heavy C++ translation units can consume more than a
180+
gigabyte per compiler process. Start a workstation target at two jobs and
181+
raise it only with measured headroom; a kernel-killed compiler or exhausted
182+
virtual memory is a `resource` finding, not a reason to change the selected
183+
dependency or weaken the recipe.
184+
178185
Cargo reads `.cargo/config.toml` files above its build directory. Keep a
179186
container target's `work_root` outside personal tool-configuration trees. A
180187
recipe that disables compiler wrappers must set `RUSTC_WRAPPER=` and

0 commit comments

Comments
 (0)