Platform LSF Administration Guide Version 6.2

Job-level Resource Requirements
Administering Platform LSF
262
Job-level Resource Requirements
Each job can specify resource requirements. Job-level resource requirements override
any resource requirements specified in the remote task list.
In some cases, the queue specification sets an upper or lower bound on a resource. If
you attempt to exceed that bound, your job will be rejected.
Syntax
To specify resource requirements for your job, use bsub -R and specify the resource
requirement string as usual.
Example
%
bsub -R "swp > 15 && hpux order[cpu]" myjob
This runs myjob on an HP-UX host that is lightly loaded (CPU utilization) and has at
least 15 MB of swap memory available.
Viewing job-level resource requirements
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.
...
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;
...