【发布时间】:2013-09-14 12:52:05
【问题描述】:
我正在用 python 编写脚本,向 qsub 提交多个作业,但我们需要确定 qsub 上的负载。如果队列中有更多作业或 qsub 上的负载高,我需要通知用户并运行作业本地环境.我检查了命令页面,但无法获得有用的信息。
qstat [options]
[-ext] view additional attributes
[-explain a|c|A|E] show reason for c(onfiguration ambiguous), a(larm), suspend A(larm), E(rror) state
[-f] full output
[-fjc] full output grouped according to job class instances
[-F [resource_attributes]] full output and show (selected) resources of queue(s)
[-g {c}] display cluster queue summary
[-g {d}] display all job-array tasks (do not group)
[-g {t}] display all parallel job tasks (do not group)
[-help] print this help
[-j job_identifier_list ] show scheduler job information
[-l resource_list] request the given resources
[-ne] hide empty queues
[-ncb] suppress additional binding specific parameters
[-pe pe_list] select only queues with one of these parallel environments
[-nenv] do not request job environment
[-njd] do not show details about foreign jobs
[-q wc_queue_list] print information on given queue
[-qs {a|c|d|o|s|u|A|C|D|E|S}] selects queues, which are in the given state(s)
[-r] show requested resources of job(s)
[-s {p|r|s|z|hu|ho|hs|hd|hj|ha|h|a}] show pending, running, suspended, zombie jobs
【问题讨论】:
-
你可以解析
qstat -a的输出。 -
qstat 没有选项
-
我们集群上的那个(2.5.12)可以。但无论如何,即使只是
qstat也会显示所有排队的作业,因此您可以根据排队作业的数量及其运行时间来估计负载。 -
同意如果我运行 qstat 我将获得所有信息但是将进程作为运行 qstat 并解析输出将非常耗时。我们是否有任何命令/选项可以帮助我们确定负载它将节省大量时间
-
编写解析器会有些耗时,我怀疑运行它需要很长时间。我不了解现有的命令行工具;我们使用ganglia,但安装起来很费力。
标签: qsub