Platform LSF Administration Guide Version 6.2

Chapter 36
Running Interactive and Remote Tasks
Administering Platform LSF
531
Resource usage
Resource reservation is only available for batch jobs. If you run jobs using only LSF
Base, LIM uses resource usage to determine the placement of jobs. Resource usage
requests are used to temporarily increase the load so that a host is not overloaded. When
LIM makes a placement advice, external load indices are not considered in the resource
usage string. In this case, the syntax of the resource usage string is
res[=value]:res[=value]: ... :res[=value]
The res is one of the resources whose value is returned by the lsload command.
rusage[r1m=0.5:mem=20:swp=40]
The above example indicates that the task is expected to increase the 1-minute run queue
length by 0.5, consume 20 MB of memory and 40 MB of swap space.
If no value is specified, the task is assumed to be intensive in using that resource. In this
case no more than one task will be assigned to a host regardless of how many CPUs it
has.
The default resource usage for a task is
r15s=1.0:r1m=1.0:r15m=1.0. This
indicates a CPU-intensive task which consumes few other resources.
Running a task on a specific host
If you want to run your task on a particular host, use the lsrun -m option:
%
lsrun -m hostD mytask
Running a task by using a pseudo-terminal
Submission of interaction jobs using pseudo-terminal is not supported for Windows for
either
lsrun or bsub LSF commands.
Some tasks, such as text editors, require special terminal handling. These tasks must be
run using a pseudo-terminal so that special terminal handling can be used over the
network.
The
-P option of lsrun specifies that the job should be run using a pseudo-terminal:
%
lsrun -P vi
Running the same task on many hosts in sequence
The lsgrun command allows you to run the same task on many hosts, one after the
other, or in parallel.
For example, to merge the
/tmp/out file on hosts hostA, hostD, and hostB into a
single file named
gout, enter:
%
lsgrun -m "hostA hostD hostB" cat /tmp/out >> gout
Running parallel tasks
lsgrun -p
The -p option tells lsgrun that the task specified should be run in parallel. See
lsgrun(1) for more details.
To remove the
/tmp/core file from all 3 hosts, enter:
%
lsgrun -m "hostA hostD hostB" -p rm -r /tmp/core