LSF Version 7.3 - Administering Platform LSF

Selection String
286 Administering Platform LSF
Examples select[(swp > 50 && type == MIPS) || (swp > 35 && type == ALPHA)]
select[((2*r15s + 3*r1m + r15m) / 6 < 1.0) && !fs && (cpuf > 4.0)]
Specifying shared resources with the keyword “defined”
A shared resource may be used in the resource requirement string of any LSF
command. For example, when submitting an LSF job that requires a certain amount
of shared scratch space, you might submit the job as follows:
bsub -R "avail_scratch > 200 && swap > 50" myjob
The above assumes that all hosts in the cluster have access to the shared scratch
space. The job is only scheduled if the value of the
"avail_scratch" resource is
more than 200 MB and goes to a host with at least 50 MB of available swap space.
It is possible for a system to be configured so that only some hosts within the LSF
cluster have access to the scratch space. To exclude hosts that cannot access a shared
resource, the
defined(resource_name) function must be specified in the resource
requirement string.
For example:
bsub -R "defined(avail_scratch) && avail_scratch > 100 && swap > 100"
myjob
would exclude any hosts that cannot access the scratch resource. The LSF
administrator configures which hosts do and do not have access to a particular
shared resource.
Supported resource
names in the
defined function
Only the following resource names are accepted as the argument in the
defined(resource_name) function:
The following builtin resource names:
LSF_Base lsf_base LSF_Manager lsf_manager LSF_JobScheduler
lsf_js LSF_Make LSF_parallel LSF_Analyzer lsf_analyzer
Resource names configured inlsf.shared, except dynamic NUMERIC
resource names with INTERVAL fields defined.
The following resource names are not accepted in the
defined(resource_name)
function:
The following builtin resource names:
r15s r1m r15m ut pg io ls it tmp swp mem ncpus ndisks maxmem
maxswp maxtmp cpuf type model status rexpri server and hname
Dynamic NUMERIC resource names configured inlsf.shared with
INTERVAL fields defined. In the default configuration, these are
mode, cntrl,
it_t.)
Other non-builtin resource names not configured lsf.shared.
a && b Logical AND: 1 if both a and b are non-zero, 0 otherwise
a || b Logical OR:
1 if either a or b is non-zero, 0 otherwise
Syntax Meaning