如何通过提交时间进行squeue排序

时间:2015-12-19 22:33:46

标签: slurm

我试图了解如何使用squeue按提交时间排序。 我知道我可以使用队列如下所示它将显示提交时间,

squeue -O "stepid:6,username:8,account:7,name:53,partition:15,submittime:20"

但如何按照sumbittime进行排序。

感谢。

1 个答案:

答案 0 :(得分:2)

通常,您会使用--sort的{​​{1}}选项:

squeue

&quot; output_format&#39;中的提交时间(与 -S <sort_list>, --sort=<sort_list> Specification of the order in which records should be reported. This uses the same field specification as the <output_format>. Multiple sorts may be performed by listing multiple sort fields separated by commas. The field specifications may be preceded by "+" or "-" for ascending (default) and descending order respectively. For example, a sort value of "P,U" will sort the records by partition name then by user id. The default value of sort for jobs is "P,t,-p" (increasing partition name then within a given partition by increasing job state and then decreasing priority). The default value of sort for job steps is "P,i" (increasing partition name then within a given partition by increasing step id). 一起使用的格式 - 不是与-o, --format一起使用的格式)-O, --Format

不幸的是,在我的系统上,这会导致错误。不知道为什么会这样。

%V

所以我想你应该只使用$ /usr/bin/squeue -S V JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON) squeue: error: Invalid sort specification: V 实用程序:

sort

这将有效,因为时间格式允许按字母数字顺序进行比较。