本文介绍了"qsub -now";等效于bsub的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在SGE中,我们有

qsub -now yes/no <command>

通过-现在是​​",立即安排该作业(如果可能)或根本不安排该作业.我们没有进入待处理队列.

By "-now yes" the job is scheduled immediately(if possible) or not at all . We are not put in pending queue .

如果无法立即执行,则通过"-no no"将作业放入待处理队列.

By "-now no " the job is put in pending queue if it cannot be executed immediately .

但是在LSF中,我们将qsub等效为bsub.

But in LSF , we have qsub's equivalent as bsub .

在bsub中,如果无法立即执行,我们将被置于待处理队列中.我们没有像qsub中那样将选项设置为"-now yes".

in bsub, we are put in pending queue, if it cannot be executed immediately. We don't have option as "-now yes" as in qsub .

我们在bsub中做一些"qsub -now"

Do we something in bsub as "qsub -now"

P.S:一种解决方案是,我们可以在运行bsub之后检查一段时间(几秒钟),无论是否计划了时间,然后退出.我正在寻找一种更优雅的方法.

P.S : One solution is that we can check for some time(some secondss) after running bsub, if we are scheduled or not and then exit . I am searching for a more elegant way .

推荐答案

我以LSF方式找到了答案.

I found the answer in an LSF way.

LSF确实提供了一种退出作业的方法.我们有一个环境变量LSF_NIOS_PEND_TIMEOUT(以分钟为单位指定),如果该变量仍处于挂起队列中,则该变量将退出该作业.

LSF does provide a way to quit a job if we its unable to schedule the resource. We hava a environment variable LSF_NIOS_PEND_TIMEOUT(specified in minutes) which quits the job, if its still in pending queue.

 env LSF_NIOS_PEND_TIMEOUT=1 bsub -Is -m host /bin/bash

从网络上的某个地方:
LSF_NIOS_PEND_TIMEOUT
语法
LSF_NIOS_PEND_TIMEOUT =分钟
说明
仅适用于交互式批处理作业.
交互式批处理作业可以保留的最大时间.
如果定义了此参数,并且交互式批处理作业的挂起时间超过指定的时间,则交互式批处理作业将终止.
有效值
任何大于零的整数

From Somewhere on the web:
LSF_NIOS_PEND_TIMEOUT
Syntax
LSF_NIOS_PEND_TIMEOUT=minutes
Description
Applies only to interactive batch jobs.
Maximum amount of time that an interactive batch job can remain pending.
If this parameter is defined, and an interactive batch job is pending for longer than the specified time, the interactive batch job is terminated.
Valid values
Any integer greater than zero

这篇关于"qsub -now";等效于bsub的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-23 22:03