LSF_CGROUP_CORE_AUTO_CREATE

Controls automatically creating Linux cgroups for a job, without the need to specify affinity resource requirements. For example, if enabled, running the bsub -n 2 a.out command automatically creates a two core cgroup.

Syntax

LSF_CGROUP_CORE_AUTO_CREATE=Y|y|N|n

Description

Setting LSF_CGROUP_CORE_AUTO_CREATE=Y for automatic cgroup creation is only applicable when these lsf.conf parameters are also set:
LSB_RESOURCE_ENFORCE="cpu [optional_parameters]"
LSF_PROCESS_TRACKING=Y
LSF_LINUX_CGROUP_ACCT=Y
With these three lsf.conf parameters set and the LSF_CGROUP_CORE_AUTO_CREATE parameter set to Y, LSF automatically adds the "affinity[core(1)]" resource requirement string to the current job's resource requirement whenever jobs are submitted. For example, you can submit a job without an affinity string (that is without specifying the -R "affinity[]" option), such as:
bsub -n2 -R "span[hosts=1]" myjob
In this case, LSF modifies the submission to include "affinity[core(1)]" as the -R "affinity[]" option, so that the resource requirement becomes:
bsub -n2 -R "span[hosts=1] affinity[core(1)]" myjob
If affinity is defined in the RES_REQ parameter of the job's application profile in the lsb.applications file, then that affinity setting will take precedence over the automatic setting.
Alternatively, you can also submit a job with an affinity string. For example:
bsub -n3 -R "span[hosts=1] affinity[core(3,same=numa): cpubind=numa: membind=localprefer]" myjob
In this case, your user specified string will override the automatically added one.

If LSF_CGROUP_CORE_AUTO_CREATE parameter set to N, LSF will not automatically create cgroups without an affinity string when running the bsub -R command.

Note that resizable jobs cannot have an affinity:
  • If the RESIZABLE_JOBS parameter is enabled in the lsb.params file, then LSF_CGROUP_CORE_AUTO_CREATE will be disabled and the mbd daemon will return a configuration warning.
  • If the RESIZABLE_JOBS parameter is enabled in the lsb.applications file, then jobs submitted to resizable application profiles will not have a default affinity.

Default

N