Platform LSF Administration Guide Version 6.2
Supported Resource Usage Limits and Syntax
Administering Platform LSF
468
% bsub -c 10/DEC3000 myjob
See “CPU Time and Run Time Normalization” on page 472 for more information.
Data segment size limit
Sets a per-process (soft) data segment size limit in KB for each process that belongs to
this batch job. An
sbrk() or malloc() call to extend the data segment beyond the
data limit returns an error. The default is no soft limit.
File size limit
Sets a per-process (soft) file size limit in KB for each process that belongs to this batch
job. If a process of this job attempts to write to a file such that the file size would increase
beyond the file limit, the kernel sends that process a SIGXFSZ signal. This condition
normally terminates the process, but may be caught. The default is no soft limit.
Memory limit
Sets the memory limit, in KB.
If LSB_MEMLIMIT_ENFORCE=Y or LSB_JOB_MEMLIMIT=Y are set in
lsf.conf, LSF kills the job when it exceeds the memory limit. Otherwise, LSF passes
the memory limit to the operating system. Some operating systems apply the memory
limit to each process, and some do not enforce the memory limit at all.
LSF memory limit
enforcement
To enable LSF memory limit enforcement, set LSB_MEMLIMIT_ENFORCE in
lsf.conf to y. LSF memory limit enforcement explicitly sends a signal to kill a
running process once it has allocated memory past mem_limit.
You can also enable LSF memory limit enforcement by setting LSB_JOB_MEMLIMIT
in
lsf.conf to y. The difference between LSB_JOB_MEMLIMIT set to y and
LSB_MEMLIMIT_ENFORCE set to y is that with LSB_JOB_MEMLIMIT, only the
per-job memory limit enforced by LSF is enabled. The per-process memory limit
enforced by the OS is disabled. With LSB_MEMLIMIT_ENFORCE set to y, both the
per-job memory limit enforced by LSF and the per-process memory limit enforced by
the OS are enabled.
LSB_JOB_MEMLIMIT disables per-process memory limit enforced by the OS and
enables per-job memory limit enforced by LSF. When the total memory allocated to all
processes in the job exceeds the memory limit, LSF sends the following signals to kill
the job: SIGINT first, then SIGTERM, then SIGKILL.
On UNIX, the time interval between SIGINT, SIGKILL, SIGTERM can be configured
with the parameter JOB_TERMINATE_INTERVAL in
lsb.params.
Job syntax (bsub) Queue syntax (lsb.queues) Fomat/Units
-D data_limit
DATALIMIT=[
default
]
maximum
integer KB
Job syntax (bsub) Queue syntax (lsb.queues) Fomat/Units
-F file_limit
FILELIMIT=
limit
integer KB
Job syntax (bsub) Queue syntax (lsb.queues) Fomat/Units
-M mem_limit
MEMLIMIT=[
default
]
maximum
integer KB