如何使用“-X”选项停止并行报告 "No more processes"?

How to stop parallel from reporting "No more processes" with "-X" option?

处理这个例子:http://www.gnu.org/software/parallel/man.html#EXAMPLE:-Speeding-up-fast-jobs

当我运行:

seq -w 0 9999 | parallel touch pict{}.jpg
seq -w 0 9999 | parallel -X touch pict{}.jpg

成功!但是,再添加 9 和 BOOM:

$ seq -w 0 99999 | parallel --eta -X touch pict{}.jpg parallel: Warning: No more processes: Decreasing number of running jobs to 3. Raising ulimit -u or /etc/security/limits.conf may help. Computers / CPU cores / Max jobs to run 1:local / 4 / 3 parallel: Warning: No more processes: Decreasing number of running jobs to 2. Raising ulimit -u or /etc/security/limits.conf may help. parallel: Warning: No more processes: Decreasing number of running jobs to 1. Raising ulimit -u or /etc/security/limits.conf may help. parallel: Error: No more processes: cannot run a single job. Something is wrong.

我希望 parallel -X 到 运行 的作业不会超过我拥有的 cpu 个内核,并且在最大命令行长度允许的情况下将尽可能多的参数填充到每个作业中。我怎么 运行 退出进程?

我的环境:

您的预期 100% 正确。您看到的显然是一个错误 - 可能是由于 GNU Parallel 没有在 OSX 上得到很好的测试。请关注 http://www.gnu.org/software/parallel/man.html#REPORTING-BUGS 并提交错误报告。