Closed xkortex closed 4 years ago
-j, --jobs int run n jobs in parallel (default value depends on your device) (default 4)
It's the maximum number of simultaneously running jobs.
On an N-core machine, if n (n<N) jobs given, only n processes need to be spawned.
OH I see what happens. On the README.md, it says
-j, --jobs int run n jobs in parallel (default value depends on your device) (default 16)
But then I checked the help on my machine, it says
-j, --jobs int run n jobs in parallel (default value depends on your device) (default 2)
That's actually pretty clever! I never actually checked the rush -h
locally, just was referring to the docs, so shame on me :p
rush v0.4.2
I noticed on an N-core machine, only n jobs spawn by default. The help documentation for
-j
suggests that 16 is the default. Not sure if this is a feature or a bug, but I thought it was worth documenting.~/sleepy.sh
seq 0 3 | rush --immediate-output '~/sleepy.sh {}'
2-core machine:
Similarly on a 4 core, I see 4 jobs simultaneous, and so on.
-j N
totally overrides this (up to a point, then I ran out of file descriptors :p). But it stumped me for a bit since the directions implied 16 was the default.Nice tool btw, absolutely love it. Way easier to deploy quickly than
parallel
, I just copy the bin and I'm ready to rock and roll. :)