See the man page description for "--use-sockets-instead-of-threads" and
"--use-cores-instead-of-threads".  I believe GNU Parallel counts the number
of processes running and uses that information to match what you specify.
By default it's the number of hyperthreaded cores available.

Joe

On Sat, Feb 5, 2022 at 9:23 AM Neal Becker <ndbeck...@gmail.com> wrote:

> Newb here.  I want to schedule a bunch of tasks > #cores.  Let's say I
> want to run #cores at a time (100% utilization).
>
> If I do
> seq 1 1000 | parallel --load 100% blah blah...
>
> What is the load that is being looked at?  A 5 minute load average?  So at
> the time I start this 1000 tasks, loadave is 0 (say), will it start all
> 1000 tasks at once, because loadave is 0 - only to have loadave become
> 1000?  Or does it do something smarter than that?
>
> Thanks,
> Neal
>
> --
> *Those who don't understand recursion are doomed to repeat it*
>

Reply via email to