LSF_UNIT_FOR_LIMITS
Enables scaling of large units in the resource usage limits.
Syntax
LSF_UNIT_FOR_LIMITS=unit
Description
core
mem
stack
swp
tmp
The default of KB for these limits might be too small for some environments that make use of very large resource usage limits, for example, GB or TB.
The LSF_UNIT_FOR_LIMITS parameter applies cluster-wide to limits at the job level (bsub and bmod commands), host level (bhosts command), queue level (lsb.queues file), and application level (lsb.applications file). This parameter alters the meaning of all numeric values in the lsb.resources file to match the specified unit in gpool, and limits. It also controls the resource rusage attached to the job and the memory amount that defines the size of a package in GSLA.
The limit unit that is specified by the LSF_UNIT_FOR_LIMITS parameter also applies when limits are modified with the bmod command. The limit unit also applies to the display of resource usage limits in query commands (bacct, bapp, bhist, bhosts, bjobs, bqueues, lsload, and lshosts).
By default, the tmp resource is not supported by the LSF_UNIT_FOR_LIMITS parameter. Use the parameter LSF_ENABLE_TMP_UNIT=Y to enable the LSF_UNIT_FOR_LIMITS parameter to support limits on the tmp resource.
In the LSF multicluster capability environment, configure the same unit for all clusters.
Example
A job is submitted with bsub -M 100 and the LSF_UNIT_FOR_LIMITS=GB parameter is set. The memory limit for the job is 100 GB rather than the default 100 MB.
Valid values
- KB or K (kilobytes)
- MB or M (megabytes)
- GB or G (gigabytes)
- TB or T (terabytes)
- PB or P (petabytes)
- EB or E (exabytes)
- ZB or Z (zettabytes)
Default
- bsub and bmod
- bsub -C: KB
- bmod -C : KB
- core_limit -M: KB
- mem_limit -S: KB
- stack_limit -v: KB
- swap_limit: KB
- bsub -R: MB
- mem, swp, and tmp in RUSAGE and select sections: MB
- (Starting in Fix Pack 14) bhosts
- available_mem: MB
- reserved_mem: MB
- total_mem: MB
- lsb.applications
- CORELIMIT, MEMLIMIT, STACKLIMIT, SWAPLIMIT: KB
- RES_REQ
- mem, swp, and tmp in RUSAGE and select sections: MB
- lsb.queues
- CORELIMIT, MEMLIMIT, STACKLIMIT, SWAPLIMIT: KB
- RES_REQ
- mem, swp, and tmp in RUSAGE and select sections: MB
- mem, swp, and tmp in RESRSV_LIMIT: MB
- MEM and SWP that is configured in RSRC, found in APS_PRIORITY: MB
- lsb.resources
- MEM, SWP and TMP in the Limit section: MB
- mem for package resource TYPE in the Guaranteed section: MB
- MEM and SWP in the Host Export section: MB