LSF Version 7.3 - Administering Platform LSF

Administering Platform LSF 547
Runtime Resource Usage Limits
On AIX, if the XPG_SUS_ENV=ON environment variable is set in the user's
environment before the process is executed and a process attempts to set the limit
lower than current usage, the operation fails with errno set to EINVAL. If the
XPG_SUS_ENV environment variable is not set, the operation fails with errno set
to EFAULT.
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 a per-process physical memory limit for all of the processes belonging to a job
By default, the limit is specified in KB. Use LSF_UNIT_FOR_LIMITS in
lsf.conf
to specify a larger unit for the the limit (MB, GB, TB, PB, or EB).
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/Default Units
-F file_limit FILELIMIT=limit integer KB
Job syntax (bsub) Queue syntax (lsb.queues) Fomat/Default Units
-M mem_limit MEMLIMIT=[default] maximum integer KB