Platform LSF Reference Version 6.2
bsub
Platform LSF Reference
165
◆
A job spanning section (span). The job spanning section indicates if a parallel batch
job should span across multiple hosts.
◆
A same resource section (same). The same section indicates that all processes of a
parallel job must run on the same type of host.
If no section name is given, then the entire string is treated as a selection string. The
select keyword may be omitted if the selection string is the first string in the resource
requirement.
The resource requirement string has the following syntax:
select[selection_string] order[order_string]
rusage[usage_string [, usage_string][|| usage_string] ...]
span[span_string] same[same_string]
The square brackets must be typed as shown.
The section names are s
elect, order, rusage, span, and same. Sections that do not
apply for a command are ignored.
Each section has a different syntax.
For example, to submit a job which will run on Solaris 7 or Solaris 8:
% bsub -R "sol7 || sol8" myjob
The following command runs the job called myjob on an HP-UX host that is lightly
loaded (CPU utilization) and has at least 15 MB of swap memory available.
% bsub -R "swp > 15 && hpux order[cpu]" myjob
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 job that will run on
hostE:
% bsub -R "bigmem" myjob
or
% bsub -R "defined(bigmem)" myjob
You configured a static shared resource for licenses for the Verilog application as a
resource called
verilog_lic. To submit a job that will run on a host when there is a
license available:
% bsub -R "select[defined(verilog_lic)] rusage[verilog_lic=1]"
myjob
The following job requests 20 MB memory for the duration of the job, and 1 license for
2 minutes:
% bsub -R "rusage[mem=20, license=1:duration=2]" myjob
The following job requests 20 MB of memory and 50 MB of swap space for 1 hour, and
1 license for 2 minutes:
% bsub -R "rusage[mem=20:swp=50:duration=1h, license=1:duration=2]" myjob
The following job requests 50 MB of swap space, linearly decreasing the amount
reserved over a duration of 2 hours, and requests 1 license for 2 minutes:
% bsub -R "rusage[swp=50:duration=2h:decay=1, license=1:duration=2]" myjob
The following job requests two resources with same duration but different decay:
% bsub -R "rusage[mem=20:duration=30:decay=1, lic=1:duration=30]" myjob