PREEMPTABLE_RESOURCES

Syntax

PREEMPTABLE_RESOURCES= res1 [res2] [res3] ....

Description

Enables preemption for resources (in addition to slots) when preemptive scheduling is enabled (has no effect if queue preemption is not enabled) and specifies the resources that will be preemptable. Specify shared resources (static or dynamic) that are numeric, decreasing, and releasable. One of the resources can be built-in resource mem, meaning that res1 is also option if memory comes later in the list.

The default preemption action is the suspend the job. To force a job to release resources instead of suspending them, set TERMINATE_WHEN=PREEMPT in lsb.queues, or set JOB_CONTROLS in lsb.queues and specify brequeue as the SUSPEND action. Some applications will release resources when sent the SIGTSTP signal. Use JOB_CONTROLS to send this signal to suspend the job.

To enable memory preemption, include mem in the PREEMPTABLE_RESOURCES list in lsb.params.

When preempting a job for memory, LSF does not free the memory occupied by the job. Rather, it suspends the job and dispatches another job to the host. It relies on the operating system to swap out the pages of the stopped job as memory of the running job grows.

Default

Not defined (if preemptive scheduling is configured, LSF preempts on job slots only)