pkgsrc-Users archive

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

Re: Rust, MAKE_JOBS, and "failed to spawn helper thread"

Reviving an old thread...

On Thu, Sep 16, 2021 at 02:00:58PM +0000, nia wrote:
> Hi, anyone else seeing this failure when compiling Rust crates on NetBSD
> with a high number of parallel jobs? I see this for nearly every crate
> in my pbulk builds.
> Is there a system limit that needs to be adjusted?

Of late, I've hit the system wide thread limit numerous times. I've now
discovered that kern.maxlwp defaults to a max of 2048 in netbsd-9
(cpu_maxlwp()), and in -current this was lifted to a default of either
4096 or 1 per 1MiB RAM (whichever is greater), with an absolute max of
65535 (MAXMAXLWP).

I'm staying on netbsd-9 for now, but looking forward to upgrading soon.

Paul Ripke
"Great minds discuss ideas, average minds discuss events, small minds
 discuss people."
-- Disputed: Often attributed to Eleanor Roosevelt. 1948.

Home | Main Index | Thread Index | Old Index