GNU Parallel:给出有关执行时间的提示

GNU Parallel: Giving a hint about execution time

给定

一些非常耗时的工作,BIG0BIG1,等等,还有一些小的快速工作fast0fast1,等等

问题:

假设 BIG* 个作业需要 2 小时fast* 个作业需要 1 小时 .我如何指示 GNU Parallel 随时间和核心分配作业,如下所示

   time[h]    CPU[0]  CPU[1]     
     0        BIG0    BIG1     
     1         :        :       
     2        fast0   fast1

而不是如下图?

   time[h]   CPU[0]   CPU[1] 
     0       BIG0     fast0   
     1         :      fast1
     2       BIG1            
     3         :      

最后一次设置会多花一个小时。

一种可能的方法是在提交给 GNU Parallel 之前按预期时间对您的作业进行排序,大作业优先:

parallel ... ::: BIG* fast*