Rob Landley via austin-group-l at The Open Group wrote in <[email protected]>: |On 10/22/24 00:42, Andrew via austin-group-l at The Open Group wrote: |> Hi, |> |> Both GNU and BSD make support parallelism with -j flags. |> |> Can POSIX make adopt a -j flag to indicate the maximum number of \ |> concurrent jobs, default 4? |> |> This can help to accelerate a lot of existing makefiles. |> |> Cheers, |> |> Andrew |> [email protected] | |Why not autodetect? I use -j $(nproc) a lot, although on BSD/mac it's |"sysctl -n hw.ncpu" instead. | |Arbitrary limit seems a bit silly when the ability to probe exists. (The |linux one even responds to taskset by default, dunno about bsd-land...)
nproc is broken in namespaces, and the glibc maintainers will not fix it. I have forgotten other details, responsible persons are on this list if i recall correctly, though. (A search may show up bug report(s) (of which there are at least two).) Ie: no reason for this "even [does] xxx". 'Must be said, FreeBSD introduced nproc(1) too not too (double too!!) long ago, maybe that works correctly in jails or wherever cpusets etc are used. --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt) | |And in Fall, feel "The Dropbear Bard"s ball(s). | |The banded bear |without a care, |Banged on himself fore'er and e'er | |Farewell, dear collar bear
