-M

Sets a memory limit for all the processes that belong to the job.

Categories

limit

Synopsis

-M mem_limit [!]

Description

By default, LSF sets a per-process (soft) memory limit for all the processes that belong to the job. To set a hard memory limit, specify an exclamation point (!) after the memory limit. If the job reaches the hard memory limit, LSF kills the job as soon as it exceeds the memory limit without waiting for the host memory and swap threshold to be reached.

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.

You can use the following units for limits:
  • 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)

If the LSB_MEMLIMIT_ENFORCE or LSB_JOB_MEMLIMIT parameters are set to y in the lsf.conf file, or if you set the hard memory limits with an exclamation point (!), LSF kills the job when it exceeds the memory limit or if the host memory and swap threshold is reached. Otherwise, LSF passes the memory limit to the operating system. UNIX operating systems that support RUSAGE_RSS for the setrlimit() function can apply the memory limit to each process.

The Windows operating system does not support the memory limit at the OS level.