Workload Management
For clusters that have many users and a significant load, a workload manager (WLM) system allows a more efficient use of resources to be enforced for all users than if there were no such system in place. This is because without resource management, there is a tendency for each individual user to over-exploit common resources.
When a WLM is used, the end user can submit a job to it. This can be done interactively, but it is typically done as a non-interactive batch job.
The WLM assigns resources to the job, and checks the current availability as well as checking its estimates of the future availability of the cluster resources that the job is asking for. The WLM then schedules and executes the job based on the assignment criteria that the administrator has set for the WLM system. After the job has finished executing, the job output is delivered back to the user.
Among the hardware resources that can be used for a job are GPUs. Installing CUDA software to enable the use of GPUs is described in section 9 of the Installation Manual. Configuring GPU settings for BCM is described in section 3.16.2 of the Administrator Manual. Configuring GPU settings for an individual WLM is described in the section on getting that particular WLM up and running.
The details of job submission from a user’s perspective are covered in the User Manual.
Sections 7.1–7.5 cover the installation procedure to get a WLM up and running.
Sections 7.6 –7.7 describe how Base View and cmsh are used to view and handle jobs, queues and node drainage.
Section 7.8 shows examples of WLM assignments handled by BCM.
Section 7.9 describes the power saving features of WLMs.
Section 7.10 describes cgroups, a resources limiter, mostly in the context of WLMs.
Section 7.11 describes WLM customizations for settings other than the common settings covered by BCM.
7.1 Workload Managers Choices
Installation of new PBS and GE workload managers is no longer offered by BCM. Legacy setups that are already installed continue to work, and documentation for PBS and GE is therefore still available in the manuals.
Some WLM packages are installed by default, others require registration from the distributor before installation.
During cluster installation, a WLM can be chosen (figure 3.9 of the Installation Manual) for setting up. The choices are:
-
Slurm: Available as version 23.02 or 23.11. Slurm is a free (GPL) job scheduler, with commercial support.
-
LSF v10.1: IBM Spectrum LSF (Load Sharing Facility) version 10.1, is a further development of what used to be IBM Platform LSF.
-
None: For clusters that need no HPC job-scheduling.
The WLMs in the preceding list can also be chosen and set up later using the cm-wlm-setup tool (section 7.3).
After installation, if there are no major changes in the WLM for updated versions of the workload managers, then
-
WLMs that are packaged with BCM (Slurm) can have their packages updated using standard package update commands (
yum updateand similar). The installation and configuration of the WLM from the updated packages is carried out as described later on in this chapter. -
WLMs that are installed by picking up software from the vendor (LSF) can be updated by following vendor guidelines.
7.2 Forcing Jobs To Run In A Workload Management System
Another preliminary step is to consider forcing users to run jobs only within the WLM system. Having jobs run via a WLM is normally a best practice.
For convenience, BCM defaults to allowing users to log in via ssh to a node, using the authorized keys files stored in each users directory in /home (section 2.3.2). This allows users to run their processes without restriction, that is, outside the WLM system. For clusters with a significant load this policy results in a sub-optimal use of resources, since such unplanned-for jobs disturb any already-running jobs.
Disallowing user logins to nodes, so that users have to run their jobs through the WLM system, means that jobs are then distributed to the nodes only according to the planning of the WLM. If planning is based on sensible assignment criteria, then resources use is optimized—which is the entire aim of a WLM in the first place.
7.2.1 Disallowing User Logins To Regular Nodes Via cmsh
The usernodelogin setting of cmsh restricts direct user logins from outside the WLM, and is thus one way of preventing the user from using node resources in an unaccountable manner. The usernodelogin setting is applicable to node categories only, rather than to individual nodes.
In cmsh the attribute of usernodelogin is set from within category mode:
Example
The attributes for usernodelogin are:
-
always(the default): This allows all users tosshdirectly into a node at any time. -
never: This allows no user other than root to directlysshinto the node. -
onlywhenjob: This allows the user tosshdirectly into the node when a job is running on it. It typically also prevents other users from doing a directsshinto the same node during the job run, since typically the WLM is set up so that only one job runs per node. However, ansshsession that is already running is not automatically terminated after the job is done.-
Some cluster administrators may wish to allow some special user accounts to override the
onlywhenjobsetting, for example for diagnostic purposes. Before giving the details of how to override the setting, some background explanation is probably useful:The
onlywhenjobsetting works with the PAM system, and adds the following line to/etc/pam.d/sshdon the regular nodes:Nodes with the
onlywhenjobrestriction can be configured to allow a particular set of users to access them, despite the restriction, by allowing them with the PAM system, as follows: Within the software image <node image> used by the node, that is under/cm/images/<node image>, the administrator can add the set of user accounts to the fileetc/security/pam_bright.d/pam_allow.conf. This file is installed in the software image with a chroot installation (section 11.4) of thecm-libpampackage.Groups of users can be allowed using the file
etc/security/pam_bright.d/pam_allow_group.conf.Other adjustments to PAM configuration, such as the number of attempted logins and the associated wait time per login, can be carried by editing the
/etc/security/pam_bright.d/cm-check-alloc.conffile.The image can then be updated to allow the users, by running the
imageupdatecommand incmsh(section 5.6.2), or by clicking theUpdate nodeoption in Base View (section 5.6.3).
-
7.2.2 Disallowing User Logins To Regular Nodes Via Base View
In Base View, user node login access is set via a category setting, for example for the default category via the navigation path in figure 7.1: Grouping > Categories[default] > Edit > Settings > User node login

Figure 7.1: Disallowing user logins to nodes via Base View
7.2.3 Disallowing Other User Processes Outside Of Workload Manager User Processes
Besides disabling user logins, administrators may choose to disable interactive jobs in the WLM as an additional measure to prevent users from starting jobs on other nodes.
Administrators may also choose to set up scripts that run after job execution. Such scripts can terminate user processes outside the WLM, as part of a policy, or for general administrative hygiene. These are Epilog scripts and are part of the WLM.
The WLM documentation has more on configuring these options.
7.2.4 High Availability By Workload Managers
NVIDIA Base Command Manager uses the existing built-in high availability (HA) functionalities of workload managers as much as possible. A double server HA configuration with the existing built-in HA functionality can be carried out using the cm-wlm-setup utility (section 7.3), or using the Base View HA wizard (section 7.4.1). The built-in functionality makes use of the primary WLM server and secondary WLM server, which are placed on separate nodes.
The HA configuration aspect (section 17.1.3) in this case means that a WLM server role is assigned to both the WLM primary and the WLM secondary nodes. These primary WLM and secondary WLM servers can then:
-
both be on head nodes,
-
both be on regular (compute) nodes
It is not possible to configure a mixed setup—that is with one head node and one regular node—for the WLM servers on an HA setup.
If the head nodes are configured with the WLM server roles, then in the cluster entity configuration the primary server value is empty. This is because NVIDIA Base Command Manager always configures the primary WLM server on the primary cluster head node.
If two regular nodes are configured with the WLM server roles instead, then in the cluster entity configuration the primary server parameter is set to one of the compute nodes.
The cluster primary head node and the WLM primary server should not be confused. In particular, the active cluster head node and active workload manager server are not necessarily the same for the case of the Slurm, PBS Professional, or LSF workload managers. For these, if the passive cluster head node becomes an active cluster head node without a crash, then this does not trigger a passive WLM server on the newly active head node to also become an active WLM server. Thus, the WLM server can be active on a passive head node, and vice versa, because the WLM primary server is independent of the cluster primary head node.
7.2.4.1 Slurm High Availability And scontrol takeover
Slurm can speed up takeover by running scontrol takeover from the Bash shell. This stops the primary slurmctld and triggers the Slurm failover algorithm.
However, by default BCM automatically restarts slurmctld, so the automatic restart of the slurmctld service must be disabled manually. There are also some other related housekeeping tasks that may need to be taken care of.
Instead of trying to run an scontrol takeover from Bash and then having to work around those kind of issues, BCM can be used to automate the takeover. That is to say, to run scontrol takeover cleanly from Bash with HA, the following configuration steps can be carried out:
-
Within CMDaemon, for Slurm, the
takeoverparameter is set totrue. Disabling the automatic restart of theslurmctldservice is then unnecessary:The
takeoversetting can be cleared with: -
If the installation of Slurm with
cm-wlm-setupwas carried out on what was a non-HA cluster at that time, then theprefailoverscriptparameter must be set within thefailoversubmode ofpartitionmode:This ensures that the active head node is taken over by Slurm during a change of active head node
Table 7.2.4.1 shows what slurmctld does when the takeover parameter is set. The detailed behavior per head node depends on whether the head nodes are active or primary:
* any value of yes or no
7.3 Installation Of Workload Managers
Normally the administrator selects a WLM to be used during BCM installation (figure 3.9 of the Installation Manual). A WLM may however also be added and configured after BCM has been installed, using cm-wlm-setup, or the Base View WLM wizard.
With most other objects, BCM front ends—cmsh and Base View—can be used to create a new object from scratch, or can clone a new object from another existing object. However, the front ends cannot do this for a WLM object. An attempt to create or clone a new WLM object via cmsh or Base View is prohibited by the front ends, because there are many pitfalls possible in configuration.
A new WLM object, and WLM instance, can therefore only be installed via cm-wlm-setup, the Base View WLM wizard, or by selecting a WLM during the initial BCM installation.
7.3.1 Running cm-wlm-setup In CLI Mode
The recommended way to run the cm-wlm-setup utility is without options or arguments, in which case a TUI dialog starts up. A TUI session run with cm-wlm-setup is covered in section 7.3.2.
However, the cm-wlm-setup utility can alternatively be used in a non-GUI, command-line, mode, with options and arguments. The utility has the following usage:
The help output from running cm-wlm-setup -h continues on beyond the preceding text output, and presents more options.
These options can be grouped as follows:
7.3.1.1 Optional Arguments
-
--setup: Helps set up a server, enable roles, and create the default queues/partitions -
--disable: Disable WLM services -
-h, --help: Displays the help screen
7.3.1.2 Common Arguments
-c<YAML configuration file>: Loads a runtime configuration for plugins, from a YAML configuration file.
7.3.1.3 Options For Installing Or Managing A WLM
-
--wlm<WLM name>: Specifies which WLM is to be set up. Choices for <WLM name> are:-
openpbs -
pbspro -
slurm -
uge -
lsf
-
-
--wlm-cluster-name<WLM cluster name>: Specifies the name for the new WLM cluster that is to be set up. -
--reboot: Reboot after install
7.3.1.4 Server Role Settings
-
--server-nodes<server nodes>: Sets the server roles of the WLM to the value set for <server nodes>, which is a comma-separated list of nodes. Default value:HEAD, which is a reserved name for the head node. -
--server-primary<primary server>: Sets the hostname used for the primary server to <primary server>. Default name:HEAD. -
--server-overlay-name<server overlay name>: Sets the server role configuration overlay name to <server overlay name>. Default name: <WLM name>-server, where <WLM name> is the name specified in the--wlmoption. -
--server-overlay-priority<server overlay priority>: Sets the server role configuration overlay priority to <server overlay priority>. Default value:500.
7.3.1.5 Client Role Settings
-
--client-categories<client categories>: Sets the client roles of the WLM to the value set for <client categories nodes>, which is a comma-separated list of node categories. Default value:default. -
--client-nodes<client nodes>: Sets the client roles of the WLM to the value set for <client nodes>, which is a comma-separated list of nodes. No value set by default. -
--client-overlay-name<client overlay name>: Sets the client role configuration overlay name to <client overlay name>. Default name: <WLM name>-client, where <WLM name> is the name specified in the--wlmoption. -
--client-overlay-priority<client overlay priority>: Sets the client role configuration overlay priority to <client overlay priority>. Default value:500. -
--client-slots<slots>: Sets the number of slots on the client to <slots>.
7.3.1.6 Submit Role Settings
-
--submit-categories<submit categories>: Sets the submit roles of the WLM to the value set for <submit categories nodes>, which is a comma-separated list of node categories that are submit nodes. Default value:default. -
--submit-nodes<submit nodes>: Sets the submit roles of the WLM to the value set for <submit nodes>, which is a comma-separated list of submit nodes. No value set by default. -
--submit-overlay-name<submit overlay name>: Sets the submit role configuration overlay name to <submit overlay name>. Default name: <WLM name>-submit, where <WLM name> is the name specified in the--wlmoption. -
--submit-overlay-priority<submit overlay priority>: Sets the submit role configuration overlay priority to <submit overlay priority>. Default value:500.
7.3.1.7 Disable Options
-
--reset-cgroups: Disable joining cgroup controllers with systemd setting JoinControllers -
--yes-i-really-mean-it: Required for additional safety
7.3.1.8 Workload Manager Specific Options
-
--archives-location<path>: Set the directory path for the archive files, only for LSF and GE. This parameter is mandatory for LSF installation. -
--license<path>: Set the path to the PBSPro, LSF, or GE license. -
--purge: Remove the directories on disable, for GE and LSF.
7.3.1.9 Slurm Accounting Role Settings
-
--accounting-overlay-name<accounting overlay name>: Sets the accounting role configuration overlay -
--accounting-overlay-priority<accounting overlay priority>: Sets the accounting role configuration overlay priority to <accounting overlay priority>. Default value:500.
7.3.1.10 Slurm Pyxis Settings
-
--add-pyxis: Add Pyxis to an existing cluster -
--reinstall-pyxis: Reinstall or upgrade Pyxis on all the clusters using it -
--remove-pyxis: Remove Pyxis from an existing cluster -
--with-pyxis: Enable Pyxis -
--pyxis-data-directory<path>: Sets directory where images will be stored
7.3.1.11 Slurm GPU Settings
-
--nvidia-gpus<NVIDIA GPUs specification>: Sets the NVIDIA GPUs that will be used in the configuration, specifying type and number of GPUs. For example:--nvidia-gpus=A100:4 -
--gpu-client-nodes<NVIDIA GPU client nodes>: Sets a comma-separated list of nodes assigned to the GPU overlay. -
--gpu-client-categories<NVIDIA GPU client categories>: Sets a comma-separated list of node categories assigned to the GPU overlay.
7.3.1.12 Advanced Options
-
-v, --verbose: This displays a more verbose output. It can be helpful in troubleshooting. -
--no-distro-checks: Disables distribution checks based on ds.json. -
--json: Use json formatting for logs printed to STDOUT. -
--output-remote-execution-runner: Format output for CMDaemon. -
--on-error-action {debug,remotedebug,undo,abort}: Upon encountering a critical error, instead of asking the user for choice, the setup will do the selected action. -
--skip-packages: Skip the stages which install packages. Requires packages to be already installed. -
--min-reboot-timeout<timeout>: How long to wait for nodes to finish reboot, in seconds. Minimum value:300. Default value:300. -
--allow-running-from-secondary: Allow the wizard to be run from the secondary when it is the active head node. -
--dev: Enables additional command line arguments for developers.
For example, if GE packages are downloaded to /root/ugedl, then a GE setup could be carried out with (much output elipsized):
Example
A check to see if the GE instance (WLM cluster) has been created could be:
Example
The GE instance can then be removed with:
Example
A log file of the setup can be seen at /var/log/cm-wlm-setup.log.
7.3.2 Running cm-wlm-setup As A TUI
Running cm-wlm-setup with no options and with no arguments brings up a TUI screen (figure 7.2).

Figure 7.2: cm-wlm-setup TUI initial screen
7.3.2.1 Express Installation
The Setup (Express) menu option allows the administrator to select the workload manager in the next screen (figure 7.3), and to install it with a minimal number of configuration steps. If it has already been installed, but disabled via cm-wlm-setup, then it can also be re-enabled, instead of installed from scratch.

Figure 7.3: cm-wlm-setup TUI WLM selection screen
7.3.2.2 Step-by-step Installation
If the Setup (Step By Step) menu option is chosen instead of the express option, then this also allows the administrator to select the workload manager in figure 7.3. But after selection, there are a number of extra configuration steps that can be carried out which are not available in the express configuration. Guidance is given for these extra steps, and sensible default values are already filled in for many options.
One part of the step-by-step session involves assigning the WLM client role to the compute nodes of the cluster. Only the non-GPU compute nodes should be assigned the (standard, non-GPU) WLM client role. The GPU compute nodes are assigned a GPU WLM client role in the section of the TUI wizard that deals with GPU configuration.
The WLM client role is assigned to the entire category—the default category— of non-head nodes by default (figure 7.4):

Figure 7.4: Slurm with cm-wlm-setup: WLM Client role category configuration screen
The WLM client role can be assigned to selected nodes only by setting the default category checkbox to blank, and then selecting the non-GPU nodes in the following screen. For example, as illustrated in figure 7.4, where the standard, non-GPU nodes are node002 and node003:

Figure 7.5: Slurm with cm-wlm-setup: WLM client role node configuration screen
7.3.2.3 GPU Configuration Screens
The GPU configuration screens are extra steps available during a Setup (Step By Step) session. The GPU configuration steps are discussed summarily in the quickstart section for GPUs, here.
The GPU configuration steps are covered in this section in more detail:
After configuring the WLM server, WLM submission and WLM client roles for the nodes of the cluster, a screen that asks if GPU resources should be configured is displayed (figure 1.1):

Figure 1.1: Slurm With cm-wlm-setup: GPU Configuration Entry Screen
Choosing yes means that some extra GPU configuration screens are presented. These are screens that allow:
-
the configuration overlay (section 2.1.6) name to be set for the GPU WLM clients. By default the name is set to
slurm-client-gpu. -
a GPU WLM client role to be assigned to a category, if, for example, all the GPU nodes have been given their own category.
-
the GPU WLM client role to be assigned to individual nodes instead of to a category.
-
a configuration overlay priority to be set for a GPU WLM client role. By default, this has a value of
450. -
automatic GPU detection, with the following options:
-
BCM autodetects GPUs -
Slurm autodetects NVIDIA GPU details -
Slurm autodetects AMD GPU details -
Slurm autodetects Intel GPU details -
Slurm autodetects AWS Trainium/Inferentia devices -
Manual GPU configuration in cm-wlm-setup -
Skip GPU configuration
-
7.3.2.4 Slurm Accounting Database Configuration
In the step-by-step configuration for the Slurm WLM, after the server and client parameters have been set, the Slurm accounting database configuration can be set.
This requires setting:
-
one or two accounting nodes
-
a primary accounting node
All nodes must be reachable from slurmctld.
The accounting nodes can be set with the Select accounting nodes screen (figure 7.7):

Figure 7.7: cm-wlm-setup selection of accounting nodes
Head nodes and compute nodes cannot be mixed for the accounting nodes. If two accounting nodes are set, then the slurmdbd high availability configuration is automatically set up.
The primary accounting node—that is, the node that is AccountingStorageHost in slurm.conf—can then be set in the Select the primary accounting server node screen (figure 7.8):

Figure 7.8: cm-wlm-setup selection of primary accounting node
The other accounting node is automatically set to be AccountingStorageBackupHost.
The type of node on which the slurmdbd database runs can then be set (figure 7.9):

Figure 7.9: cm-wlm-setup selection of the type of node on which the Slurm accounting database runs
-
If
Use accounting nodeis selected, then the database is stored on the primary accounting node -
If
Select cluster nodeis selected, then the next screen allows the selection of the BCM node on which the database is to be installed (figure 7.10)

Figure 7.10: cm-wlm-setup Selection of host where the Slurm accounting database used by slurmdbd is stored
- If
Select external nodeis selected, then a non-BCM hostname is asked for, and the cluster administrator is responsible for the installation and configuration of the DBMS
Modifying the settings after installation is discussed here.
7.3.2.5 Disabling An Installation
The Disable option in figure 7.2 allows the administrator to disable an existing instance.
7.3.2.6 Summary Screen
The screen that appears after the configuration steps are completed, is the Summary screen (figure 7.11). This screen allows the configuration to be viewed, saved, or saved and deployed.

Figure 7.11: cm-wlm-setup TUI summary screen
If deployment is carried out, then several screens of output are displayed. After the deployment is completed, the log file can be viewed at /var/log/cm-wlm-setup.log.
7.3.3 Installation And Configuration Of Enroot And Pyxis With Slurm To Run Containerized Jobs
7.3.3.1 What Is Enroot?
As the README file for Enroot says, Enroot is an open source tool to turn container images into unprivileged sandboxes. Enroot can be thought of as an enhanced unprivileged chroot. It uses user and mount namespaces, as well as other modern kernel features, in order to create such sandboxes. It uses the same underlying technologies as containers, but removes much of the isolation that they inherently provide, while preserving filesystem separation. Further details on Enroot can be found at https://github.com/NVIDIA/enroot.
Enroot can be used with different workload managers, but for now only Slurm has been tightly integrated.
7.3.3.2 What Is Pyxis?
Pyxis (https://github.com/NVIDIA/pyxis) is a SPANK plugin for Slurm. SPANK (Slurm Plug-in architecture for Node and job (K)control, man spank.8) is a generic interface for job launch code control in Slurm. The Pyxis plugin requires the Enroot utility, and allows the user’s jobs to be executed seamlessly over Enroot in unprivileged containers. The plugin enables the Slurm submission utilities to provide container-related command line options.
7.3.3.3 Enroot And Pyxis Packages
BCM provides two Enroot package flavors: standard and hardened. The standard binaries are compiled as follows:
-
Open file descriptors are inherited
-
Spectre variant 2 (IBPB/STIBP) mitigations are disabled
-
Spectre variant 4 (SSBD) mitigations are disabled
As a rule of thumb: the hardened flavor is slightly more secure but suffers a larger overhead.
-
The standard packages are already installed by default with BCM, and are:
-
enroot: provides the main utility and helper files. -
enroot+caps: a nearly empty package which runs a post-installation script to grant extra capabilities to unprivileged users. This allows them to import and convert container images. -
pyxis-sources: installs a tarball with the Pyxis plugin source files. The tarball is used bycm-wlm-setupto compile the Pyxis plugin on a cluster. The version of the package (section 11.1), found usingyum info pyxis-sourcesorapt-cache show pyxis-sources, implies the Pyxis source version that is provided. For example:pyxis-sources-0.20.0-[...].rpmprovides the Pyxis source for version 0.20.0.
-
-
The hardened packages that can be installed from the BCM repositories to replace the standard
enrootandenroot+capsare:-
enroot-hardened: provides hardened main utility and helper files. -
enroot-hardened+caps: Provides extra capabilities to unprivileged users so that they can import and convert containers themselves.
-
The package pyxis-sources installs the tarball at /cm/local/apps/slurm/var/pyxis/pyxis-sources.tar.gz. If the administrator needs a version of Pyxis other than the one provided by the package, then the archive can be replaced with a source tarball of the same name.
7.3.3.4 How Are Enroot And Pyxis Set Up In BCM?
Pyxis and Enroot can be set up or removed by the administrator by choosing the appropriate options when Slurm is set up. In order to choose the appropriate options, cm-wlm-setup can be run in step-by-step mode (here). Alternatively, Pyxis-related command line options can be specified for the cm-wlm-setup arguments --add-pyxis and --reinstall-pyxis.
The step-by-step mode eventually presents a screen where the Pyxis setup can be enabled via a plugin:

Figure 7.12: cm-wlm-setup Pyxis setup screen
The Pyxis screen is available for RHEL8-based systems and Ubuntu 20 and beyond. Older systems are not supported.
If the plugin is enabled in the Pyxis setup screen, then cm-wlm-setup installs the enroot and enroot+caps packages from https://github.com/NVIDIA/enroot/releases into the software images where the Slurm client role is to be assigned. The cm-wlm-setup uitility also installs them directly on the head node if the head node was selected to run jobs. Pyxis sources are downloaded from GitHub, compiled with the installed Slurm, and installed in the appropriate Slurm directory.
If the administrator enables the Pyxis plugin, then a new screen with Enroot settings is shown:

Figure 7.13: cm-wlm-setup Enroot settings screen
The Enroot settings have reasonable default values. The administrator can change these:
-
Share raw images among users and nodes: If enabled, then the raw container image is shared among users and nodes, and the administrator must ensure that the cache directory is shared among all the compute nodes. Enabling the option disables the creation of a UID subdirectory by the Enroot prolog script.The following points about implementing Enroot cache sharing should be considered by the administrator:
-
Enabling the checkbox for the option changes the default value of the Enroot cache directory to
/cm/shared/enroot/cache. The default value can also be changed in the TUI, in theCache directoryfield, to any shared directory. If the specified directory does not exist, thencm-wlm-setupcreates it with Unix directory permissions set tochmod 00777, which allows all users to share container images in the cache with each other on all the nodes. -
Restrictions can be placed on the ability of regular users to share images and to create files in the cache, by setting more restrictive permissions for the directory manually, after the
cm-wlm-setuprun.For example, the permissions can be set to 00770, while the ownership group of the directory is changed to a group with all the Pyxis users in it. In this case, only the users within the Pyxis users group can create the image layers in the cache.
-
An alternative to cache sharing of images among users and nodes is to save Squashfs images in a shared directory, outside the cache. Then the users can specify a full path to a shared Squashfs image on the cluster in the
srun/sbatchcommand line. In this case there is no need to share the cache among the nodes, as the Squashfs images are not copied over to cache before execution.
Only the administrator should have access to updating the image.
-
-
Share unpacked container images among nodes: Enables sharing of unpacked container images (image filesystems) among nodes. A user job can modify the filesystem, so it is not recommended to share this directory among users.Enabling the option disables removal of the Enroot data directory, if the container name is specified. This allows a user to keep the container filesystem between jobs run by the user. It is up to the user or the administrator to clean up the data directory if the option is enabled.
If the data directory is shared among nodes, then it is up to a user to ensure that the container filesystem is unpacked at least once before real jobs start. Otherwise, a race condition is possible when the images are extracted simultaneously on several nodes.
-
Cache directory: Path to the cache directory where raw container image layers are stored.If the directory is not shared, then the Slurm prolog script creates a subdirectory with a name that is the job user ID, while epilog cleans up that subdirectory. If the directory is shared, then neither prolog nor epilog touches the directory.
-
Data directory: Directory where the container filesystems (unpackaged images) are stored. If the directory is shared, then the epilog script checks if the container name is specified for the job, and skips removal of the container subdirectory. -
Runtime directory: A working directory with temporary files created by Enroot.
When Pyxis is set up, cm-wlm-setup also prepares the following configuration files for the compute nodes:
-
/etc/enroot/enroot.conf: This is a symlink to/cm/shared/apps/slurm/var/etc/enroot.conf. The configuration file provides reasonable default settings that allows Enroot to be used by many users. Important settings in the file are:-
ENROOT_RUNTIME_PATH: working directory for enroot, created per user. Default value:/run/enroot/runtime/$(id -u) -
ENROOT_CACHE_PATH: directory where container layers are stored. Default value:/run/enroot/cache/$(id -u) -
ENROOT_DATA_PATH: directory where the filesystems of running containers are stored. Default value:/run/enroot/data/$(id -u) -
ENROOT_SQUASH_OPTIONS: options passed tomksquashfsto produce container images. Default value:-noI -noD -noF -noX -no-duplicates -
ENROOT_MOUNT_HOME: mount the current user’s home directory by default. Default value:yes.
The administrator can change the symlink, or replace the file with a customized
enroot.conf, if other values are preferred. -
-
/etc/sysctl.d/80-enroot.conf: symlink to/cm/shared/apps/slurm/var/etc/enroot-sysctl.conf. The file tunessysctlparameters for Enroot. -
/cm/local/apps/slurm/var/prologs/50-prolog-enroot.sh: symlink to/cm/shared/apps/slurm/var/cm/prolog-enroot.sh. This is theslurmdprolog that creates appropriate directories, with appropriate user permissions, that are used by Enroot. -
/cm/local/apps/slurm/var/epilogs/50-epilog-enroot.sh: symlink to/cm/shared/apps/slurm/var/cm/epilog-enroot.sh. Cleans the user directories used by Enroot.
When cm-wlm-setup finishes its Pyxis configuration run, then there is no need for the nodes to be rebooted. The plugin works immediately.
The new Slurm submission command option names start with either --container or --no-container. The full list of options can be displayed with the --help option. For example:
Example
Simple installation validation: The simplest way to validate the Pyxis/Enroot setup after Slurm setup is to try out an srun command:
Example
A more thorough installation validation: In order to perform a more thorough test of Pyxis/Enroot, an NCCL-based test can be used. NCCL is the NVIDIA Collective Communications Library (https://docs.nvidia.com/deeplearning/nccl), which is a library of multi-GPU collective communication primitives. The test can be found at https://github.com/NVIDIA/nccl-tests. A prebuilt container image, with the NCCL test already installed, can be started as shown in the example that follows.
It should be noted that running a multi-tenant cluster with all the export flags enabled as in the example may compromise security. It is therefore not recommended as a standard configuration.
Example
The test demonstrates the usage of PMIX, MPI, and GPU in Enroot containers on multiple nodes. In the preceding example, 2 nodes with 1 GPU on each is requested by the job. For better results the cluster administrator can tune the test parameters.
It should be noted that the image is quite large, and requires enough free space under /var. Also, the transfer timeout (ENROOT_TRANSFER_TIMEOUT) in enroot.conf must be large enough to download such a large container image to the compute nodes. A value of at least 600 seconds is recommended.
If there are issues when executing MPI jobs with PMIX, then to help debug the issues the Pyxis documentation (https://github.com/NVIDIA/pyxis/wiki/Setup) suggests setting up the following environment variables:
-
PMIX_MCA_ptl=^usock -
PMIX_MCA_psec=none -
PMIX_SYSTEM_TMPDIR=/var/empty -
PMIX_MCA_gds=hash(as configured here)
This configuration change is typically carried out in the software image of the regular nodes. For example, for a node category called default:
7.3.4 Prolog And Epilog Scripts
7.3.4.1 What Prolog And Epilog Scripts Do
The workload manager runs prolog scripts before job execution, and epilog scripts after job execution. The purpose of these scripts can include:
-
checking if a node is ready before submitting a job execution that may use it
-
preparing a node in some way to handle the job execution
-
cleaning up resources after job execution has ended.
The administrator can run custom prolog or epilog scripts for the queues from CMDaemon for GE, or LSF, by setting such scripts in the Base View or cmsh front ends.
Example
For PBS and Slurm, there are global prolog and epilog scripts, but editing them is not recommended. Indeed, in order to discourage editing them, the scripts cannot be set via the cluster manager front ends. Instead the scripts must be placed by the administrator in the software image, and the relevant nodes updated from the image.
7.3.4.2 Detailed Workings Of Prolog And Epilog Scripts
Even though it is not recommended, some administrators may nonetheless wish to link and edit the scripts directly for their own needs, outside of the Base View or cmsh front ends. A more detailed explanation of how the prolog scripts work therefore follows:
When a workload manager is configured via cm-wlm-setup or via the Base View setup wizard, then the workload manager is configured to run the generic prolog located in /cm/local/apps/cmd/scripts/prolog, and the generic epilog located in /cm/local/apps/cmd/scripts/epilog. The generic prolog and epilog scripts call a sequence of scripts for a particular workload manager in special directories. The directories have paths in the format:
-
/cm/local/apps/<workload manager>/var/prologs/ -
/cm/local/apps/<workload manager>/var/epilogs/
In these directories, scripts are stored with names that have suffixes and prefixes associated with them that make them run in special ways, as follows:
-
suffixes used in the prolog/epilog directory:
-
-prejobscript runs prior to all jobs -
-cmjob: script runs prior to job run in a cloud
-
-
prefixes used in the prolog/epilog directory:
-
00-to -
99-
Number prefixes determine the order of script execution, with scripts with a lower number running earlier.
-
The script names can therefore look like:
Example
-
01-prolog-prejob -
10-prolog-cmjob
Return values for the prolog/epilog scripts have these meanings:
-
0: the next script in the directory is run. -
A non-zero return value: no further scripts are executed from the prolog/epilog directory.
Often, the script in a prolog/epilog directory is not a real script but a symlink, with the symlink going to a real file located in a different directory. The general script is then able to take care of what is expected of the symlink. The name of the symlink, and destination file, usually hints at what the script is expected to do.
For example, if any health checks are marked to run as prejob checks during cm-wlm-setup configuration, then each of the PBS workload manager variants use the symlink 01-prolog-prejob within the prolog directory /cm/local/apps/ <workload manager>/var/prologs/. The symlink links to the script /cm/local/apps/cmd/scripts/prolog-prejob. In this case, the script is expected to run prior to the job.
Example
Epilog scripts (which run after a job run) have the location /cm/local/apps/ <workload manager>/var/epilogs/. Epilog script names follow the same execution sequence pattern as prolog script names.
It should be noted that the 01-prolog-prejob symlink is created and removed by BCM on each compute node where prejob is enabled in the workload manager entity. Each such entity provides a Enable Prejob parameter that affects the symlink existence:
Example
This parameter is set to yes by cm-wlm-setup when at least one health check is selected as a prejob one. If any healthcheck was configured as a prejob check before cm-wlm-setup execution, and the administrator had a checkmark for that health check, then the prejob is considered enabled.
7.3.4.3 Workload Manager Configuration For Prolog And Epilog Scripts
BCM configures generic prologs and epilogs during workload manager setup with cm-wlm-setup. The administrator can configure prologs and epilogs using appropriate parameters in the configuration of the workload managers, by creating the symlinks in the local prologs and epilogs directories.
Generic prologs and epilogs are configured by default to run on job compute nodes (one run per each node per job) for Slurm, PBS variants and LSF. However, for GE the generic prolog runs only on main job node due to the limitations of GE configuration.
The following parameters for prologs and epilogs can be configured with cmsh or Base View:
-
Slurm
-
Prolog Slurmctld: the fully qualified path of a program to execute before granting a new job allocation. The program is executed on the same node where theslurmserverrole is assigned. The parth corresponds to thePrologSlurmctldparameter inslurm.conf. -
Epilog Slurmctld: the fully qualified path of a program to execute upon termination of a job allocation. The program is executed on the same node where theslurmserverrole is assigned. Corresponds with theEpilogSlurmctldparameter inslurm.conf. -
Prolog: the fully qualified path of a program to execute on job compute nodes before granting a new job or step allocation. The program corresponds to thePrologparameter, and by default points to the generic prolog. This prolog runs on every node of the job if theProlog flagsparameter contains the flagAlloc(the default value), otherwise it is executed only on the first node of the job. -
Epilog: the fully qualified path of a program to execute on job compute nodes when the job allocation is released.
-
-
LSF
-
Prolog: the fully qualified path of a program to execute on the LSF server node on job allocation. As an LSF queue parameter, it corresponds to thePRE_EXECparameter inlsb.queues. -
Epilog: the fully qualified path of a program to execute on the LSF server node on job allocation release. As an LSF queue parameter, it corresponds to thePOST_EXECparameter inlsb.queues -
Host prolog: the fully qualified path of a program to execute on each node of a job before the job is started. Corresponds to theHOST_PRE_EXECparameter inlsb.queues. By default it is configured to run the generic prolog -
Host epilog: the fully qualified path of a program to execute on each node of a job after the job is finished. Corresponds to theHOST_POST_EXECparameter inlsb.queues. By default it is configured to run the generic epilog.
-
-
GE
-
Prolog:ugeserverrole parameter that points to the fully qualified path of a program to execute. By default it is the generic prolog. It is executed only on the GE server node. -
Epilog:ugeserverrole parameter that is empty by default. It can be configured to run the generic epilog. It is executed only on the GE server node.
-
-
PBS variants
Pelogs: prolog and epilog hooks that emulate the classic PBS prologueand epiloguescripts located in thepbs_momdirectory. Thepelogsare configured in the appropriate workload manager instance, withinpelogsmode when configuring the PBS cluster entity. For example, incmsh:Example
The parameters of each pelog correspond to appropriate parameters of PBS hooks:
-
Name: hook name that will be used in PBS
-
Enabled: flag to enable the hook in PBS
-
Events: list of PBS events that the hook will run on
-
Path: path to the hook script that will be imported to PBS in case the hook is not found. The script will not be imported if a hook with the same name already exists in PBS
-
Order: the hook execution order
-
Alarm: the hook alarm time (timeout), in seconds
Additional parameters related to the prolog and epilog hooks only are:
-
Default action: The PBS default action when a prolog or epilog fails
-
Enable parallel: enable parallel prologues and epilogues, that run on sister moms
-
Verbose user output: provide verbose hook output to the user’s
.o/.efile -
Torque compatible: make torque compatible from prolog/epilog command line arguments point of view
By default, two pelogs are added. These are to run the generic prolog and the generic epilog. If needed, the administrator can add more pelog hooks that will run on different events.
-
7.4 Enabling, Disabling, And Monitoring Workload Managers
7.4.0.1 Enabling And Disabling A WLM
A WLM can be disabled for all nodes with cm-wlm-setup. Disabling the WLM means the workload management services are stopped by removing roles, and removing the WLM cluster object.
Alternatively, a WLM can be enabled or disabled by the administrator via role addition and role removal with Base View or cmsh. This is described further on in this section.
Multiple WLM instances of the same type: Versions of NVIDIA Base Command Manager prior to 9.0 already had the ability to have different workload managers run at the same time. However, NVIDIA Base Command Manager version 9.0 introduced the additional ability to run many workload managers of the same kind at the same time.
Example
Two WLM instances, Slurm and OpenPBS, are already running at the same time in the cluster, with each WLM assigned to one category. Then, BCM can start up a third WLM instance, such as another Slurm WLM instance. These WLM instances are alternatively called WLM clusters, because they effectively allow one cluster to function as many separate clusters as far as running WLMs is concerned.
From the Base View or cmsh point of view a WLM consists of
-
a WLM server, usually on the head node
-
WLM clients, usually on the compute nodes
For the administrator, enabling or disabling the servers or clients is then simply a matter of assigning or unassigning a particular WLM server or client role on the head or compute nodes, as deemed appropriate.
The administrator typically also sets up an appropriate WLM environment module (slurm, uge, openpbs, pbspro, lsf), so that it is loaded up for the end user (section 2.2.3).
7.4.1 Enabling And Disabling A WLM With Base View
A particular WLM package may be installed, but the WLM may not be enabled. This can happen, for example, if disabling a WLM that was previously enabled.
If a WLM instance exists, then the WLM client, submission, and server roles can be enabled or disabled from Base View by assigning or removing the appropriate roles to nodes, categories, or configuration overlays. Within the role, the properties of the WLM may be further configured by setting options.
7.4.1.1 Workload Manager Role Assignment To An Individual Node With Base View
Workload Manager Server The following roles are WLM roles that can be assigned to a node:
-
server
-
submit
-
accounting (for the Slurm WLM only, to configure and run the
slurmdbdservice) -
client
For example, a Slurm server role can be assigned to a head node, basecm10, via the navigation path:
Devices > Head Nodes[basecm10] > Edit > Settings > Role > Role list[ADD] > SlurmServerRole

Figure 7.14: Workload management role assignment on a head node
The role window for the server then opens up, and allows role options to be set for the workload manager server. For example, for Slurm, a builtin or backfill option can be set for the Scheduler parameter. The workload manager server role is then saved with the selected options (figure 7.15).
To have the server start up on non-head nodes (but not for a head node), the imageupdate command (section 5.6.2) can be run. The workload manager server process and any associated schedulers then automatically start up.

Figure 7.15: Workload management role assignment options on a head node
Workload Manager Client Similarly, the workload manager client process can be enabled on a node or head node by having the workload manager client role assigned to it. Some basic options can be set for the client role right away.
Saving the role, and then running imageupdate (section 5.6.2), automatically starts up the client process with the options chosen, and managed by CMDaemon.
7.4.1.2 Workload Manager Role Assignment To A Category With Base View
It is true that workload manager role assignment can be done as described in the preceding text for individual non-head nodes. However it is usually more efficient to assign roles using categories or configuration overlays, due to the large number of compute nodes in typical clusters.
For example, the case can be considered of all physical on-premises non-head nodes. By default these are in the default category. This means that, by default, roles in the category are automatically assigned to all those non-head nodes, unless, as an exception, an individual node configuration overrides the category setting and uses a role setting instead at node level.
Viewing the possible workload manager roles for the category default is done by using the navigation path: Grouping > Categories[default] > Edit > Settings > Roles > Add Once the role is selected, its options can be edited and saved.
For compute nodes, the role assigned is usually a workload manager client. If the assigned role is that of a workload manager client, then the node with that role can have queues, GPUs, and other parameters specified for it.
For example, queues can then be assigned via the navigation path:
HPC > WLM Management Clusters[cluster instance] > Job Queues while GPUs, if using Slurm as the workload manager with default settings, can then be specified via the navigation path: Configuration Overlays > slurm-client-gpu > roles > slurmclient > edit > Generic Resources > gpu
The workload manager server role can also be assigned to a non-head node. For example, a Slurm server role can be taken on by a non-head node. This is the equivalent to the --server-nodes option of cm-wlm-setup.
Saving the roles with their options and then running imageupdate (section 5.6.2) automatically starts up the newly-configured workload manager.
7.4.1.3 Workload Manager Role Options With Base View
Each compute node role (workload manager client role) has options that can be set for GPUs, Queues, and Slots. Generally, the value that is set for Slots is the number of jobs expected to run on a node simultaneously. This number can, for example, be set to the number of threads. Threads (virtual cores) in the x86_64 architecture are provided by Intel’s hyper-threading (HT), or by AMD’s simultaneous multithreading (SMT).
The physical CPU, the cores on the CPU, and the threads of a core (HT, SMT) should not be confused with each other, they are distinct concepts, and can all have different values.
-
Slots, in a workload manager, corresponds in BCM to:-
the
CPUssetting (aNodeNameparameter) in Slurm’sslurm.conf -
the
nprocsetting in PBS,
In LSF setting the number of slots for the client role to
0means that the client node does not run jobs on itself, but becomes a submit host, which means it is able to forward jobs to other client nodes.The default value for
SlotsisAUTO, which means that the value forSlotsis auto-detected. The parameter may be alternatively be set to a non-negative number. Each WLM has a different implementation on how this is done. For instance, for Slurm, BCM uses Slurm’s own auto-detection implementation. On the other hand, for UGE BCM sets its value in the client role configuration overlay to the lowest number of hyperthreads among the nodes. -
-
Queueswith a specified name are available in their associated role after they are created. The creation of queues is described in sections 7.6.2 (using Base View) and 7.7.2 (usingcmsh).
All server roles also provide the option to enable or disable the External Server setting. Enabling that means that the server is no longer managed by BCM, but provided by an external device.
The cmsh equivalent of enabling an external server is described here.
7.4.2 Enabling And Disabling A Workload Manager With cmsh
A particular workload manager package may be set up, but not enabled. This can happen, for example, if no WLM server or WLM client role has been assigned.
If a WLM instance exists, then the WLM client, server, or submit roles can be enabled from cmsh by assigning it from within the roles submode. Within the assigned role, the properties of the WLM may be further configured by setting options.
7.4.2.1 Workload Manager Role Assignment To A Configuration Overlay With cmsh
In cmsh, workload manager role assignment to a configuration overlay (section 2.1.5) can be done using configurationoverlay mode. By default cm-wlm-setup run as a TUI session creates some configuration overlays with suggestive names, and assigns roles to the configuration overlays according to what the names suggest. Thus, for example, with the cm-wlm-setup TUI session used to carry out an express setup for Slurm, the configuration overlays that get created are the following:
Example
Nodes in the default category can take on the slurmclient or slurmsubmit role by setting the nodes for the role using the associated configuration overlays slurm-client or slurm-submit.
The wlm-headnode-submit configuration overlay is a special overlay. It is applied only to the head node, and is shared among all installed workload managers. Setting this overlay means that the head node, by default, has a submit role for a given workload manager.
Example
All the head nodes can also be made to take on the configuration overlay role by setting its All head nodes value to yes. The union set of All head nodes with Nodes is the set of nodes to which the role is applied for that configuration overlay.
Values for the parameters in a role, such as the slurmclient role, can be set within the configuration overlay:
Example
After the workload manager roles are assigned or unassigned, and after running imageupdate (section 5.6.2) for non-head nodes, the associated workload manager services automatically start up or stop as appropriate.
The configuration overlay role values are inherited by categories and nodes, unless the categories and nodes have their own values set. Thus, for role properties, a value set at node level overrides values set at category level, and a value set at configuration overlay level overrides a value set at category level. This is typical of how properties of objects are inherited in BCM levels.
7.4.2.2 Workload Manager Role Assignment To A Category With cmsh
In cmsh, workload manager role assignment to a node category can be done using category mode, using the category name, assigning a role from the roles submode, setting the WLM instance for that role, and committing the modified role:
Example
Settings that are assigned in the slurmclient role of the category overrule the slurmclient role configuration overlay settings.
The role assignment at category level requires the value for a WLM instance to be specified for wlmcluster before the commit command is successful.
7.4.2.3 Workload Manager Role Assignment To An Individual Node With cmsh
In cmsh, assigning a workload manager role to a head node can be done in device mode. This can be done by using the head node name as the device, assigning the workload manager role to the device, setting the WLM instance value to the role within the role submode, and committing the modified role.
Example
For regular nodes, role assignment is done via device mode, using the node name. Th node name is assigned the workload manager role, the WLM instance value is set for that role in the role submode, and the modified role is committed.
Example
The role assignment at node level requires the value for a WLM instance to be specified for wlmcluster before the commit command is successful.
Role assignment values set in device mode have precedence over any role assignment values set in category mode for that node. This means, for example, that if a node is originally in a node category with a slurmclient role and queues set, then when the node is assigned a slurmclient role from device mode, its queue properties are empty by default.
7.4.2.4 Setting Options For Workload Manager Settings With cmsh
In the preceding text, it is explained how the workload manager client or server is assigned a role (such as slurmclient or slurmserver) within the roles submode. It is done from within a main mode of cmsh. The main modes from which role assignment can be done are: configurationoverlay, category or device.
Options for workload managers in general: Whatever main mode is used, the workload manager options for a role can then be set with the usual object commands introduced in section 2.5.3.
-
WLM client options: For example, the configuration options of a WLM client, such as the PBS Professional client, can be seen by using the
showcommand on the role. Here it can be seen at acategorylevel, for the default categorydefault:Example
The
Slotsoption can be set in the roleExample
-
WLM server options: Similarly, WLM server options can be managed from an assigned server role. For PBS, the
pbsproserverrole for a device shows:Example
Option to set an external workload manager: A workload manager can be set to run as an external server from within a device mode role:
Example
For convenience, setting it on the head node is recommended.
The Base View equivalent of configuring externalserver is described here.
7.4.3 Monitoring The Workload Manager Services
By default, the workload manager services are monitored. BCM attempts to restart the services using the service tools (section 3.14), unless the role for that workload manager service is disabled, or the service has been stopped.
Workload manager roles and corresponding services can be disabled using cm-wlm-setup (section 7.3), Base View role configuration (section 7.4.1), or cmsh role configuration (section 7.4.2).
The daemon service states can be viewed for each node via the shell, cmsh, or Base View (section 3.14).
Queue submission and scheduling daemons normally run on the head node. From Base View their states are viewable via the navigation path to the services running on the node. For example, on a head node (figure 7.16), via:
Devices > Head Nodes > [basecm10] > Settings > JUMP TO > Services

Figure 7.16: Services seen on head node in Base View
For a regular node, a similar navigation path for node001, for example, is: Devices > Nodes > node001 > Settings > JUMP TO > Services
and leads to a view of services on the regular nodes (figure 7.17):

Figure 7.17: Services seen on regular node in Base View
Considering only the WLMs: in figure 7.16 the pbsserver is seen running on the head node, while in figure 7.17 the pbsmom server is seen running on the compute node.
The navigation path:
Devices > Head Nodes > basecm10 > Settings > JUMP TO > Roles
shows the roles that result in the servers running on the head node (figure 7.18):

Figure 7.18: Roles seen on head node in Base View
Similarly, the navigation path:
Devices > Nodes > node001 > Settings > JUMP TO > Roles
shows the roles on a regular node such as node001 (figure 7.19):

Figure 7.19: Roles seen on regular node in Base View
The roles seen in these figures are from the defaults that cm-wlm-setup provides in an express setup.
For regular nodes, the inheritance of roles from category level or configuration overlay level is indicated by the values in the INHERITED column. Thus, in figure 7.19, the pbsprosubmit and pbsproclient roles are decided by the default setting from the category level.
The assignment of roles can be varied to taste for WLMs. This allows WLM services to run on the head node or on the regular nodes.
From cmsh the services states are viewable from within device mode, using the services command. One-liners from the shell to illustrate this are (output elided):
Example
Roles can be viewed from within the main modes of configurationoverlay, category, or device. One-liners to view these are:
Example
The -p|--priority option displays of the list command the priority setting for the roles.
7.5 Configuring And Running Individual Workload Managers
BCM deals with the various choices of workload managers in as generic a way as possible. This means that not all features of a particular workload manager can be controlled, so that fine-tuning must be done through the workload manager configuration files. Workload manager configuration files that are controlled by BCM should normally not be changed directly because BCM overwrites them. However, overwriting by CMDaemon is prevented on setting the directive:
FreezeChangesTo <workload manager>Config = <true|false>
in cmd.conf (Appendix C), where <workload manager> takes the value of Slurm, UGE, LSF, or PBSPro, as appropriate. The value of the directive defaults to false.
A list of configuration files that are changed by CMDaemon, the items changed, and the events causing such a change are listed in Appendix H.
A very short guide to some specific workload manager commands that can be used outside of the NVIDIA Base Command Manager 10 system is given in Appendix F.
7.5.1 Configuring And Running Slurm
7.5.1.1 Slurm Packages
At the time of writing of this section (March 2026), BCM can be integrated with Slurm packages for Slurm versions 23.02, 23.11, 24.05, 24.11, and 25.05.
For Slurm version 23.02, the following packages are available from the BCM repositories for RHEL8, RHEL9, and derivatives:
-
slurm23.02: Simple Linux Utility for Resource Management, Slurm Workload Management -
slurm23.02-client: Spool dir and slurm conf installed on nodes -
slurm23.02-contribs: Perl tool to print Slurm job state information -
slurm23.02-libpmi: Slurm’s implementation of the pmi libraries -
slurm23.02-openlava: openlava/LSF wrappers for transition from OpenLava/LSF to Slurm -
slurm23.02-pam: PAM module for restricting access to compute nodes via Slurm. -
slurm23.02-perlapi: Perl API to Slurm. -
slurm23.02-slurmdbd: Slurm database daemon -
slurm23.02-slurmrestd: Slurm REST API translator -
slurm23.02-torque: Torque/PBS wrappers for transition from Torque/PBS to Slurm.
For Slurm version 23.11, the value of 23.02 is simply replaced by 23.11 in the preceding list of packages. Slurm version 23.11 also has an extra package:
slurm23.11-sackd: Slurm authentication daemon. Used on login nodes that are not running slurmd daemons to allow authentication to the cluster.
For Slurm versions 24.05, 24.11, or 25.05, the value of 23.11 in the 23.11 package names is simply replaced by 24.05, 24.11, or 25.05 respectively. In addition, Sharp packages (here) are available for 24.05, and 24.11.
The distribution version of Slurm (package: slurm) is not integrated with BCM and conflicts with the preceding packages. It should not be used.
Important updates from upstream are patched into the BCM repositories. If updating Slurm packages, all the Slurm packages should be updated to the same version, on the compute nodes as well as on the scheduling node.
7.5.1.2 Updating From Earlier Slurm Versions To slurm23.11
Upgrading between major versions of Slurm is generally possible. It is a good idea to upgrade one version at a time, rather than jumping 2 or more versions ahead, which requires a full wipe of the Slurm configuration.
If Slurm is using Pyxis (section 7.3.3), then upgrading the Slurm version means that Pyxis needs to be reinstalled using cm-wlm-setup. The reinstallation run for Pyxis compiles Pyxis and recreates a plugin directory for the new Slurm version under /cm/shared/apps/slurm/.
An upgrade from one major version of Slurm to another can be carried out according to the following example, which is for an update from major version 22.05 to version 23.11, and avoids total reconfiguration of the Slurm configuration:
-
It is recommended that no jobs are running. Draining nodes (section 7.7.3) is one way to arrange this over time. No new jobs run on a drained node, but old ones are allowed to finish.
-
When all running jobs are finished, then Slurm server services—
slurmctldandslurmdbd—should be stopped usingcmshor Base View (section 3.14.2):Example
-
The old Slurm packages should then be removed. There can be only one version of Slurm at a time, so there will be a package installation conflict if a new version is installed while an old one is still there.
Removal can be carried out on RHEL-based systems with, for example:
The old packages must also be removed from each software image that uses it:
The
cm-chroot-sw-imgwrapper utility is discussed in section 11.4.1. -
The new packages can then be installed. For installation onto the RHEL head node, the installation might be carried out as follows:
The client package can be installed in each software image with, for example:
Other Slurm packages from the repository may also be installed on the head node and within the software images, as needed.
-
The new Slurm version is then set in
cmshor Base View, in the Slurm WLM cluster configuration:Example
-
Slurm server services
slurmctldandslurmdbdshould then be started again usingcmshor Base View:Example
-
The nodes can then have their new image placed on them, and the new Slurm configuration can then be taken up. This can be done in the following two ways:
-
The regular nodes can then be restarted to supply the live nodes with the new image and get the new Slurm configuration running.
-
Alternatively, the
imageupdatecommand (section 5.6.2) can be run on the live nodes to supply them with the image.Running the
imageupdatecommand in dry mode (the default) first is recommended. Thesynclogcommand can then be run to check there are no unexpected changes that will take place due to the update. If all is well, thenimageupdate’s wet mode flag-wcan be used in order to really carry out the task.For example, the change can be checked, and then actually carried out, for the image on
node001with:The last
commitcommand triggers the reconfiguration of the file/etc/systemd/system/slurmd.service.d/99-cmd.confon the node. After a short time—around 30 seconds—the file is regenerated. Theslurmdservice on the node can then be restarted with:
-
7.5.1.3 Slurm NVIDIA Sharp Plugin
NVIDIA’s Sharp packages are packages that offload some operations from CPUs and GPUs to the network. Sharp is the abbreviation used for the Scalable Hierarchical Aggregation and Reduction Protocol. The protocol refers to the reduction in the amount of data traversing the network and the reduction in the time for collective operations. Using Sharp frees up more CPUs and GPU resources for computation.
The Sharp binaries are packaged and available for Slurm versions 24.05 and 24.11.Running
apt-cache search slurm| grep sharp
is a way of listing the packages.
To use the NVIDIA Sharp plugin, the existing Slurm packages must be substituted by packages with the -sharp suffix. This allows the plugin and associated extra options to be used.
Example
The following session on an Ubuntu system illustrates the existing Slurm version 24.05 packages, and then carrying out a replacement of these with the corresponding Sharp versions:
The change should be treated like the upgrade procedure here, and should likewise end with the cluster administrator selecting the -sharp Slurm version parameter in cmsh and committing it.
Example
This plugin is only useful for a network that has the necessary hardware and services configured. Further information about Sharp can be found at https://docs.nvidia.com/networking/display/sharpv300.
7.5.1.4 Configuring Slurm
After Slurm setup is configured and installed with cm-wlm-setup (section 7.3), the Slurm software components are installed in a symlinked directory /cm/shared/apps/slurm/current.
Slurm clients and servers can be configured to some extent via role assignment (sections 7.4.1 and 7.4.2).
Using cmsh, advanced option parameters can be set under the slurmclient and slurmserver roles. The settings for the roles can be done at configuration overlay, category, or node level (sections 2.1.5, 2.1.6).
By default, the cm-wlm-setup utility configures Slurm using configuration overlays.
Example
The settings within the roles can be viewed and modified. For example, the slurmclient role of the slurm-client configuration overlay can be viewed:
Example
Slurm Hardware Autodetection (non-GPU): The setting Slurm hardware probe autodetect in the Slurm role enables automated hardware detection for Slurm for non-GPU hardware. (Specifically for GPUs is the related Slurm GPU auto detect setting (here)).
Slurm hardware probe autodetect enables detection for the following Slurm parameters:
-
corespersocket -
threadspercore -
boards -
socketsperboard -
sockets -
realmemory
The autodetected parameters are placed in the NodeName line in slurm.conf.
The Slurm client role parameters can be modified. For example Core Spec Count:
Example
As usual, values set at node level override the values set at categories and configuration overlays level.
For example, to set corespeccount to 4, only for node001 but not for other nodes, the session might run further as:
Example
In the preceding session, the role needs to be assigned at node level with assign slurmclient because it does not initially exist at node level. If it already existed, then use slurmclient could have been used to descend into that role.
Also in the preceding session, one of the values that the Slurm client needs to know is wlmcluster, which decides which WLM it is to work with on the cluster. The value is selected from the list of WLM instance names in wlm mode.
The level of the active role can be seen with the list command. For example, the Slurm client role assignment at node level is seen here:
Example
Removing the assignment has the list command display the configuration overlay Slurm client role assignment:
Example
Slurm Hardware Autodetection For GPUs: The Slurm GPU auto detect setting is a setting seen in the session output here. It manages Slurm GRES configuration (https://slurm.schedmd.com/gres.conf.html) automatically, and can be set:
-
globally, for all Slurm compute nodes in a Slurm instance, from within the
wlmmode ofcmsh -
for a particular role, such as in a device role, a category role, and a configuration overlay role for a Slurm client
Example
If GPU auto detect is assigned a value, then a corresponding value is assigned to the autodetect parameter in Slurm’s gres.conf file. One out of 7 values can be assigned to GPU auto detect:
-
bcm: to use BCM values, which are the values that CMDaemon automatically puts in for the vendor (NVIDIA, Intel, AWS, AMD) and for the number of GPUs. -
none: to not have theautodetectparameter exist ingres.conf. In this case, there is actually no corresponding value that can be assigned to theautodetectofgres.conf. -
nrt: to detect AWS Trainium/Inferentia devices. <— not yet, in October 2024, trunk, or bcm10.24.09 -
nvml: to detect NVIDIA GPUs. -
off: to turn Slurm GPU autodetection off. -
oneapi: to detect Intel GPUs. -
rsmi: to detect AMD GPUs
Slurm GPU autodetection is described further here.
Slurm accounting database configuration in cmsh: After package setup is carried out with cm-wlm-setup (section 7.3), cmsh can be used to modify the settings for the Slurm accounting database. Changes can be carried out in the slurm-accounting configuration overlay:
In the preceding overlay, slurmdbd runs on the accounting node(s). It is possible to run slurmdbd on both head nodes or on one or two compute nodes, as set in the configuration overlay. It is not possible to mix up head nodes and compute nodes for this configuration, and it is not possible to run slurmdbd on more than two nodes.
The other Slurm accounting changes can be found within the slurmaccounting role. For example, if node001 has been set during setup with cm-wlm-setup to be the primary accounting storage host, and HA has been enabled so that accounting runs on both nodes, then the parameter values may be displayed as follows:
Example
StorageHost, StoragePort, StorageLoc and StorageUser are settings for connecting to the MySQL database, If these are for an external host, then they must be configured manually so that they are reachable by the nodes running slurmdbd.
Generic resources (gres) configuration in Slurm: In order to configure generic resources, the genericresources mode can be used to set a list of objects. Each object then represents one generic resource available on nodes.
Each value of name in genericresources must already be defined in the list of GresTypes. The list of GresTypes is defined in the wlm role for the instance.
Example
Several generic resources entries can have the same value for name (for example gpu), but must have a unique alias. The alias is a string that is used to manage the resource entry in cmsh or in Base View. The string is enclosed in square brackets in cmsh, and is used instead of the name for the object. The alias does not affect Slurm configuration.
For example, to add two GPUs for all the nodes in the default category which are of type k20xm, and to assign them to different CPU cores, the following cmsh commands can be run:
Example
Typically this configuration is done automatically during the GPU configuration process as outlined in the GPU Configuration Screens section here, where by default the configuration overlay is given the name slurm-client-gpu.
In Base View, the navigation path:
Configuration Overlays > slurm-client-gpu > Edit > Roles > slurmclient > Edit > Generic Resources > ADD
provides the equivalent (figure 7.20):

Figure 7.20: Base View access to NVIDIA GPU configuration options
After the generic resources are committed, BCM updates the gres.conf file.
Since NVIDIA Base Command Manager version 8.2 and higher, a single gres.conf configuration file, located at /cm/shared/apps/slurm/var/etc/slurm/gres.conf is used.
If the category consists of node001 and node002, then the entries to the gres.conf file in this case would look like:
Example
Slurm topology configuration: Slurm supports topology-aware resource allocation to optimize job performance. For example, on a hierarchical network, the topology/tree plugin works so that Slurm allocates resources to jobs to minimize network contention. The network topology configuration for a Slurm instance <slurmcluster> is described by the file:
/cm/shared/apps/slurm/var/etc/ <slurmcluster>/topology.conf
The file is generated and modified by the topograph service (here) when the cluster administrator modifies the topology.
The following parameters can be set to modify the topology:
-
topology switches: A Slurm cluster configuration parameter that defines the list of switches used to write the topology file.Example
-
switch ports: The switch port definitions of a node or a switch. This information is used by BCM to construct the topology tree fortopology.conf.Example
-
SlurmTopology: an extra node value that allows the Slurm network topology to be configured without an actual need to configure switches and switch ports in BCM.Example
The preceding examples populate the autogenerated section of topology.conf as follows:
Example
The following AdvancedConfig directives (here) can be used to control the topology parameters.
-
SlurmStraightExtraTopology: If set to a value of0, then the order of switches is reversed when setting the extra values. For example, when it is set to0, then to get the same content oftopology.confas in the preceding example, the following lines can be run:Example
In topology/plugin configuration, switches and nodes cannot both be connected to the same switch. This is consistent with the description in
man topology.conf.5. If the configuration in BCM has both nodes and switches connected to the same switch, then only the nodes-to-switch connection is written totopology.conf. -
SlurmConcatTopologySwitchName: If set to1, then it allows concatenation of the switch names in the topology defined via theSlurmTopologynode extra setting. TheSlurmTopologysetting is described earlier on. The concatenation starts in order of parent switches first. Thus switchswitch02that is directly connected to switchswitch01is called intopology.confasswitch01-switch02.Example
The preceding results in the following content within
topology.conf:Example
Slurm topology generator: The topograph service discovers and generates a Slurm topology configuration. The topograph package is available from the BCM repositories for Ubuntu 22.04 or higher, and for RHEL9-compatible distributions:
Example
After picking up the package, the service should be set up on the nodes with the slurmserver role. Typically this is on the head node, and if the cluster is an HA cluster (Chapter 17) then it should be set up on both head nodes.
In BCM 10, the topograph service requires the following AdvancedConfig directives to be enabled:
The service can be set up on the head node(s) in BCM using the services submode of device mode:
Example
The certificates for the topograph service are under /etc/topograph/ssl/. The cluster administrator should set them up manually; BCM does not manage that configuration.
After restarting CMDaemon on nodes with the slurmserver role with:
systemctl restart cmd
a topology.conf file is generated.
For cloud service providers
managed by BCM there are some extra considerations for the topograph service:
-
For AWS clouds the compute nodes must be running (exist), and must have a flavor that supports the AWS topology API (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-topology.html).
-
For OCI clouds the nodes must exist in OCI, and the administrator can either:
-
set the advanced configuration directive (here):
TopographPassCredentials=1(default)
or can
-
set the advanced configuration directive:
TopographPassCredentials=0and specify some named dynamic group (https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingdynamicgroups.htm) policies in the tenancy.
Each named dynamic group must have permissions to inspect certain resources. Additionally, the special BCM
thebcmnonprod-topo-dgdynamic group must have various permissions set to use a variety of resources. The permissions can be set according to the OCI policy syntax (https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/callingservicesfrominstances.htm#Writing) as follows:
-
Slurm drain reason policy: CMDaemon allows nodes to be drained:
-
either by user request, using the
draincommand (section 7.7.3) or -
automatically, when a monitoring trigger (section 12.4.5) is configured. For example, if some healthcheck fails, then the appropriate node can be drained automatically.
The administrator can also manually drain a node outside of cmsh, using the Slurm scontrol command from the terminal, as described in man scontrol.1.
In all these cases the drain reason can be specified. By default, if a node is already drained, then a second drain command with a new drain reason replaces the old drain reason.
The behavior can be configured with the parameter Drain reason policy, within the Slurm cluster settings. The Drain reason policy can take one of the following (case-insensitive) values:
-
REPLACE: the old drain reason(s) is replaced by a new one -
APPEND: the new drain reason is separated by a comma, and appended to the existing one(s). -
SKIP:-
If a drain reason already exists, then setting the new drain reason is skipped.
-
If no drain reason already exists, then the new drain reason is applied.
-
In the following example, the drain reason policy is set to APPEND. This means that CMDaemon always appends a new drain reason to any existing ones.
Example
It is also possible to temporarily set an append policy in cmsh when draining a node, by using the + operator as a prefix to the drain reason:
Example
Slurm services restart or reconfiguration conditions:
-
When parameters in the Slurm configuration files are changed by BCM via CMDaemon, typically via actions of
cmshor Base View, then Slurm services automatically restart, andscontrol reconfigureis automatically run, as required. -
When parameters in the Slurm configuration files are changed directly, then BCM does not detect a change automatically, and therefore does not automatically restart or reconfigure Slurm.
Slurm subsystems are restarted and reconfigured based on the following list of conditions:
-
slurmctldandslurmdare restarted if:-
any of the following global
slurm.confparameters managed by CMDaemon are changed:-
SelectType -
SelectTypeParameters -
GresTypes -
StateSaveLocation -
SchedulerType -
SchedulerParameters -
SlurmctldParameters
-
-
gres.confis changed (by CMDaemon) -
oci.conf(https://slurm.schedmd.com/oci.conf.html) is changed (by CMDaemon). Incmshthis typically happens using theocisettingssubmode under thewlmmode. -
nodes are changed (by CMDaemon) in
slurm.conf(nodes are renamed, added, or removed).
-
-
An
scontrol reconfigureis carried out if:-
any Slurm parameters managed by BCM, that are not mentioned in the preceding list of conditions, are changed. This is true also for the
PartitionandNodeparameters within theslurm.conffile, except for theNodeNameandPartitionNameparameters specifically. -
cgroups.confis changed (by CMDaemon) -
topology.confis changed (by CMDaemon)
-
A restart or a reconfigure is not done by CMDaemon under other conditions.
Slurm resource consumption monitoring configuration: Slurm allows the configuration of how consumable resources (core, CPU, memory, etc) are tracked and shared among jobs on a node. At the time of writing of this section (November 2022), cmsh or Base View can be used to configure the tracking and sharing of resources as in the following text.
-
SelectType: this plugin configures the algorithm used to select resources for jobs. By default, NVIDIA Base Command Manager configures theselect/cons_tresplugin. This is an advanced version ofselect/cons_resplugin, and it also allows GPUs to be tracked separately from other consumable resources.Further details on
cons_rescan be found in the Slurm documentation at https://slurm.schedmd.com/cons_res.html and https://slurm.schedmd.com/cons_res_share.html.The
SelectTypeparameter is configured incmshor Base View, from within the Slurm cluster configuration settings:Example
-
SelectTypeParameters: allows the configuration of the resource selection plugin that is specified for theSelectTypeparameter. The possible values depend on the plugin type. Forselect/cons_tres, the values follow the pattern:-
CR_Memoryor -
CR_<COMPUTE_UNIT>[_Memory]where <COMPUTE_UNIT> takes one of the following values:-
Core -
CPU -
Socket -
Board
-
The value of
SelectTypeParametersspecifies if the <COMPUTE_UNIT> resource is tracked, or if the <COMPUTE_UNIT> resource is tracked together with memory, or if only memory is tracked.There are also a few special values that can be applied to
SelectTypeParameters:-
CR_ONE_TASK_PER_CORE: allocate one task per core (used only with theselect/linearplugin) -
CR_CORE_DEFAULT_DIST_BLOCK: allocate cores within a node using a block distribution -
CR_LLN: schedule resources to jobs on the least loaded nodes -
CR_Pack_Nodes: if a job allocation contains more resources than will be used for launching tasks, then rather than distributing a job’s tasks evenly across its allocated nodes, pack them as tightly as possible on these nodes.
-
-
OverSubscribe(here):-
if the
select/linearplugin is used, then theOverSubscribeparameter controls whether or not the nodes are shared among jobs -
if the
select/cons_resorselect/cons_tresplugins are used, then theOverSubscribeparameter controls whether or not the configured consumable resources are shared among jobs. For these plugins, when a consumable resource such as a core, socket, CPU, or other, is shared, it means that more than one job can be assigned to it. The parameter is set per Slurm partition (queue) and accepts the following values:-
EXCLUSIVE: allocate entire node for a job; -
FORCE: makes all resources (except for GRES) in the Slurm partition available for oversubscription without any means for users to disable it (may be followed with a colon and maximum number of jobs in running or suspended state); -
YES: makes all resources (except for GRES) in the Slurm partition available for sharing upon request by the job (may be followed with a colon and maximum number of jobs in running or suspended state); -
NO: no resource is allocated to more than one job.
-
-
-
AccountingStorageTRES: A comma-separated list of resources that the administrator wants to track on the cluster. By default the following resources (TRES) are tracked:-
billing
-
CPU
-
energy
-
memory
-
node
-
fs/disk
-
pages
-
vmem
These default TRES cannot be disabled, but only appended to. Resources use is recorded when used on the cluster. If GPUs of different types are tracked, then job requests with matching type specifications are recorded.
Example
If:
AccountingStorageTRES=gres/gpu:tesla,gres/gpu:voltais set
then:
gres/gpu:teslaandgres/gpu:voltatrack only jobs that explicitly request those two GPU types. -
Slurm REST API: slurmrestd is Slurm’s REST API daemon. It is installed with the BCM package slurm23.02-slurmrestd, or slurm23.11-slurmrestd. The distribution package, slurm-slurmrestd, should not be installed, and indeed its installation is not suggested by the package manager in a cluster that is correctly configured.
Slurm REST API package installation and version matching: If installing the REST API package, then care must be taken to match the versions exactly to its sibling Slurm packages (here). For example, if the already-installed packages have version 23.02:
Example
and if the Slurm REST API package version to be installed is as indicated by the following:
Example
then it means that all already-installed Slurm packages must be upgraded to release 100807_cm10.0_b3c3ec09a3 too.
The reason behind matching versions exactly is that the upstream versions can have significant configuration changes between subminor versions. These changes may result in a non-functioning workload manager. This is true, not only when considering the Slurm REST API package, but also true when considering the other Slurm packages.
Slurm REST API and authentication: The slurmrestd service can be configured with JWT (JSON Web Token) authentication as follows:
-
The JWT key is generated in the Slurm cluster configuration directory, and its ownership and permissions are then changed:
Example
The location of the key can differ, but user
slurmmust have read access to the file. -
The JWT plugin is configured in
slurm.conffor the Slurm cluster instance. For example, for a Slurm cluster instance <cluster name>:Example
The
slurmctldservice is restarted to apply the plugin settings. For example, if it is running on the head node: -
A
systemddrop-in file is created for the newslurmrestdservice:Example
Future versions of BCM may automatically create or update the file
99-cmd.conf. It is therefore recommended to use that file name as a best practice for cluster administration. -
The
slurmrestdservice is configured withincmshso that it can be monitored by BCM:Example
-
A ping-like
curlcheck can be run with custom extra headers to ensure that the Slurm REST API service is running properly, as follows:Example
The slurmrestd daemon configuration is specified by its command line arguments. These can be made permanent in /etc/sysconfig/slurmrestd.
Slurm supports GPU autodetection from version 20 onward, using the AutoDetect flag in gres.conf.
Slurm GPU autodetection allows AMD, Intel, and NVIDIA GPUs to have their GPU parameters be set automatically, if autodetection is also enabled in gres.conf. Slurm GPU autodetection removes the need for explicit GPU configuration in gres.conf.
The number of GPUs must however still be specified explicitly by the administrator. This is because at the time of writing (October 2024) Slurm has no GPU autodetection by default.
In BCM, the Slurm GPU hardware detection setting has 7 options, as covered here.
-
Setting the
bcmoption for Slurm GPU autodetection removes the need to specify any further GPU autodetect option. -
Setting a GPU vendor (NVIDIA, Intel, AMD) option for Slurm GPU autodetection means that the
Gres=...parameter inNodeNamelines inslurm.confis still required in order to tellslurmctldhow many GRES to expect. This means that the administrator must define GPUs in BCM, in thegenericresourcesmode of theslurmclientrole, if that has not already been specified duringcm-wlm-setup.However there is no need in this case to specify all the details. It is enough to add a single generic resource named
gpu, and to specify the number of such GPUs. In order to skip adding the generic resources togres.conf, while still allowing GRES information to be added theslurm.conffile, the flagAddToGresConfigshould be set tonoin thegenericresourceentity. For example:Example
Initial generic resources configuration for Slurm GPU autodetection can also be done during Slurm setup by cm-wlm-setup. If GPU configuration is chosen in the TUI screen of cm-wlm-setup (figure 7.21):

Figure 7.21: The screen prompting for GPU configuration in cm-wlm-setup
then the TUI allows Slurm GPU autodetection options to be selected (figure 7.22):

Figure 7.22: The GPU configuration screen of cm-wlm-setup
The options are the same as those described in the list of 7 options for GPU auto detect (here). The options result in the following actions:
-
BCM autodetects GPUs: BCM automatically detects numbers and types of GPUs on the selected nodes and configuresslurm.confappropriately. The administrator is not asked to configure anything. This option does not work if the nodes have GPUs from a mix of vendors. -
Slurm autodetects<vendor>GPU details: the administrator is prompted to specify numbers and types of GPUs later on. These values are then added to theGresparameter ofNodeNamelines inslurm.conf, while Slurm autodetects the rest of the GPU details. -
Manual GPU configuration in cm-wlm-setup: the administrator is prompted to enter the GPU parameters manually. The manual entries are then converted to appropriate lines ingres.conf.
Slurm GPU cluster settings: When a GPU is configured the following parameters can be configured with BCM:
Example
MIG and Slurm: NVIDIA’s Multi-Instance GPU (MIG) technology is a way to optimize GPU use. MIG allows a single GPU to be partitioned into up to 7 separate logical GPU instances, each providing separate GPU resources to user jobs. Slurm is MIG-capable since version 21.08.
BCM automates the configuration of MIG profiles as GPU generic resource types. This means that a user can request GPUs by type, and Slurm then tracks the MIG profiles usage.
MIG detection on Slurm compute nodes (nodes with the slurmclient role assigned) means that the slurm.conf and gres.conf files are automatically configured by CMDaemon as follows:
-
slurm.conf:-
For each node,
NodeNameparameter lines have aGresspecification (generic resource type specification) with the MIG profile names appended as strings. The strings take the format:gpu:<profile>:<number>where <number> is the number of instances with the profile name of
gpu:<profile>. For example:-
A GPU on
node001is partitioned into two MIG instances, one with a profile name of3g.40gb, and the other with a profile name of4g.40gb:Example
-
A GPU on
node001is partitioned into two MIG instances, both with same profile name3g.20gb. Also present is a regular GPU,a40, that is configured manually as a generic resource:Example
-
-
The
GresTypesparameter line has the MIG profiles from all the compute nodes.Example
-
The
AccountingStorageTRESparameter line includes the new generic resource per MIG profile.Example
-
-
gres.conf: theAutoDetectparameter is set toNVMLfor the nodes where MIGs are detected.Example
In this case Slurm detects the MIG details (links, file, cores, and so on) automatically.
If the GPUs are repartitioned by BCM, then the Slurm configuration is by default automatically updated with the new GPU types according to the new MIG profiles. The default value of yes can be modified with the configuremigs parameter in Slurm cluster settings:
Example
The administrator can validate that the MIG devices are correctly recognized by Slurm, by checking the Gres line output of the scontrol show node command:
Example
The presence of a socket value such as S:0 indicates that Slurm detected the MIG details on the node as expected.
Slurm node settings:
The parameter value for a Slurm option in slurm.conf is set by CMDaemon, if its value is not: 0.
A parameter value of 0 means that the default values of Slurm are used. These usually have the value: 0.
The advanced options that CMDaemon manages for Slurm are:
Further Slurm documentation is available:
-
via
manpages under/cm/shared/apps/slurm/current/man/ -
as HTML documentation in the version dependent directory of the form:
/cm/shared/apps/slurm/current/share/doc/slurm-<version>/html, or -
at the Slurm website at http://slurm.schedmd.com/documentation.html
Slurm is set up with reasonable defaults, but administrators familiar with Slurm can reconfigure the configuration file using a web browser. The web browser can be used, depending on the Slurm version being used, with one of the following paths:
-
/cm/shared/apps/slurm/current/share/doc/slurm-23.02.8/html/or -
/cm/shared/apps/slurm/current/share/doc/slurm-23.11.11/html/
The choice of JavaScript-based configuration generators is then:
-
configurator.easy.html: for a simplified configurator -
configurator.html: for a full version of the configurator.
If the configuration file becomes mangled beyond repair, the original default can be regenerated once again by re-installing the Slurm package, then running the script /cm/shared/apps/slurm/var/cm/cm-restore-db-password, and then running cm-wlm-setup. Care must be taken to avoid duplicate parameters being set in the configuration file—slurmd may not function correctly in such a configuration.
7.5.1.5 Advanced Slurm Job Accounting
PromQL queries can be run and then filtered by Slurm job labels with BCM. The labels are taken either from a job comment or from an account name used by the job. After the labels for the job are extracted, the labeled entity is stored in the monitoring data. The administrator can then run PromQL queries, and filter results by label. Examples of such PromQL queries are the job_gpu_wasted or job_gpu_utilization queries (section 14.4.1).
Extract accounting info must be set to yes to enable labels to be extracted from job comments or account names:
Example
In addition, the administrator must configure the job comment label format and the format of Slurm account names, if they exist. Without that configuration, BCM cannot not parse the labels.
Job comment labels: A user running the job can specify the label for the job comment in a special format. Such a label could be, for example, a tag to indicate the artificial neural network model, where different groups of jobs use different models. The administrator (after having enabled accounting information extraction) can set a regex for the tag in a Job comment field parameter in accounting submode:
Example
In the preceding example, the label model is set in the monitoring data when the job comment includes the string __model: <name> where <name> is any word started with the # character.
Account name labels: Several labels can be assigned by BCM to a job parsed from an associated account name. The labels can be used to represent a hierarchy of organizational entities, such as department, project, team, and so on. The following configuration options allow this representation:
-
Managed hierarchy: representation of the account name as a list of organizational entity labels.
-
Separator: a separator for the labels in the account names. By default this is the underscore character, _. The last entity is separated with double separator. This means that the last entity (and only the last entity) can have a single separator in the name itself.
For instance, if Slurm account names use the following format:
then Managed hierarchy values can be set as follows:
Example
It is up to the administrator to create the accounting hierarchy in Slurm, and set names as described by the Managed hierarchy parameter.
Example
In the preceding example two teams have been made. Team 1 is defined according to the full entities hierarchy (department, project, team), while Team 2 is defined only under a department. BCM correctly recognizes such “clipped” hierarchy locations for a team in the account names.
Similar to the Slurm command sshare, an administrator can display the Slurm account hierarchy with the fairshare command in cmsh:
Example
The following command options can be used:
-
-t|--table: print accounts fairshare parameters as a table -
-a|--account <name>: print information for specific account -
-f|--fields <PARAMETERS>: display only specified fairshare account parameters (comma-delimited) Format:where
MINandMAXare minimum and maximum value lengths. The parameter can be combined with others.
The following example uses labels from both job comment and account names:
Example
PromQL queries with these labels are run later on.
In cmsh the administrator can validate how BCM parses the job labels from both job comment and from the Slurm account name:
Jobs information can also be displayed by filtering using the labels (some output elided for clarity):
The following query filters the team:
The following query filters the model name:
Slurm NVIDIA Sharp settings: The Sharp plugin can be enabled by setting the following:
-
SelectTypetoselect/select/nvidia_sharp -
SelectTypeParameterswith these mandatory parameters:-
CR_CPU or CR_Core or CR_Socket
-
OTHER_CONS_TRES
-
CR_NVIDIA_SHARP_V3
-
-
The Topology plugin must be set to
topology/tree(https://slurm.schedmd.com/topology.conf.html) -
the value for
Licensesmust be set:Example
In the preceding,
pod01,ibcleaf01-01,ibcleaf01-02,ibcleaf01-03, andibcleaf01-04are switches. The number that follows after the switch name is the Sharp allocation, or how many jobs are allowed to use that switch.
7.5.1.6 Running Slurm
Slurm can be disabled and re-initialized with the cm-wlm-setup tool (section 7.3) during package installation itself.
Alternatively, role assignment and role removal can be used to adjust what nodes, if any, run Slurm. The assignment and removal of roles can be carried out from Base View (section 7.4.1) or cmsh (section 7.4.2).
The Slurm workload manager runs these daemons:
-
as servers:
-
slurmdbd: The database that tracks job accounting. It is part of theslurmdbdservice. -
slurmctld: The controller daemon. Monitors Slurm processes, accepts jobs, and assigns resources. It is part of theslurmservice. -
munged: The authentication (client-and-server) daemon. It is part of themungeservice.
-
-
as clients:
-
slurmd: The compute node daemon that monitors and handles tasks allocated byslurmctldto the node. It is part of theslurmservice. -
slurmstepd: A temporary process spawned by theslurmdcompute node daemon to handle Slurm job steps. It is not initiated directly by users or administrators. -
munged: The authentication (client-and-server) daemon. It is part of themungeservice.
-
Logs for the daemons are saved on the node that they run on. Accordingly, the locations are:
-
/var/log/slurmdbd -
/var/log/slurmd -
/var/log/slurmctld -
/var/log/munge/munged.log
7.5.2 Installing, Configuring, And Running GE
The workload manager, Grid Engine (GE), is a further development of the venerable SGE.
Grid Engine should be picked up directly from the Altair website at https://www.altair.com/grid-engine
The installation and integration of GE into NVIDIA Base Command Manager 10 can be carried out as in the following steps:
-
These GE tar.gz file collections should be downloaded from the Altair website to a directory on the head node:
-
Binary files:
-
The 64-bit Linux bundle
ge-<uge_ver>-bin-lx-amd64.tar.gz
-
or the 32-bit Linux bundle
ge-<uge_ver>-bin-lx-x86.tar.gz
-
-
Common files:
ge-<uge_ver>-common.tar.gz
Here <uge_ver> is the GE version, for example:
8.6.0To avoid installation issues, a check should be done to ensure that during the download, the
tar.gzfiles have not been renamed, or that their names not been changed to upper case. Both packages must be located in the same directory before installation.If a failover setup already exists, then the installation should be done on the active head node in the steps that follow.
-
-
The
cm-ugepackage should be installed from the BCM repository via the distribution’s package manager. That is, via,yum,zypper, orapt, as appropriate.The package installs, amongst others, the following template files under
/cm/shared/apps/uge/var/cm/:-
An environment module template,
uge.module.template -
An installation configuration template,
inst_template.conf.template -
Some other template files for a default GE configuration, under the directory
templates
The templates decide the configuration of GE (section “Configuring GE”, here).
The original files 7.5.2 and 7.5.2, with the
.templatesuffix, should never be modified by the administrator. The administrator can change the parameters affected by the installation configuration from their default values by copying these original files to the same directory without the.templatesuffix, and then editing the.conffile:Example
The copied file,
inst_template.conf, can be changed by the administrator to decide the location of GE software and how GE handles jobs, if needed. The changed file overrides the settings suggested by the.templatefile, when the BCM utilitycm-wlm-setupruns in the next step of the installation procedure.Some of the values in the key-value pairs in the file are enclosed by percentage signs, %. For example:
CELL_NAME="%CELL_NAME%". Such flagged values should not be modified, since they are replaced by BCM values bycm-wlm-setupduring installation.Values not enclosed by percentage signs are not replaced by
cm-wlm-setup. Such unflagged values can, if needed, be tuned in the copied file by the administrator. These values are then kept bycm-wlm-setupduring installation, and used when GE is run. -
-
cm-wlm-setupis run. The directory where the downloaded GE files are located can be specified with the--archives-locationoption, if using the CLI mode with options.Example
-
The nodes are rebooted. The GE command
qhostthen displays an output similar to:Example
The output in the preceding example has been truncated for this manual, for convenience.
7.5.2.1 Configuring GE
After installation and initialization, GE has reasonable defaults, with $SGE_ROOT set to /cm/shared/apps/uge/current.
By default, the GE application is installed in /cm/shared/apps/uge/current, and job examples are kept in /cm/shared/examples/workload/sge/jobscripts/.
7.5.2.2 Running GE
The GE workload manager runs the following two daemons:
-
an
sge_qmasterdaemon running on the head node. This handles queue submissions and schedules them according to criteria set by the administrator. -
an
sge_execdexecution daemon running on each compute node. This accepts, manages, and returns the results of the jobs on the compute nodes.
Messages from the qmaster daemon are logged in:
/cm/shared/apps/uge/current/ <uge instance name>/spool/messages
On the associated compute nodes the execution log messages exists, alongside other job tracking files and directories, at:
/cm/local/apps/uge/var/spool/node<number>/messages
where node<number> is the node name, for example:
node001, node002 …
7.5.2.3 GE Submission, Administrative And Execution Hosts
GE is still similar to SGE in many ways, but is evolving.
In GE terminology:
-
A submission host, or submit host, is a node that is allowed to submit jobs. Submission can be from the user, or from another job run by the user.
-
An execution host, or exec host, is a node on which the computational part of the job is executed.
-
An administrative host, or admin host, is a node that can carry out administrative Grid Engine commands.
Standard BCM Use
In a standard BCM configuration, a submission, administrative or execution host in GE is configured with the following ugeclient role properties:
-
Admin Host – adds the node to a list of administrative hosts in GE,
-
Exec Host – adds the node to a list of execution hosts in GE,
-
Submit Host – adds the node to a list of submission hosts in GE.
The nodes that are assigned a ugeserver role are always automatically added to the administrative and submission host lists.
Non-standard BCM Use
For non-standard configurations, where the GE service or login service is managed outside of BCM control, advanced configuration directives allow the cluster to be aware of the situation.
-
If the
ugeclientrole cannot be added, for instance due to the GE service being managed outside of BCM, then the additional execution hosts can be specified in the advanced configuration directive,AdditionalExecHosts, in thecmd.conffile:Example
-
If the
ugeclientrole cannot be added, for instance due to the login service being managed outside of BCM, then the execution hosts can be specified in the advanced configuration directive,AdditionalSubmitHosts, in thecmd.conffile:Example
7.5.2.4 Parallel Environments
A parallel environment (PE) allows the configuration of applications that use shared or distributed memory. The main—but not sole—purpose of a PE is to provide a job environment within which MPI applications can run, using various MPI libraries. PEs can be provided by the cluster software or hardware vendor, as well as distributed with GE itself. Default PEs are provided for various MPI libraries, such as Open MPI, MVAPICH, and so on. The default PEs are automatically added to GE when cm-wlm-setup installs GE.
The CMDaemon front ends, i.e. cmsh or Base View, can be used to add, remove, or modify the existing PE. Each GE cluster has a Parallel Environments submode. In the Parallel Environments submode, each PE is represented as a separate object with associated properties. For example, with cmsh the wlm mode is used to access the Open MPI properties within a GE cluster (some text elided):
Example
The values shown in the preceding example are defaults.
7.5.2.5 Database Recovery
By default, BCM configures GE to use flat file, or classic spooling as its format for the sge_qmaster spool. Typically this can handle thousands of jobs a day without running into performance issues, and it is the current (May 2015) recommendation for stability reasons.
For larger clusters it is possible to use Berkeley DB as the spooling format. This comes with a number of utilities, some of which can be useful for GE spool maintenance and debugging, such as db_recover, db_verify, and others.
The Berkeley DB utilities that come with GE are modified versions of the ones that are shipped with with the parent distribution Berkeley DB packages. The GE versions include extra sanity tests for the GE spool database, and it is best to use them instead of the standard versions. The utilities can be found in on the head node under:
/cm/shared/apps/uge/current/utilbin/lx-amd64/
This directory is not added to the $PATH when loading the GE environment with module load uge.
The full Berkeley DB documentation for these tools is part of the GE distribution. A local HTML format copy of the documentation is available at:
/cm/shared/apps/uge/current/doc/berkeleydb/db_*.html
7.5.2.6 GPU Management
When managing host resources such as GPUs, GE 8.1.0 and higher allows the accelerators to be configured via a resource map, RSMAP. This is a complex (man complex.5) value type defined on the host. RSMAP values restrict how much of a resource is used concurrently from a host, attaches identifiers to the resource used, and assigns the identifiers to the jobs when they get dispatched to that host. BCM automatically configures GE execution hosts with gpu RSMAP resources.
The ugeclient role can configure GPUs by using the following cmsh parameters:
-
GPU devices: a list of GPU names that are attached to a job by GE. -
Gpus: the number of GPUs on a host.
The GPU devices parameter has a higher priority than Gpus, so that if names are set in GPU devices, then they are always used.
GPUs can also be bound to particular CPU sockets and CPU cores, using a topology mask.
The mask is defined with a set of characters. In principle, the mask is applied to the computing units available for a device. The computing units correspond to processing units, and are grouped as CPU sockets, cores, and hardware threads. These correspond to the letters S, C, T. In the mask. An uppercase character allows a device to use a computing unit, while a lowercase character forbids it, as indicated by the following table:
In practice, T and t are ignored.
Some mask examples:
-
SccSCC: This is a two-core two-socket system. The first socket cannot be used, while both cores on the second socket can be used. -
SCcCCSccCC: This is a four-core two-socket system. The first socket has its first, third, and fourth cores available, and the second socket has its third and fourth cores available.
Some configuration examples from cmsh and the corresponding RSMAP complex attribute values on the host:
-
Naming 2 GPUs:
The RSMAP attribute value is then:
GPU=2(gpu0 gpu1) -
Allow GPUs to use only different sockets:
The RSMAP attribute value is then:
GPU=2(gpu0:SCCCCScccc gpu1:SccccSCCCC)
Further detailed information about RSMAP and topology mask usage can be found in the Altair Grid Engine Administrator’s Guide, at https://2021.help.altair.com/2021.1/AltairGridEngine/8.7.0/AdminsGuideGE.pdf#subsubsection.1.10.4 at the time of writing of this paragraph (September 2023).
7.5.3 Configuring And Running PBS
7.5.3.1 PBS Variants And Versions
BCM is integrated with PBS Professional Commercial workload manager version 2022, and with OpenPBS workload manager version 22.05.
-
PBS Professional: This is the commercial variant. It requires a license or a license server in order to run jobs. This information can be provided during a run of the setup wizard, or it can be manually configured after setup.
-
The packages for version 2022 are available as:
-
pbspro2022for the server, -
pbspro2022-clientfor the compute nodes.
Pre-2020 major versions of this commercial PBS variant were denoted by 2 digits (such as 18 or 19) to signify the year. Since version 20 the version numbering is denoted by 4 digits (such as 2021 and 2022).
-
-
-
OpenPBS: This is the open source variant with community support (http://openpbs.org). The community edition packages are available as:
-
openpbs22.05for the server, -
openpbs22.05-clientfor the compute nodes.
and as
-
openpbs23.06for the server, -
openpbs23.06-clientfor the compute nodes.
-
When no particular PBS variant is specified in BCM documentation, then the text is valid for both variants. BCM provides a similar level of integration for the commercial and the community packages. It is up to the cluster administrator to decide which variant is set up.
Both variants can be installed as a selection option during NVIDIA Base Command Manager 10 installation, at the point when a workload manager must be selected (figure 3.9 of the Installation Manual). Alternatively they can be installed later on, when the cluster has already been set up.
The PBS packages that the BCM repositories provide should be used instead of other available versions, such as from the Linux distribution.
If the PBS packages themselves have not been picked up, they can be installed and removed with a package manager such as YUM.
Example
If BCM has already been set up without PBS, but with PBS packages installed via YUM, then the cm-wlm-setup tool (section 7.3) should be used to install and initialize PBS.
7.5.3.2 Installing PBS
After package installation via the package manager, as described in the preceding section, PBS can be installed and initialized to work with BCM via cm-wlm-setup. With no options, a TUI session is started to guide the process. The alternative CLI process with options might take the following forms:
Example
or
The option --wlm pbspro installs the commercial version, while --wlm openpbs installs the community version.
The license information is either a path to a license file, or it is a Altair license server address list in the format:
<port1>@<host1>: <port2>@<host2>: <…>@<…>: <portN>@<hostN>
This license information can also be set manually for the pbs_license_info attribute. For example if there is just one license server, pbspro-license-server, serving on port 6200, it could be set with qmgr as follows:
Example
The software components are installed and initialized by default under the Spool directory, which is defined by the PBS_HOME environment variable. The directory is named after the WLM cluster name, and follows a path of the form:
/cm/shared/apps/pbspro/var/spool/ <WLM cluster name>
or
/cm/shared/apps/openpbs/var/spool/ <WLM cluster name>
as appropriate.
The paths /cm/shared/apps/pbspro or /cm/shared/apps/openpbs are the Prefix settings of the WLM, and depend on whether the WLM is running PBS Professional, or OpenPBS.
Users must load an environment module associated with the cluster name to set $PBS_HOME and other environment variables, in order to use that cluster.
Example
7.5.3.3 Updating From PBS v2021 To v2022
An old PBS v2021 version can be upgraded to v2022.
The release notes in the guide at https://2022.help.altair.com/2022.1.1/PBS%20Professional/PBS_RN_2022.1.1.pdf should be checked to identify possible upgrade issues.
To preserve the job history from v2021, steps to carry out the upgrade are as follows:
-
Scheduling should be disabled:
Example
A BCM way of preventing nodes from taking on jobs is to drain all the nodes that can run jobs. For example all the compute nodes that have the status
UP:Example
The cluster administrator should check that there are no running jobs.
Queued jobs, where the
Statuscolumn shows the valueQ, are not an issue. -
The
autostartsetting for thepbsserverservice must be set tono:This is to prevent CMDaemon restarting the PBS server automatically and interfering with the next few housekeeping steps.
-
The
pbsserverservice on the head node is stopped from withincmsh:Example
-
The cluster administrator would be wise to make a backup of the PBS instance <PBS instance> at
/cm/shared/apps/pbspro/var/spool/<PBS instance> directory on the head node, in case of a contingency. -
The cluster administrator must remove the
pbspro2021andpbspro2021-clientpackages from the head node and software image(s) using the package manager. -
The cluster administrator must install the
pbspro2022andpbspro22-clientpackages on the head node, and thepbspro2022-clientpackage in the software image(s) using the package manager. -
The PBS version must be set to
22incmsh:Example
-
The PBS service on the head node must be manually restarted (outside of CMDaemon). That means running, for example:
This is to allow for enough time for the PBS database upgrades and any other PBS server upgrades to occur. This may take upwards of 10 minutes to complete.
Its status can be checked with:
or
Any post-upgrade steps outlined in the release notes documentation can now be carried out (https://2022.help.altair.com/2022.1.1/PBS%20Professional/PBS_RN_2022.1.1.pdf).
After the post-upgrade steps, the PBS service on the head node can be stopped again, outside of CMDaemon:
The status can be checked with:
/etc/init.d/pbs status
or with:
cmsh -c "device use master; services; status pbsserver" -
The
autostartsetting for thepbsserverservice can now be set toyesagain: -
The
pbserverservice on the head node is restarted:Example
-
The
pbsmomservices on the compute nodes are then restarted:Example
-
Scheduling should be enabled again:
Example
If the nodes were drained, then they can be undrained:
Example
-
The administrator can then run the
tracejobcommand for PBS to check if the previous job information can still be accessed.
7.5.3.4 PBS Configuration
PBS documentation is to be found in the PBS Professional Guides, which can be accessed from: https://community.altair.com/community?id=altair_product_documentation.
By default, PBS examples are available under the directory /cm/shared/examples/workload/pbspro/jobscripts/
Some PBS configuration under BCM can be done using roles. The roles are the same for the variants of PBS, and are denoted as pbspro roles:
-
In Base View the roles setting allows the configuration of PBS client and server roles.
-
For the PBS server role, the role is enabled, for example on a head node
basecm10, via a navigation path of:Devices>Head Nodes>basecm10>Settings>Roles>Add>PBS pro server role- Within the role window for the server role, its installation path and server spool path can be specified.
-
For the PBS client role, the role is enabled along a similar navigation path, just ending at
PBS pro client role. The number of slots, GPUs and other properties can be specified, and queues can be selected.
-
-
In
cmshthe client and server roles can be managed for the individual nodes indevicemode, or managed for a node category incategorymode, or they can be managed for a configuration overlay inconfigurationoverlaymode.For example, if there is a PBS cluster instance called
pbsfast, then the head node could be assigned apbsproserverrole, with the following properties:Example
Similarly, a category of nodes that can be used by the instance
pbsfast, and calledfastnodes, may have a PBS client role assigned and set with the following properties:Example
Cloudbursting with cluster extension may need special handling for PBS. If this feature is needed, then the administrator should contact BCM support via the website https://www.nvidia.com/en-us/data-center/bright-cluster-manager/support/.
Further configuration of PBS is done using its qmgr command and is covered in the PBS documentation.
7.5.3.5 Running PBS
For the WLM cluster instances, PBS runs the following four daemons:
-
a
pbs_serverdaemon running, typically on the head node. This handles submissions acceptance, and talks to the execution daemons on the compute nodes when sending and receiving jobs. It writes logs to thevar/spool/<WLM cluster instance>/server_logs/directory, which is a directory that is under/cm/shared/apps/pbsproor/cm/shared/apps/openpbs. Queues for this service are configured with theqmgrcommand. -
a
pbs_schedscheduler daemon, also typically running on the head node. It writes logs to thevar/spool<WLM cluster instance>/sched_logs/directory under/cm/shared/apps/pbsproor/cm/shared/apps/openpbs. -
a
pbs_momexecution daemon running on each compute node. This accepts, manages, and returns the results of jobs on the compute nodes. By default, it writes logs-
to the relative directory
var/spool/<WLM cluster instance>/mom_logs/, which is under/cm/shared/apps/pbsproor/cm/shared/apps/openpbsand
-
to
/cm/local/apps/pbspro/var/spool/mom_logs/on nodes with the client role.
-
-
a
pbs_commcommunication daemon usually running on the head node. This handles communication between PBS daemons, except for server-to-scheduler and server-to-server daemons communications. It writes logs-
to the relative directory
var/spool/<WLM cluster instance>/comm_logs/, which is under/cm/shared/apps/pbsproor/cm/shared/apps/openpbsand
-
to
/cm/local/apps/pbspro/var/spool/comm_logs/on nodes with the client role.
-
7.5.3.6 Running PBS On Cluster Extension
Running PBS on a cluster extension must not involve any form of NAT, including netmap from iptables. Communication for both the commercial and the community PBS variants fail under the default NAT netmap via OpenVPN. Using a hardware VPN, Direct Connect (for AWS) or ExpressRoute (for Azure) is a workaround for using OpenVPN/netmap.
When PBS is set up with cm-wlm-setup or during the installation of the head node, then the pbsproclient role is assigned by default via a configuration overlay to the default node category only.
In order to add cloud nodes to PBS, the administrator can assign the pbsproclient role manually.
There are two types of PBS configuration in this case. The configurations can be applied to both the commercial and to the community editions.
-
pbs_momdaemons on cloud compute nodes communicate to thepbs_serverdirectly.This scenario is suited to a non-VPN setup where cloud nodes have addresses on the same IP subnet for the cloud and for the on-premises parts of the cluster. Usually this kind of setup is used with Amazon DirectConnection or Azure ExpressRoute. In order to add new cloud nodes, the administrator just needs to assign the
pbsproclientrole to thecloudnode category or the cloud nodes directly. -
pbs_momdaemons on cloud compute nodes communicate to thepbs_servervia a separatepbs_commserver. For BCM the use of thecloud-directoris recommended for this purpose.This can be useful if cluster extension is configured with a VPN tunnel setup. In this case the
pbs_momrunning on a cloud node communicates with thepbs_serverby using the VPN connection, and the communication traffic goes via an OpenVPN server. The OpenVPN connection adds overhead on the cloud-director where the OpenVPN daemon runs. If the traffic is routed viapbs_commrunning on cloud-director, then the OpenVPN server is not used. This is becausepbs_commdaemon on the cloud director resolves the cloudpbs_momaddresses with cloud IP addresses, whilepbs_serverresolvespbs_common the cloud director by using the VPN tunnel IP.In order to configure PBS to pass the communication traffic via
pbs_comm, the administrator should assignpbsproclientroles to not only the compute cloud nodes, but also to the cloud-director. On the cloud director, the administrator should enablepbs_commdaemon to start, andpbs_momdaemon to not start, automatically. These actions are done in thecommsettingsandmomsettingssubmodes ofpbsproclientrole.For the
pbsproclientrole assigned in the configuration overlay, the settings can be accessed incmshas in the following:Example
Further configuration that should be carried out is to set the
commroutersparameter on the cloud director tomaster, and set theleafroutersparameter on the compute cloud nodes to the hostname of the cloud director.For example (some text elided):
Example
7.5.4 Installing, Configuring, And Running LSF
IBM prefers to make LSF available directly from their Passport Advantage Online website, which is why it is not available by direct selection in figure 3.9 of the Installation Manual.
IBM provides LSF in 2 ways.
Somewhat confusingly, the archived IBM Spectrum LSF Suite version 10.2.0.9 has LSF Standard edition 10.1 as a component. The component is supported, but installation from the suite is not supported by BCM. That is, installation using the official IBM method or by carrying out a manual installation are both not supported by BCM. A cluster administrator should therefore not try to install LSF Standard Edition 10.1 from a IBM Spectrum LSF Suite release.
7.5.4.1 Installing LSF
The workload manager LSF version 10.1 is installed and integrated into NVIDIA Base Command Manager 10 with the following steps:
-
The following LSF files should be downloaded from the IBM web site into a directory on the head node:
-
Installation package:
lsf<lsf_ver>_lsfinstall_linux_<cpu_arch>.tar.Z -
Distribution package:
lsf<lsf_ver>_linux<kern_ver>-glibc <glibc_ver>-<cpu_arch>.tar.Z -
Documentation package (optional):
lsf<lsf_ver>_documentation.tar.Z
Here:
-
<lsf_ver> is the LSF version, for example:
10.1 -
<kern_ver> is the Linux kernel version, for example:
2.6 -
<glibc_ver> is the glibc library version, for example:
2.3 -
<cpu_arch> is the CPU architecture, for example:
x86_64
A check should be done to ensure that the
tar.Zfiles have not been renamed or had their names changed to lower case during the download, in order to avoid installation issues. All the files must be in the same directory before installation.In case of an existing failover setup, the installation is done on the active head node.
A license file for LSF may also be needed for the installation, but it does not have to be in the same directory as the other
tar.Zfiles. -
-
The
cm-lsfpackage must be installed on the head node. Thecm-lsf-clientpackage must be installed on both the head node and within the software images. By default they should have been already installed. If not then they can be installed manually from the BCM repository. For RHEL-based distributions the procedure looks like:For SLES distributions the procedure looks like:
For Ubuntu distributions the procedure looks like:
The
cm-lsfandcm-lsf-clientpackages contain a template for an environment module file, an installation configuration file, and systemd unit files. The installation configuration file may be tuned by the administrator if required. It is passed to thelsfinstallscript distributed with LSF, which is executed bycm-wlm-setupduring setup. To change the default values in the installation configuration file, the administrator should change the template file:Values enclosed by a percentage sign, ‘%’, are replaced by
cm-wlm-setupduring installation. If such values are replaced by custom values, thencm-wlm-setupdoes not change them, and the custom values are used during installation.If
install.configis changed instead of the template file, thencm-wlm-setupreplaces it with the configuration file generated from the template. So, changinginstall.configdirectly should almost certainly not ever be done. -
cm-wlm-setupis run. The directory where the LSF files were downloaded is specified on one of the setup screens, or with the--archives-locationoption.Example
The same can be achieved by executing
cm-wlm-setupwithout any command line arguments. The required information can be specified within the TUI configuration screens in this case. Also the same can be achieved with the WLM Wizard in Base View. -
The nodes are then rebooted, and the LSF command
bhoststhen displays an output similar to:Example
The output in the preceding example has been truncated for this manual, for convenience.
The installation status can be checked with the service
lsfd(some output elided):while default queues can be seen by running:
The output in the preceding example has been truncated for this manual, for convenience.
If more than one instance of an LSF cluster is set up, then the full modulefile name should be specified. For example:
7.5.4.2 Configuring LSF
LSF server configuration: After LSF is set up with cm-wlm-setup, the following CMDaemon settings can be modified for the LSF server role:
External Server: a value ofyesmeans that LSF server daemons are running on an external server that is not managed by BCM.
The following settings are available in LSF cluster settings, and are applied to all the LSF roles of the LSF cluster:
-
Prefix: this sets the path to the root location of the LSF installation. The default value is/cm/shared/apps/lsf/current. -
Var: this sets the path to thevardirectory of LSF. The default value is/cm/shared/apps/lsf/var. -
Cgroups: this is a submode that contains LSF-related cgroups settings.
The cgroups settings that affect LSF behavior are available via the LSF instance. For example, for an instance lsf, the settings can be accessed within cmsh via cmsh->wlm[lsf]->cgroups. The settings available are:
-
Automount: ifyes, then the workload manager tries to mount a subsystem if it is not mounted yet. The default value isNo. -
Job Cgroup Template: this is the template relative job cgroup path. The token$CLUSTERspecified in this template path is replaced with the actual LSF cluster name, and$JOBIDis replaced by the job ID. The path is used by the BCM monitoring system in order collect job metrics from the cgroups. By default, the path is set to"lsf/$CLUSTER/job.$JOBID.*". -
Process Tracking: ifyes, then processes are tracked based on job control functions such as: termination, suspension, resume, and other signaling. These are used on Linux systems that support the freezer subsystem under cgroups. The parameter sets LSF_PROCESS_TRACKING inlsf.conf. -
Linux Cgroup Accounting: ifyes, then LSF tracks processes based on CPU and memory accounting. This is for Linux systems that support the memory and cpuacct subsystems under cgroups. Once enabled, this parameter takes effect for new jobs. The parameter sets LSF_LINUX_CGROUP_ACCT inlsf.conf.If this parameter and
Process Trackingare both enabled, then they take precedence over the parameters LSF_PIM_LINUX_ENHANCE and EGO_PIM_SWAP_REPORT inlsf.conf. -
Mount Point: specifies a path where cgroups is mounted. It only makes sense to set this when the location is not standard for the operating system. -
Resource Enforce: Ifyes, then resource enforcement is carried out through the Linux memory and cpuset subsystems under cgroups. This is for Linux systems with cgroup support. The parameter sets LSB_RESOURCE_ENFORCE inlsf.conf.
The server role settings can be modified as follows:
-
Within Base View: For example for a head node
basecm10, via a navigation path ofDevices>Head Nodes>basecm10>Settings>Roles>LSF server role -
Within
cmsh: For a particular category in thecategorymode, or a particular device in thedevicemode, therolessubmode is chosen. Within therolessubmode, thelsfserverobject can be assigned or used. The following example shows how to set the LSFprefixparameter for thedefaultcategory.Example
The global LSF cluster settings can be modified as follows:
-
Within Base View:
For example, for a head nodebasecm10, via a navigation path of:
HPC>Wlm Clusters>CLUSTER_NAME>Settings -
Within
cmsh:
A particular LSF cluster instance can be chosen withinwlmmode, to set its global parameters. The following example shows how to set the LSFprefixparameter for thelsf1cluster.Example
LSF client configuration: After installation, the following CMDaemon settings can be specified for the LSF client role:
-
**Queues ** In
cmsh, queues can be added usingjobqueuemode. In LSF, the defaultqueueisnormal. More arbitrarily-named queues can be specified with:Example
The
jobqueuevalues can be set for the LSF client role:Example
Alternatively, queues can be managed using Base View (section 7.6.2).
-
**Options ** A navigation path of:
Devices>Nodes[node001]>Edit>Settings>Roles>Add>LSF client role
lets options be set for a regular nodenode001(figure 7.23):

Figure 7.23: Base View access to LSF configuration options via roles window options
Available options are:
-
Slots: The number of CPUs per node. By default LSF tries to determine the value automatically with the
autosetting. If the number of slots is set to0, then the node becomes an LSF submit host, so that no jobs can run on the host, but users can submit their jobs from this host using the LSF utilities. -
Queues:
Allqueues can be set, or queues can be selected. -
Server: Whether the node is an LSF server
-
Host Model, Host Type: Possible values for these are defined in
lsf.shared -
GPUs: The number of GPUs per node.
-
Node Customizations: LSF node custom properties (section 7.11).
From cmsh these properties are accessible from within the appropriate node or category roles submode (section 7.4.2.4).
Submission hosts: By default, all compute nodes to which the lsfclient role is assigned, also become submission hosts. This means that LSF users can submit their jobs from those compute nodes. If the administrator wants to allow users to submit their jobs from a non-compute node—for example from a login node—then the lsfsubmit role should be assigned, for example:
Example
Configuring a node according to the preceding steps then allows users to submit their jobs from that node, without the submitted jobs getting scheduled to run on that node.
If more than one LSF cluster is set up, and they share the same submit host, then a single lsfsubmit role can be used. In this case, all the LSF cluster names should be appended to the lsfcluster parameter of the role.
Further configuration: For further configuration the Administering Platform LSF manual provided with the LSF software should be consulted.
7.5.4.3 Running LSF
Role assignment and role removal enables and disables LSF from Base View (sections 7.4.1) or cmsh (section 7.4.2).
An active LSF master service (typically, but not necessarily on a head node) has the following LSF-related processes running on it:
*These services/processes run on compute nodes.
Non-active LSF-masters running as compute nodes run the processes marked with an asterisk only.
LSF daemon logs are kept under /cm/local/apps/lsf/var/log/, on each of the nodes where LSF services run.
7.6 Using Base View With Workload Management
Viewing the workload manager services from Base View is described in section 7.4.3. The HPC (High Performance Computing) icon, which looks like a speedometer, is the Base View resource that allows the following items to be accessed:
-
WLM clusters: for WLM cluster settings for a WLM cluster instance to be viewed and managed
-
jobs: for jobs to be viewed and managed
-
queues: for queues to be viewed and managed
-
job queue stats: for job queue statistics to be viewed
These items are described next.
7.6.1 Jobs Display And Handling In Base View
The navigation path HPC > Jobs opens up the Job list window. This displays a list of recent job IDs, along with the user, status, scheduler used, queue, and nodes allocated to the job (figure 7.24).

Figure 7.24: Workload manager job list window
Buttons in the last two columns allow the jobs to be examined and managed:
-
The
Showbutton,
, is a window-opener button. It opens up a window with further details of the selected job. -
The
Actionsbutton,
, brings up a pop-up menu. The menu options allow the selected job to be managed as follows:-
The
Holdoption stops selected queued jobs from being considered for running by putting them in aHoldstate (Hin theStatuscolumn). -
The
Releaseoption releases selected queued jobs in theHoldstate so that they are considered for running again. -
The
Suspendoption suspends selected running jobs (Sin theStatuscolumn). -
The
Resumeoption allows selected suspended jobs to run again. -
The
Canceloption removes selected jobs from the queue.
-
7.6.2 Queues Display And Handling In Base View
The navigation path HPC > Wlm Clusters > Edit > Job Queues displays a list of queues available (figure 7.25).

Figure 7.25: Workload manager queues
Queues can be added or deleted. An Edit option allows existing queue parameters to be set, for example as in figure 7.26.

Figure 7.26: Workload manager queue parameters configuration
7.7 Using cmsh With Workload Management
The wlm mode in cmsh gives the administrator access to the WLM instances running on the cluster.
The cmsh tree (Appendix M) has the following submodes structure under the wlm mode:
-
accounting: provides ways to set some advanced Slurm job accounting properties (here) -
cgroups: provides ways to configure WLMs via the cgroup mechanism of the Linux kernel (section 7.10) -
chargeback: provides ways to measure the costs of requested IT resources for WLM jobs (Chapter 15) -
jobqueue: allows WLM job queues to be managed (section 7.7.2) -
jobs: allows WLM jobs to be viewed and managed (section 7.7.1) -
ocisettings: allows OCI settings (Chapter 2 of the Cloudbursting Manual) to be viewed and managed -
parallelenvironments: allows MPI job environment parameters to be configured (here) for WLMs -
pelogs: allows access to prolog and epilog hooks (here) for PBS -
placeholders: allows nodes to be configured in advance, for planning resource use in WLMs (section 8.4.8)
For basic WLM management via cmsh, the administrator is expected to use wlm mode with the jobs and jobqueue submodes.
If there is just one WLM instance running on the cluster, then an administrator that accesses wlm mode drops straight into the object representing that WLM instance, and can then access the submodes.
If there is more than one WLM running, then the administrator must select a WLM instance from the top level wlm mode, with the use command, in order to access the submodes.
While at the top level wlm mode, the instances can be listed. The list shows the nodes used by the instance, and the node roles assigned to the nodes.
Suppose BCM is being used to manage two WLM instances:
-
one Slurm WLM, named
slr -
one GE WLM, named
uc
with their nodes having been allocated roles as follows:
Example
Then one way to list all jobs running per WLM instance, queue, and user, is with the filter command:
The filter command can also be run within the jobs mode, for a particular WLM instance, and is described in more detail here.
An alternate way to list all jobs from wlm mode is with a foreach command to descend into jobs submode to list the jobs for each WLM instance:
Example
The jobs submode is now discussed further.
7.7.1 The jobs Submode In cmsh
Within the jobs submode of a WLM instance, the administrator can list jobs that are running or queued up for that particular instance. For example, the running and queued jobs listed for a PBS instance may be displayed as:
Example
The number of jobs can be very large. The wait command in jobs mode can be used to provide a shorter running summary. The following wait command displays a running summary that regularly displays a tally of the running and pending jobs; waits for all of them to complete; and has the waiting-for-completion condition overruled by a timeout of 10 minutes:
Example
By default wait runs every minute until the specified timeout. Also, by default, as indicated by the missing 3rd and 4th minutes in the example, the outputs are only displayed with the tally changes. Further options to the wait command within jobs mode can be found in the help text display output when help wait is run.
In the foreach jobs listings for the Slurm and GE WLM instances shown earlier, the jobs are in a running, queued up, or completed state. They are also all being run by a user maud, who happens to be making use of both workload managers.
For Slurm, completed jobs are shown for a short time with the status COMPLETED. For GE, completed jobs are shown for an even shorter time with a blank for their status.
7.7.1.1 Commands That Change The Status Of A Queued Or Running Job
Within a jobs submode, the following commands, used with a job ID, can change the status of a particular queued or running job:
-
hold: puts a queued job into aholdstate. This prevents the job from being considered for running. -
release: releases a job from aholdstate, putting it back in the queue, so that it can be considered for running. -
suspend: pauses a running job -
resume: resumes a suspended job -
remove: removes a job
For example, continuing the case earlier on of the cmsh session with the foreach listing (here):
The administrator can suspend the running job with job ID 57 on the Slurm instance as follows:
Example
and can hold the queued waiting job with job ID 98 on the GE instance as follows:
Example
The administrator can then resume the suspended job ID 57, and can release the held job ID 98 as follows:
Example
7.7.1.2 Commands To Inspect Jobs:
Within the jobs submode, the following commands can be used to inspect a job:
-
show<job ID>: properties are shown for a running or pending job.The properties that are displayed are taken directly from commands associated with particular workload managers:
-
For Slurm:
scontrol show jobs -
For PBS flavors and Grid Engine:
qstat -
For LSF:
bjobs
-
-
info<job ID>: details are shown about a particular job ID. The job can bepending,running, orcompletedjobs. The data is taken from the BCM database. -
statistics: statistics are shown for jobs. More detail on thestatisticscommand is given here. -
list: lists pending and running job IDs along with some other associated properties. Recently completed jobs are also displayed. Completed jobs do not remain listed for longer than a few minutes. Thefiltercommand (section 7.7.1.4) can be used instead to display all jobs for that WLM instance, using data taken from the BCM database. -
dumpmonitoringdata [OPTIONS] [<start-time><end-time>] <metric><job id>: Displays the monitoring data for a specific metric or healthcheck for a running or completed job. Example:dumpmonitoringdata CtxtSwitches 170More detail is given on the
dumpmonitoringdatacommand in section 12.6.4. -
latestmonitoringdata [OPTIONS]<job ID>: Displays the last measured job monitoring data for the job.-
latesthealthdata<job ID>: The subset of health checks within the last measured monitoring data. -
latestmetricdata<job ID>: The subset of metrics within the last measured monitoring data.
More detail is given on the
latest*datacommands in section 12.6.3. -
-
measurables<job ID>: The measurables used for job monitoring data.-
healthchecks<job ID>: The subset of health checks within the measurables used for job monitoring data. -
metrics<job ID>: The subset of metrics within the measurables used for job monitoring data. -
enummetrics<job ID>: The subset of enummetrics within the measurables used for job monitoring data.
-
7.7.1.3 The info Command Within jobs Submode
Within the jobs submode of wlm, the info <job ID> command shows job information details stored in the BCM database. BCM starts updating the job information in its database as soon as it detects a new job. When the job is completed BCM pulls a final job state and exit code from the workload manager.
Example
7.7.1.4 The filter Command Within jobs Submode
If run at the top-level wlm mode, then the filter command lists jobs for all WLM instances.
It can also be run at the submode-level jobs mode, for a particular WLM instance, in which case it lists only the jobs for that instance (section 13.5).
The filter command without any options is a bit like an extension of the list command in that it lists currently pending and running jobs, although in a different format. However, in addition, it also lists past tasks, with their start and end times.
An example to illustrate the output format for a Slurm instance, somewhat simplified for clarity, is:
Example
In the preceding example, the start and end times for jobs 28 and 29 are not yet available because the jobs are still pending.
Because all jobs for that WLM instance—historic and present—are displayed by the filter command, it means that finding a particular job in the output displayed can be hard. The displayed output can therefore be filtered further.
The following options to the filter command are therefore available in order to find particular groupings of jobs:
-
-w|--wlm: by WLM instance -
-u|--user: by user -
-g|--group: by group -
--ended: by jobs that ended successfully, with a zero exit status -
--running: by jobs that are running -
--pending: by jobs that are pending -
--failed: by jobs that finished unsuccessfully, with a non-zero exit status
It may take about a minute for CMDaemon to become aware of job data. This means that, for example, a job submitted 10s ago may not show up in the output.
Further options to filter command can be seen by running the command help filter within the wlm or jobs modes.
7.7.1.5 The statistics Command
The statistics command without any options displays an overview of states for all past and present jobs:
Example
The options available include the following:
-
-w|--wlm<WLM instance>: by WLM instance -
-u|--user: by user -
-g|--group: by group -
-a|--account: by account -
-i|--accounting-info <field>[,<field>,...]: by free text accounting fields -
--hour: by hour -
--day: by day -
--week: by week -
--interval: by interval
The jobs statistics can be split across users. An example of the output format in this case, somewhat simplified for clarity, is:
Example
The job statistics can be displayed over various time periods, if there are jobs within the associated period. An example of the output format for an interval of 60s is:
Example
In the preceding example there are no jobs within the period associated with the time 15:01 and 15:02. For readability the statistics for those intervals are not displayed.
7.7.1.6 Job Directives
Job directives configure some of the ways in which CMDaemon manages job information processing.
The administrator can configure the following directives:
-
JobInformationKeepCount: The maximal number of jobs that are kept in the cache, default 8192, maximal value 65536 (here). -
JobInformationKeepDuration: How long to keep jobs in the CMDaemon database, default 28 days (here). -
JobInformationMinimalJobDuration: Minimal duration for jobs to place them in the cache, default 0s (here). -
JobInformationFlushInterval: Over what time period to flush the cache to storage (here). -
JobInformationDisabled: Disables job information processing (here).
7.7.2 Job Queue Display And Handling In cmsh: jobqueue Mode
The jobqueue submode under the top level wlm mode can be used to manage queues for a WLM instance. Queue properties can be viewed and set.
From the top level wlm mode, a list of queues can be seen for each WLM instance by descending into the WLM instance with a foreach:
Example
The usual object manipulation commands (show, get, set and others) of section 2.5.3 work in the jobqueue submode.
7.7.2.1 Job Queue Parameters For GE
For example, for a GE instance, the show command might display the following properties:
Example
7.7.2.2 Job Queue Parameters For Slurm
Similarly, for a Slurm instance, the show command might display the following properties:
7.7.2.3 Job Queue Parameters For PBS
Likewise, for a PBS instance, the show command might display the following properties:
7.7.3 Nodes Drainage Status And Handling In cmsh
Sometimes a node needs to be drained. Draining a node means not allowing new jobs to run on a node, and letting running jobs finish (drain away).
Draining nodes can be for the purpose of:
-
planned maintenance
-
hardware troubleshooting
-
preventing new jobs during system changes
-
isolating problematic nodes
Running the device mode command drainstatus displays if a specified node is in a Drained state or not. In a Drained state jobs are not allowed to start running on that node.
Running the device mode command drain puts a specified node in a Drained state:
Example
The undrain command unsets the Drained state so that jobs may start running on the node again.
The drain, undrain, and drainstatus commands have the same grouping options. The grouping options can make the command apply to not just one node, but to a list of nodes, a group of nodes, a category of nodes, a rack, a chassis, an overlay, a role, or a status. Continuing the example:
The help text for each command indicates the syntax:
Example
A useful one-liner to reboot and reprovision a sequence of nodes could be in the following format:
Example
This drains the nodes and does a power reset action, which provisions the nodes. After the nodes are up again, they are undrained so that they are ready to accept jobs again. The command allows the sequence of nodes to be rebooted, for example for the purpose of upgrading a kernel, without needing to schedule a downtime for the cluster.
The cluster administrator should be aware that using the preceding one-liner is not a universal solution. For example, it is not a good solution if the drain takes a long time, because it means that nodes that drain early could be idle for a long time.
7.8 Examples Of Workload Management Assignment
7.8.1 Setting Up A New Category And A New Queue For It
Suppose a new node with processor optimized to handle Shor’s algorithm is added to a cluster that originally has no such nodes. This merits a new category, shornodes, so that administrators can configure more such new nodes efficiently. It also merits a new queue, shorq, so that users are aware that they can submit suitably-optimized jobs to this category.
Ways to configure the cluster manager for this are described next.
7.8.1.1 A New Category And A New Queue With Base View For An Existing Workload Manager Cluster
Queues can be added to a WLM cluster by running the WLM wizard (navigation path HPC > Wlm Wizard) if the WLM cluster does not yet exist. The wizard provides an option during WLM cluster creation for adding queues.
To create a new queue in an existing WLM cluster, the navigation path:
HPC > Workload Management Clusters > <WLM cluster name> > Job queues > Add
is followed. A pop-up menu appears to allow the WLM cluster to be chosen for the queue, and the properties of the new queue can then be set in the dialog window of the queue (figure 7.27). At least the queue name must be set for the queue.

Figure 7.27: Adding a new queue via Base View
The configuration for the queue properties is saved, and then the job queue scheduler configuration is saved.
Next, a new category can be added via
Grouping > Categories > Add > Category > Settings
Parameters settings in the new category can be set—at least the category name should be set—to suit the new machines (figure 7.28). The name shornodes can therefore be set here.

Figure 7.28: Adding a new category via Base View
Another option within the category is to set the queue. The queue, shorq, is therefore set here for this new category.
Setting a queue for the category means configuring the options of the queue scheduler role, for example the Slurm client role, for the category. Continuing from within the Node categories options window of figure 7.28, the relative navigation path to set a queue is:
JUMP TO > Roles > Slurmclient role > Edit > Queues
The appropriate queue can be selected from the queue scheduler menu option (figure 7.29):

Figure 7.29: Setting a queue for a new category via Base View
In this case, the shorq created earlier on in figure 7.27 is presented for selection. After selection, the configuration settings can then be saved by clicking on the Save button.
Nodes that are to use the queue should be members of the shornodes category. The final step is then to allocate such nodes to the category. This can be done, for example for a node001, by going into the settings of the node, via Devices > Nodes > node001 > Edit > Settings > Category and setting the category to shornodes.
7.8.1.2 A New Category And A New Queue With cmsh
The preceding example can also be configured in cmsh as follows:
The new queue can be added from within jobqueue mode, for the workload manager. For example, if Slurm is the WLM cluster that is enabled:
The new category, shornodes, can be created by cloning an old category, such as default:
Then, going into the roles submode, appropriate workload manager roles can be assigned, and appropriate queues can be appended and committed for that category:
The nodes belonging to the shornodes category can then be placed by going into device mode to select the nodes to be placed in that category. For example:
7.8.2 Setting Up A Prejob Check
7.8.2.1 How It Works
Measurables such as health checks (section 12.2.4) by default run as scheduled tasks over regular intervals. They can optionally be configured to run on demand instead, or as prejob checks, that is, before a job is run.
If a health check is configured with the prejob setting, then its response means the same as that of a health check, that is:
-
If the response to a
prejobhealth check isPASS, then it shows that the node is displaying healthy behavior for that particular health check. -
If the response to a
prejobhealth check isFAIL, then it implies that the node is unhealthy, at least for that particular health check.
The reason a prejob health check is treated more carefully is that, if the node it has just run on is unhealthy, then it means that a job submitted to the node may fail, may not be able to start, or may even vanish outright. The way it can vanish in some cases, without any information beyond the job submission “event horizon” leads to this behavior sometimes being called the Black Hole Node Syndrome.
Draining On Prejob Health Check Failure: It can be troublesome for a system administrator to pinpoint the reason for such job failures, since a node may only fail under certain conditions that are hard to reproduce later on. It is therefore a good policy to disallow passing a job to a node which has just been flagged as unhealthy by a health check. Thus, a sensible action (section 12.2.6) taken by a prejob health check on receiving a FAIL response would be to put the node in a Drained state (section 7.7.3). The drain state means that BCM arranges a rescheduling of the job so that the job runs only on nodes that are believed to be healthy.
A node that has been put in a Drained state with a health check is not automatically undrained. The administrator must clear such a state manually.
The failedprejob health check (here) is enabled by default, and logs any prejob health check passes and failures. By default there are no prejob health checks configured, so by default this health check should always pass.
7.8.2.2 Configuration Using cmsh
Prejob health checks have the parameter When set to one of the following values:
-
pre job -
timed and pre job
The parameter When for a health check can be set within the monitoring setup mode.
Example
For example, for the ib health check:
To allow the healthcheck to run for the prejob with the workload manager, prejob must also be enabled appropriately for the associated workload manager:
Example
7.8.2.3 Configuration Using Base View
To configure the monitoring of nodes with a prejob check in Base View, the navigation path:
Monitoring>Data Producers>Monitoring data producers>Edit>When>Pre job
is used to set the When value for when it runs. In this case, When is set to Pre job.
Prejob should also be enabled appropriately for the associated workload manager with the path:
HPC>Workload Management Clusters>Settings>Enable prejob
7.8.2.4 Configuration With cm-wlm-setup
To set a prejob health check up via cm-wlm-setup, cm-wlm-setup is run in step-by-step mode. During one of the steps the administrator is prompted to select, with a tick on a checkbox, which of the available health checks are to run as prejob health checks in BCM (figure 7.30):

Figure 7.30: Prejob healthcheck selection in the cm-wlm-setup screen
If a selected health check was already set as a prejob—-that is, with the When parameter already set to either pre job or timed and pre job—then the checkbox is already ticked. If the When parameter was set to timed before, then selecting the health check sets the When parameter to timed and pre job. For all other values of he When parameter for that health check, the When parameter is set to pre job.
7.8.2.5 Custom Prejob Configuration
For more unusual prejob checking requirements, further details on how prologs are configured are given in section 7.3.4.
7.9 Power Saving With cm-scale
The cm-scale service can be used by an administrator to reduce the energy and storage costs of compute nodes by changing their power state, or their existence state, according to workload demands. That is, cm-scale automatically scales a cluster up or down, on-demand, by powering up physical nodes, cloud nodes, or virtual nodes. The scaling is carried out according to settings in the ScaleServer role which set the nodes that are to use the cm-scale service.
The cm-scale service is covered extensively in Chapter 8.
7.10 Cgroups
Linux system processes and all their future children can be gathered into sets called process aggregations. These sets can be made into hierarchical groups with specialized behavior using the Control Groups (cgroups) mechanism. The behavior is controlled by different subsystems that are attached to the cgroup. A subsystem may, for example, allow particular CPU cores to be allocated, or it may restrict memory, or it may reduce swap usage by processes that belong to the group, and so on.
Details about Linux cgroups and their subsystems can be found at https://www.kernel.org/doc/Documentation/cgroup-v1/cgroups.txt.
As far as workload management is concerned, it makes sense to distinguish between workload manager cgroup settings and system-wide cgroup parameters. The workload manager cgroup settings allow the administrator to configure a workload manager to use cgroups in a particular way, whereas the system-wide cgroup settings allow the administrator to manage cgroups whether a workload manager is used or not.
7.10.1 Cgroups Settings For Workload Managers
If the workload manager allows cgroups usage, then BCM provides capabilities to manage the cgroup parameters within the workload manager.
7.10.1.1 Slurm Cgroups
Slurm supports 3 cgroups-related plugins. These are all enabled by default, and are:
-
proctrack/cgroup: enables process tracking and suspend/resume capability using cgroups. This plugin is more reliable for tracking and control than the formerproctrack/linux. -
task/cgroup: provides the ability to-
confine jobs and steps to their allocated cpuset
-
bind tasks to sockets, cores and threads
-
confine jobs and steps to specific memory resources and gres devices
-
-
jobacct_gather/cgroup: collects accounting statistics for jobs, steps and tasks using thecpuacct,memory, andblkiocgroups subsystems.
Slurm uses configuration files to store the parameters and devices used for cgroup support.
The file /cm/shared/apps/slurm/var/etc/ <cluster name>/cgroup.conf defines parameters used by Slurm’s Linux cgroup-related plugins. The file contains a section that is autogenerated by CMDaemon, with cgroups-related parameters defined in the SlurmServer role.
For Slurm, the administrator can set cgroups parameters using cmsh by going into the cgroups submode of the WLM instance.
Parameters that can be managed include:
* Boolean (takes yes or no as a value)
The options are always written in the cgroup.conf file. More details on these options can be found in the man page man cgroup.conf.5.
7.10.1.2 GE Cgroups
Altair Grid Engine allows cgroups settings to be defined at two levels.
-
Globally: The parameters can be set globally in the global configuration. BCM defines cgroups global settings in the
cgroupssubmode of theUGEServerrole. -
Per host: The parameters can be overridden in the host configuration for particular hosts. BCM defines cgroups host settings in the
cgroupssubmode of theUGEClientrole.
The global and host level cgroups parameters are the same, and are as follows:
* Boolean (takes yes or no as a value)
The options are updated in GE only when cgroups are enabled in the ugeserver or ugeclient roles. To enable them, enabled must be set to true within the cgroups submode of the role. By default only global cgroups settings are enabled in GE.
7.10.1.3 PBS Cgroups
PBS supports cgroups through a special Python hook that is installed by cm-wlm-setup by default. The hook name is pbs_cgroups.
PBS cgroup options can be set to manage cgroups in cmsh or Base View. For example, in cmsh the options can be shown with:
Example
The following table shows the more important cgroup options that can be set:
* Boolean (takes yes or no as a value)
PBS cgroups, hyperthreading, and ncpu:
By default the cluster manager enables the pbs_cgroups hook (here). By default, this sets ncpus_are_cores and use_hyperthreading both to false. The PBS Professional 2021.1 Administrator’s Guide says the following about the disabled hyperthreading configuration (https://2021.help.altair.com/2021.1/PBSProfessional/PBSAdminGuide2021.1.pdf#M19.9.62244.Heading3.15433.Configuring.Hyperthreading.Support):
In this model PBS makes only the first thread of each core visible to PBS jobs, so if your workload cannot leverage hyperthreading well, you don’t need to disable hyperthreading in the BIOS. The other CPU threads are still usable by the operating system, which means throughput is better than if hyperthreading support is disabled in the BIOS. The value of
resources_available.ncpusreflects the number of cores associated with a vnode.
The value of ncpus can be made to match the number of hyperthreads (logical processors) in the node with
Example
If usehyperthreads remains at its default value of no, then it means that a restart of the pbs_mom service causes ncpus to match the number of cores rather than the full number of logical processors that simultaneous multi-threading provides. Here, the value set for the attribute slots in the pbsproclient role is ignored. This is a deliberate design choice of PBS Professional, which may seem counter-intuitive without the background information given in this section.
7.10.1.4 LSF
LSF allows resource enforcement to be controlled with the Linux cgroup memory and cpuset subsystems. By default, when LSF is set up with cm-wlm-setup, then both subsystems are enabled for LSF jobs. If job processes on a host use more memory than the defined limit, then the job is immediately killed by the Linux cgroup memory subsystem. The cgroups-related configuration options are available in cmsh or Base View, and can be found in the cgroups submode of the LSF cluster settings:
* Boolean (takes yes or no as a value)
7.11 Custom Node Parameters
NVIDIA Base Command Manager 10 allows the administrator to specify the most important node parameters when a node is configured in a workload manager. But sometimes the workload manager allows the configuration of other advanced or user-defined settings for the nodes. When an administrator clones a node in BCM, or creates it from scratch, then those advanced settings may need to be configured manually per node in the workload manager. Sometimes the nodes are created or cloned automatically, for example cm-scale (Chapter 8), in which case node parameters customization is not possible without manual intervention in the workload manager configuration.
Since NVIDIA Base Command Manager version 8.2, the administrator can configure the advanced node settings in the node customizations mode of cmsh or Base View. The customizations are available in the workload manager client roles, so they can be applied at the node, node category or configuration overlay levels.
In order to configure a custom node parameter for the workload manager, the administrator adds the node customization entry and sets its value to True or False. The entry is enabled by default, that is, an associated parameter Enabled is yes by default. The workload manager can take a minute to implement the new value.
For example, in order to add a new customization entry, for the resv_enable setting for PBS, the following cmsh commands can be used:
Example
On a cluster with two nodes, the change would show up within a minute:
Different workload managers allow different kinds of node settings to be set. For example, for GE, the settings are the so-called complex attributes, as defined by the administrator. But for PBS, the node settings are built-in, and so the administrator can only change their values but not their names. So when the administrator configures node customization entries, BCM configures them differently depending on the workload manager that is used.
Thus if the administrator creates a new customization entry with key name <KEY> and value <VALUE>, then this is applied to the workload managers as follows:
-
Slurm: The node customization entry is appended to the
NodeNameline of the particular nodes inslurm.confin the form <KEY>=<VALUE>. If the entry is removed or disabled in the BCM configuration, then the entry <KEY>=<VALUE> pair is removed from theNodeNameline. -
PBS Professional and OpenPBS: The entry is configured with the
qmgrutility, using this command syntax:set node NODENAME <KEY>=<VALUE>. If the entry is removed or disabled, then it is unset in theqmgr. -
GE: The entry is applied to an exechost complex attribute that must already be defined in the configuration. The complex attribute name is set to <KEY> and its value to <VALUE>. If the entry is removed or disabled, then it is removed from the exechost settings of the node.
-
LSF: The entry is set in the
lsb.hostsfile, in theHostssection. If the <KEY> of the entry is defined as one of the section columns, then the parameter value is replaced by BCM to <VALUE>. When the customization entry is removed or disabled, then its value is replaced by()in the section.
7.11.1 Other PBS Professional Customizations Examples
For PBS, node customization can be carried out within the pbsproclient role, within the nodecustomizations object, as explained earlier here.
The following are other customizations that can be carried out for PBS with the qmgr command:
Setting a default value for ncpus: To avoid having to add directives when submitting jobs, the default value for ncpus can be configured with the following qmgr command:
Disallowing users from querying the job status of other users: To disallow users from querying a job status other than their own, the query_other_jobs option can be configured with the following qmgr command:
Creating and configuring a resource: A resource switch can be created and configured with the following qmgr command:
Setting an ACL for a queue: The queue workq can have its acl_groups attribute set to users with the following qmgr command: