Stack segment size limit

Sets a per-process (hard) stack segment size limit for all of the processes belonging to a job. Application-level and job-level stack segment size limits overwrite this value as the soft limit, but cannot exceed the hard limit set in the lsb.queues file.


Job syntax (bsub) Queue syntax (lsb.queues) Format/Default Units
-S stack_limit STACKLIMIT=limit integer KB

By default, the limit is specified in KB. Use the LSF_UNIT_FOR_LIMITS parameter in the lsf.conf file to specify a larger unit for the limit (MB, GB, TB, PB, or EB).

An sbrk() call to extend the stack segment beyond the stack limit causes the process to be terminated. The default is no limit.