LSF Version 7.3 - Administering Platform LSF
Running Remote Tasks
604 Administering Platform LSF
◆ Run tasks on hosts specified by a file on page 606
Run a task on the best available host
1 To run mytask on the best available host, enter:
lsrun mytask
LSF automatically selects a host of the same type as the local host, if one is
available. By default the host with the lowest CPU and memory load is selected.
Run a task on a host with specific resources
If you want to run mytask on a host that meets specific resource requirements, you
can specify the resource requirements using the
-R res_req option of lsrun.
1 lsrun -R 'cserver && swp>100' mytask
In this example mytask must be run on a host that has the resource cserver
and at least 100 MB of virtual memory available.
You can also configure LSF to store the resource requirements of specific tasks.
If you configure LSF with the resource requirements of your task, you do not
need to specify the
-R res_req option of lsrun on the command-line. If you do
specify resource requirements on the command line, they override the
configured resource requirements.
See the Platform LSF Configuration Reference for information about
configuring resource requirements in the lsf.task file.
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.