A resource usage section (rusage). The resource usage section specifies the expected resource consumption of the task.

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.

The resource requirement string sections have 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 for each section.

If select keyword and square brackets are omitted from the selection string, then the entire string is treated as a selection string (select[selection_string]). A selection string that omits the select keyword must be the first string in the resource requirement string.

When LSF_STRICT_RESREQ=Y in lsf.conf, LSF rejects resource requirement strings where an rusage section contains a non-consumable resource.

Any resource for run queue length, such as r15s, r1m or r15m, specified in the resource requirements refers to the normalized run queue length.

By default, memory (mem) and swap (swp) limits in select[] and rusage[] sections are specified in MB. Use LSF_UNIT_FOR_LIMITS in lsf.conf to specify a larger unit for the these limits (MB, GB, TB, PB, or EB).

For example, to submit a job that runs 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[ut]" myjob

bsub also accepts multiple -Roptions for the order, same, rusage, and select sections. You can specify multiple strings instead of using the && operator:

bsub -R "select[swp > 15]" -R "select[hpux] order[r15m]" -R rusage[mem=100]" -R "order[ut]" -R "same[type]" -R rusage[tmp=50:duration=60]" -R "same[model]" myjob

LSF merges the multiple -Roptions into one string and selects a host that meets all of the resource requirements. The number of -Roption sections is unlimited, up to a maximum of 512 characters for the entire string.

REMEMBER: Use multiple -R options only with the order, same, rusage, and select sections of the resource requirements string and with the bsub and bmod commands.

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 runs on hostE:

bsub -R "bigmem" myjob

or

bsub -R "defined(bigmem)" myjob

Platform LSF Command Reference 197