3 ms·
one way on a leenukz parallel -- `sed -ne 's:^processor.*:yes:p' < /proc/cpuinfo` on openbsd: parallel -- `perl -e 'printf("yes "x\`sysctl -n hw.ncpu
by cat199 9y ago
one way on a leenukz
parallel -- `sed -ne 's:^processor.*:yes:p' < /proc/cpuinfo`
on openbsd:
parallel -- `perl -e 'printf("yes "x\`sysctl -n hw.ncpu\`)'`
don't try the latter in a shell script without being prepared to
debug tho.
- Bromskloss 9y agoRight. I was unclear. What I really meant was that I was thinking that `parallel` could automatically spin up more and more jobs until it sensed that there is no further performance to be gained. I'm not sure to what extent that is true, though.