Platform LSF Reference Version 6.2

lsb.queues
Platform LSF Reference
427
LSF will not suspend the only job running on the host if the machine is interactively
idle (
it > 0).
LSF will not suspend a forced job (brun -f).
LSF will not suspend a job because of paging rate if the machine is interactively idle.
If STOP_COND is specified in the queue and there are no load thresholds, the
suspending reasons for each individual load index will not be displayed by
bjobs.
Example
STOP_COND= select[((!cs && it < 5) || (cs && mem < 15 && swp
< 50))]
In this example, assume “cs” is a Boolean resource indicating that the host is a computer
server. The stop condition for jobs running on computer servers is based on the
availability of swap memory. The stop condition for jobs running on other kinds of
hosts is based on the idle time.
SWAPLIMIT
Syntax
SWAPLIMIT=
integer
Description
The amount of total virtual memory limit (in KB) for a job from this queue.
This limit applies to the whole job, no matter how many processes the job may contain.
The action taken when a job exceeds its SWAPLIMIT or PROCESSLIMIT is to send
SIGQUIT, SIGINT, SIGTERM, and SIGKILL in sequence. For CPULIMIT,
SIGXCPU is sent before SIGINT, SIGTERM, and SIGKILL.
Default
Unlimited
TERMINATE_WHEN
Syntax
TERMINATE_WHEN=
[LOAD] [PREEMPT] [WINDOW]
Description
Configures the queue to invoke the TERMINATE action instead of the SUSPEND
action in the specified circumstance.
LOAD — kills jobs when the load exceeds the suspending thresholds.
PREEMPT — kills jobs that are being preempted.
WINDOW — kills jobs if the run window closes.
If the TERMINATE_WHEN job control action is applied to a chunk job,
sbatchd
kills the chunk job element that is running and puts the rest of the waiting elements into
pending state to be rescheduled later.
Example Set TERMINATE_WHEN to WINDOW to define a night queue that will kill jobs if
the run window closes:
Begin Queue
NAME = night
RUN_WINDOW = 20:00-08:00
TERMINATE_WHEN = WINDOW
JOB_CONTROLS = TERMINATE[kill -KILL $LS_JOBPGIDS; mail - s
"job $LSB_JOBID killed by queue run window" $USER < /dev/null]
End Queue