tech-pkg archive

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

Re: python nproc vs MAKE_JOBS issues



On Tue, Nov 19, 2024 at 04:16:53AM +0000, David Holland wrote:
> There should also be a system-level way to get a default answer to
> "how many jobs should I spawn?" since this arises with everything that
> parallelizes (not just build tools) and both 1 and NCPUS are bad
> fallbacks.

But the answer depends highly on the purpose of parallization,
especially in case of builds, where it does also depend on many other
available resources (like enough RAM or available WORKDIR disk IO
throughput).

For most other cases NCPUS is a very good default.

Martin


Home | Main Index | Thread Index | Old Index