LSF Version 7.3 - Administering Platform LSF
Administering Platform LSF 285
Specifying Resource Requirements
Specifying multiple -R options
bsub accepts multiple -R options for the select section. You can specify multiple
resource requirement strings instead of using the && operator. For example:
bsub -R "select[swp > 15]" -R "select[hpux]"
LSF merges the multiple -R options into one string and dispatches the job if all of
the resource requirements can be met. By allowing multiple resource requirement
strings and automatically merging them into one string, LSF simplifies the use of
multiple layers of wrapper scripts.
Selecting shared string resources
You must use single quote characters (') around string-type shared resources. For
example, use
lsload -s to see the shared resources defined for the cluster:
lsload -s
RESOURCE VALUE LOCATION
os_version 4.2 pc36
os_version 4.0 pc34
os_version 4.1 devlinux4
cpu_type ia pc36
cpu_type ia pc34
cpu_type unknown devlinux4
Use a select string in lsload -R to specify the shared resources you want to view,
enclosing the shared resource values in single quotes. For example:
lsload -R "select[os_version=='4.2' || cpu_type=='unknown']"
HOST_NAME status r15s r1m r15m ut pg ls it tmp swp mem
pc36 ok 0.0 0.2 0.1 1% 3.4 3 0 895M 517M 123M
devlinux4 ok 0.0 0.1 0.0 0% 2.8 4 0 6348M 504M 205M
Operators
These operators can be used in selection strings. The operators are listed in order
of decreasing precedence.
Syntax Meaning
-a
!a
Negative of a
Logical not: 1 if a==0, 0 otherwise
a * b
a / b
Multiply
a and b
Divide a by b
a + b
a - b
Add a and b
Subtract b from a
a > b
a < b
a >= b
a <= b
1 if a is greater than b, 0 otherwise
1 if a is less than b, 0 otherwise
1 if a is greater than or equal to b, 0 otherwise
1 if a is less than or equal to b, 0 otherwise
a == b
a != b
1 if a is equal to b, 0 otherwise
1 if a is not equal to b, 0 otherwise