25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Specifying Resource Usage Limits<br />

Specifying Resource Usage Limits<br />

Queues can enforce resource usage limits on running jobs. <strong>LSF</strong> supports most<br />

of the limits that the underlying operating system supports. In addition, <strong>LSF</strong><br />

also supports a few limits that the underlying operating system does not<br />

support.<br />

Specify queue-level resource usage limits using parameters in lsb.queues.<br />

Specifying queue-level resource usage limits<br />

Maximum value<br />

only<br />

Default and<br />

maximum values<br />

Limits configured in lsb.queues apply to all jobs submitted to the queue. Joblevel<br />

resource usage limits specified at job submission override the queue<br />

definitions.<br />

Specify only a maximum value for the resource.<br />

For example, to specify a maximum run limit, use one value for the RUNLIMIT<br />

parameter in lsb.queues:<br />

RUNLIMIT = 10<br />

The maximum run limit for the queue is 10 minutes. Jobs cannot run for more<br />

than 10 minutes. Jobs in the RUN state for longer than 10 minutes are killed by<br />

<strong>LSF</strong>.<br />

If only one run limit is specified, jobs that are submitted with bsub -W with a<br />

run limit that exceeds the maximum run limit will not be allowed to run. Jobs<br />

submitted without bsub -W will be allowed to run but will be killed when they<br />

are in the RUN state for longer than the specified maximum run limit.<br />

For example, in lsb.queues:<br />

RUNLIMIT = 10<br />

The maximum run limit for the queue is 10 minutes. Jobs cannot run for more<br />

than 10 minutes.<br />

If you specify two limits, the first one is the default (soft) limit for jobs in the<br />

queue and the second one is the maximum (hard) limit. Both the default and<br />

the maximum limits must be positive integers. The default limit must be less<br />

than the maximum limit. The default limit is ignored if it is greater than the<br />

maximum limit.<br />

Use the default limit to avoid having to specify resource usage limits in the<br />

bsub command.<br />

For example, to specify a default and a maximum run limit, use two values for<br />

the RUNLIMIT parameter in lsb.queues:<br />

RUNLIMIT = 10 15<br />

◆ The first number is the default run limit applied to all jobs in the queue that<br />

are submitted without a job-specific run limit (without bsub -W).<br />

◆ The second number is the maximum run limit applied to all jobs in the<br />

queue that are submitted with a job-specific run limit (with bsub -W). The<br />

default run limit must be less than the maximum run limit.<br />

348<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!