LSF Version 7.3 - Administering Platform LSF

Job-level Resource Requirements
282 Administering Platform LSF
This runs myjob on an HP-UX host that is lightly loaded (CPU utilization) and has
at least 15 MB of swap memory available.
bsub -R "select[swp > 15]" -R "select[hpux] order[r15m]"
-R "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 -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.
View job-level resource requirements
1 Use bjobs -l to view resource requirements defined for the job:
bsub -R "type==any" -q normal myjob
Job <2533> is submitted to queue <normal>.
bjobs -l 2533
Job <2533>, User <user1>, Project <default>, Status <DONE>, Queue
<normal>,
Command <myjob>
Fri May 10 17:21:26: Submitted from host <hostA>, CWD <$HOME>,
Requested Resources <type==any>;
Fri May 10 17:21:31: Started on <hostB>, Execution Home
</home/user1>,Execution CWD </home/user1>;
Fri May 10 17:21:47: Done successfully. The CPU time used is 0.3
seconds.
...
2 After a job is finished, use bhist -l to view resource requirements defined for
the job:
bhist -l 2533
Job <2533>, User <user1>, Project <default>, Command <myjob>
Fri May 10 17:21:26: Submitted from host <hostA>, to Queue
<normal>, CWD
<$HOME>, Requested Resources <type==any>;
Fri May 10 17:21:31: Dispatched to <hostB>;
Fri May 10 17:21:32: Starting (Pid 1850232);
Fri May 10 17:21:33: Running with execution home </home/user1>,
Execution
CWD </home/user1>, Execution Pid <1850232>;
Fri May 10 17:21:45: Done successfully. The CPU time used is 0.3
seconds;
...
NOTE: If you submitted a job with multiple select strings using the bsub -R option,
bjobs -l and bhist -l display a single, merged select string.