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.

Configuring Preemptive Scheduling<br />

Syntax<br />

Chapter 12<br />

Preemptive Scheduling<br />

To configure preemptive scheduling, make at least one queue in the cluster<br />

preemptive (not the lowest-priority queue) or preemptable (not the highestpriority<br />

queue).<br />

To make a queue preemptive or preemptable, set PREEMPTION in the queue<br />

definition (lsb.queues) to PREEMPTIVE or PREEMPTABLE. A queue can be<br />

both: its jobs can always preempt jobs in lower priority queues, and can always<br />

be preempted by jobs from higher priority queues.<br />

PREEMPTION = PREEMPTIVE[[queue_name[+pref_level]...]]<br />

PREEMPTABLE[[queue_name...]]<br />

When you specify a list of queues, you must enclose the list in one set of<br />

square brackets.<br />

PREEMPTIVE[[queue_name[+pref_level] ...]]<br />

Defines a preemptive queue. Jobs in this queue can preempt jobs from<br />

specified lower priority queues only, or from all lower priority queues by<br />

default if the parameter is specified with no queue names.<br />

If you specify a list of lower-priority preemptable queues, you must enclose<br />

the list in one set of square brackets. To indicate an order of preference for the<br />

lower-priority queues, put a plus sign (+) after the names of queues and a<br />

preference level as a positive integer. See “Configuring preemptable queue<br />

preference” on page 182 for more information.<br />

PREEMPTABLE [[queue_name ...]]<br />

Defines a preemptable queue. Jobs in this queue can be preempted by jobs<br />

from specified higher-priority queues, or from all higher-priority queues by<br />

default (if the parameter is specified with no queue names), even if the higherpriority<br />

queues are not preemptive.<br />

If you specify a list of higher-priority queues, you must enclose the list in one<br />

set of square brackets.<br />

Example<br />

In these examples, assume Queue 1 has highest priority and Queue 4 the<br />

lowest.<br />

◆ If the following settings are in lsb.queues:<br />

QUEUE_NAME=Queue1<br />

PREEMPTION=PREEMPTIVE<br />

Queue 1 is preemptive, so it can preempt jobs in all lower-priority queues<br />

(Queues 2, 3 and 4).<br />

◆ If the following settings are in lsb.queues:<br />

QUEUE_NAME=Queue1<br />

PREEMPTION=PREEMPTIVE[Queue3 Queue4]<br />

Queue 1 is preemptive, but can only preempt jobs in Queues 3 and 4, not<br />

Queue 2.<br />

◆ If the following settings are in lsb.queues:<br />

QUEUE_NAME=Queue3<br />

PREEMPTION=PREEMPTIVE PREEMPTABLE<br />

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

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

Saved successfully!

Ooh no, something went wrong!