Platform LSF Reference Version 6.2
lsrun
Platform LSF Reference
249
-m "host_name ..." | -m "cluster_name ..."
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 will 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).)
-R "res_req"
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
lsfintro(1). To find out what resources are
configured in your system, use
lsinfo(1) and lshosts(1).
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 submit a task to run on
hostE:
% lsrun -R "bigmem" myjob
or
% lsrun -R "defined(bigmem)" myjob
If the -m option is specified with a single host name, the -R option is ignored.
-h
Prints command usage to stderr and exits.
-V
Prints LSF release version to stderr and exits.
USAGE
You can use lsrun together with other utility commands such as lsplace(1),
lsload(1), lsloadadj(1), and lseligible(1) 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.
The
-n option of rsh(1) can be simulated by redirecting input from /dev/null. For
example:
lsrun cat </dev/null &