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 34<br />

Running Parallel Jobs<br />

Viewing information about job start time<br />

Using backfill on memory<br />

Use bjobs -l to view the estimated start time of a job.<br />

If BACKFILL is configured in a queue, and a run limit is specified with -W on<br />

bsub or with RUNLIMIT in the queue, backfill jobs can use the accumulated<br />

memory reserved by the other jobs, as long as the backfill job can finish before<br />

the predicted start time of the jobs with the reservation.<br />

Unlike slot reservation, which only applies to parallel jobs, backfill on memory<br />

applies to sequential and parallel jobs.<br />

The following queue enables both memory reservation and backfill on<br />

memory in the same queue:<br />

Begin Queue<br />

QUEUE_NAME = reservation_backfill<br />

DESCRIPTION = For resource reservation and backfill<br />

PRIORITY = 40<br />

RESOURCE_RESERVE = MAX_RESERVE_TIME[20]<br />

BACKFILL = Y<br />

End Queue<br />

Examples of memory reservation and backfill on memory<br />

lsb.queues<br />

The following queues are defined in lsb.queues:<br />

Begin Queue<br />

QUEUE_NAME = reservation<br />

DESCRIPTION = For resource reservation<br />

PRIORITY=40<br />

RESOURCE_RESERVE = MAX_RESERVE_TIME[20]<br />

End Queue<br />

Begin Queue<br />

QUEUE_NAME = backfill<br />

DESCRIPTION = For backfill scheduling<br />

PRIORITY = 30<br />

BACKFILL = y<br />

End Queue<br />

lsb.params<br />

Assumptions<br />

Sequential jobs<br />

Per-slot memory reservation is enabled by RESOURCE_RESERVE_PER_SLOT=y<br />

in lsb.params.<br />

Assume one host in the cluster with 10 CPUs and 1 GB of free memory<br />

currently available.<br />

Each of the following sequential jobs requires 400 MB of memory. The first<br />

three jobs will run for 300 minutes.<br />

◆ Job 1:<br />

% bsub -W 300 -R "rusage[mem=400]" -q reservation myjob1<br />

The job will start running, using 400M of memory and one job slot.<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong> 455

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

Saved successfully!

Ooh no, something went wrong!