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.

Memory Reservation for Pending Jobs<br />

Memory Reservation for Pending Jobs<br />

About memory reservation for pending jobs<br />

By default, the rusage string reserves resources for running jobs. Because<br />

resources are not reserved for pending jobs, some memory-intensive jobs<br />

could be pending indefinitely because smaller jobs take the resources<br />

immediately before the larger jobs can start running. The more memory a job<br />

requires, the worse the problem is.<br />

Memory reservation for pending jobs solves this problem by reserving memory<br />

as it becomes available, until the total required memory specified on the<br />

rusage string is accumulated and the job can start. Use memory reservation<br />

for pending jobs if memory-intensive jobs often compete for memory with<br />

smaller jobs in your cluster.<br />

Configuring memory reservation for pending jobs<br />

RESOURCE_RESERVE parameter<br />

Use the RESOURCE_RESERVE parameter in lsb.queues to reserve host<br />

memory for pending jobs.<br />

The amount of memory reserved is based on the currently available memory<br />

when the job is pending. Reserved memory expires at the end of the time<br />

period represented by the number of dispatch cycles specified by the value of<br />

MAX_RESERVE_TIME set on the RESOURCE_RESERVE parameter.<br />

Configure<br />

lsb.modules<br />

Configure<br />

lsb.queues<br />

Example queues<br />

To enable memory reservation for sequential jobs, add the <strong>LSF</strong> scheduler<br />

plugin module name for resource reservation (schmod_reserve) to the<br />

lsb.modules file:<br />

Begin PluginModule<br />

SCH_PLUGIN<br />

RB_PLUGIN<br />

SCH_DISABLE_PHASES<br />

schmod_default () ()<br />

schmod_reserve () ()<br />

schmod_preemption () ()<br />

End PluginModule<br />

Set the RESOURCE_RESERVE parameter in a queue defined in lsb.queues.<br />

If both RESOURCE_RESERVE and SLOT_RESERVE are defined in the same<br />

queue, job slot reservation and memory reservation are both enabled and an<br />

error is displayed when the cluster is reconfigured. SLOT_RESERVE is ignored.<br />

The following queue enables memory reservation for pending jobs:<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 />

272<br />

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

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

Saved successfully!

Ooh no, something went wrong!