25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 35<br />

Advance Reservation<br />

2:50 0 0 0 1024 0 0 0<br />

3:0 0 0 0 0 0 0 0<br />

3:10 0 0 0 0 0 0 0<br />

3:20 0 0 0 0 0 0 0<br />

...<br />

23:30 0 0 0 0 0 0 0<br />

23:40 0 0 0 0 0 0 0<br />

23:50 0 0 0 0 0 0 0<br />

bjobs command<br />

Use bjobs -l to show the reservation ID used by a job:<br />

% bjobs -l<br />

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

Queue , Reservation , Command <br />

Mon Nov 12 5:13:21: Submitted from host , CWD<br />

;<br />

Submitting and modifying jobs using advance reservations<br />

Submitting and<br />

running jobs<br />

(bsub -U)<br />

Use the -U option of bsub to submit jobs with a reservation ID. For example:<br />

%bsub -U user1#0 myjob<br />

The job can only use hosts reserved by the reservation user1#0. By default,<br />

<strong>LSF</strong> selects only hosts in the reservation. Use the -m option to specify particular<br />

hosts within the list of hosts reserved by the reservation; you can only select<br />

from hosts that were included in the original reservation.<br />

If you do not specify hosts (bsub -m) or resource requirements (bsub -R), the<br />

default resource requirement is to select hosts that are of any host type (<strong>LSF</strong><br />

assumes "type==any" instead of "type==local" as the default select string.)<br />

A job can only use one reservation. There is no restriction on the number of<br />

jobs that can be submitted to a reservation; however, the number of slots<br />

available on the hosts in the reservation may run out. For example, reservation<br />

user2#0 reserves 1024 slots on hostA. When all 1024 slots on hostA are used<br />

by jobs referencing user2#0, hostA is no longer available to other jobs using<br />

reservation user2#0. Any single user or user group can have a maximum of<br />

100 reservation IDs.<br />

Jobs referencing the reservation are killed when the reservation expires. <strong>LSF</strong><br />

administrators can prevent running jobs from being killed when the reservation<br />

expires by changing the termination time of the job using the reservation<br />

(bmod -t) before the reservation window closes.<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong> 471

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

Saved successfully!

Ooh no, something went wrong!