pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: firefox-158.0 build failure NetBSD 11.0-STABLE



Mike Pumford <mpumford%mudcovered.org.uk@localhost> writes:

> Trying to build firefox from sources pulled yesterday I get the
> following build failure which looks like an out of memory situation.
>
> Building on NetBSD 11.0-STABLE on amd64. System has 32GB RAM and
> plenty of swap.
>
> [node] 

node has its own ideas of max space to use before garbage collection
(heap size), which are, to me, not clearly connected to the underlying
system.  The option is confusing, e.g to set the heap to 450 MB:

  --max-old-space-size=450

That value is for compiling zwave-js-ui on a 1GB RPI3; the idea is to
have it be big enough that gc isn't an unreasonably high fraction of CPU
time and that the biggest allocation still fits, but otherwise as small
as possible to avoid pushing the system into constant paging.  I found
this particular one by shrinking it where the run time just starts to
increase if I go lower.

That's more of an aside than relevant; I am guessing that node as run by
the build is picking a "max old space size" that is too low for what
it's being asked to do.


Home | Main Index | Thread Index | Old Index