runs an interactive task through LSF
Submits a task to LSF for execution.
With MultiCluster job forwarding model, the default is to run the task on a host in the local cluster.
By default, lsrun first tries to obtain resource requirement information from the remote task list to find an eligible host. (See lseligible(1) and ls_task(3).) Otherwise, lsrun runs the task on a host that is of the same host type (or architecture) as the submission host. If several hosts of the same architecture are available, the host with the lowest CPU and memory load is selected.
By default, if execution fails and the local host satisfies resource requirements, LSF runs the task locally.
By default, lsrun does not create a pseudo-terminal when running the task.
Forces lsrun to go through RES to execute a task. By default, lsrun does not use RES if the task is going to run on the current host.
If RES execution fails and the local host satisfies resource requirements, LSF runs the task directly on local host.
Creates a pseudo-terminal when starting the task on UNIX hosts. This is necessary to run programs that require a pseudo-terminal (for example, vi).
Creates a pseudo-terminal with shell mode support when starting the task on a UNIX host. Shell mode support is required for running interactive shells or applications that redefine the CTRL-C and CTRL-Z keys (for example, jove).
The execution host must be one of the specified hosts. If a single host is specified, all resource requirements are ignored.
If multiple hosts are specified and you do not use the -R option, the execution host must satisfy the resource requirements in the remote task list (see lsrtasks(1)). If none of the specified hosts satisfy the resource requirements, the task does not run.
With MultiCluster job forwarding model, the execution host can be a host in one of the specified clusters, if the remote cluster accepts tasks from the local cluster. (See RemoteClusters section in lsf.cluster(5).)
Runs the task on a host that meets the specified resource requirement. The size of the resource requirement string is limited to 512 bytes. For a complete explanation of resource requirement expressions, see Administering Platform LSF. To find out what resources are configured in your system, use lsinfo and lshosts.
LSF supports ordering of resource requirements on all load indices, including external load indices, either static or dynamic.
Exclusive resources need to be explicitly specified within the resource requirement string. For example, you defined a resource called bigmem in lsf.shared and defined it as an exclusive resource for hostE in lsf.cluster.mycluster. Use the following command to submit a task to run on hostE:
lsrun -R "defined(bigmem)" myjob
If the -m option is specified with a single host name, the -R option is ignored.
You can use lsrun together with other utility commands such as lsplace, lsload, lsloadadj, and lseligible to write load sharing applications in the form of UNIX shell scripts.
lsrun supports interactive job control. Suspending lsrun suspends both the task and lsrun, and continuing lsrun continues the task.
If LSB_DISABLE_LIMLOCK_EXCL=y (to enable preemption of exclusive jobs, for example), you can use lsrun to start a task on a host that is currently running an exclusive job.
The -n option of rsh can be simulated by redirecting input from /dev/null. For example: