25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Job-Level Resource Requirements<br />

Syntax<br />

Chapter 13<br />

Specifying Resource Requirements<br />

Each job can specify resource requirements. Job-level resource requirements<br />

override any resource requirements specified in the remote task list.<br />

In some cases, the queue specification sets an upper or lower bound on a<br />

resource. If you attempt to exceed that bound, your job will be rejected.<br />

To specify resource requirements for your job, use bsub -R and specify the<br />

resource requirement string as usual.<br />

Example<br />

% bsub -R "swp > 15 && hpux order[cpu]" myjob<br />

This runs myjob on an HP-UX host that is lightly loaded (CPU utilization) and<br />

has at least 15 MB of swap memory available.<br />

Viewing job-level resource requirements<br />

Use bjobs -l to view resource requirements defined for the job:<br />

% bsub -R type==any -q normal myjob<br />

Job is submitted to queue .<br />

% bjobs -l 2533<br />

Job , User , Project , Status ,<br />

Queue ,<br />

Command <br />

Fri May 10 17:21:26: Submitted from host , CWD ,<br />

Requested Resources ;<br />

Fri May 10 17:21:31: Started on , Execution Home<br />

,Execution CWD ;<br />

Fri May 10 17:21:47: Done successfully. The CPU time used is<br />

0.3 seconds.<br />

...<br />

After a job is finished, use bhist -l to view resource requirements defined<br />

for the job:<br />

% bhist -l 2533<br />

Job , User , Project , Command <br />

Fri May 10 17:21:26: Submitted from host , to Queue<br />

, CWD<br />

, Requested Resources ;<br />

Fri May 10 17:21:31: Dispatched to ;<br />

Fri May 10 17:21:32: Starting (Pid 1850232);<br />

Fri May 10 17:21:33: Running with execution home<br />

, Execution<br />

CWD , Execution Pid ;<br />

Fri May 10 17:21:45: Done successfully. The CPU time used is<br />

0.3 seconds;<br />

...<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong> 189

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!