Resource Binding

Overview

Slurm version 18.08 has a rich set of options to control the default binding of tasks to resources.
Slurmバージョン18.08には、リソースへのタスクのデフォルトのバインドを制御するための豊富なオプションのセットがあります。
For example, tasks can be bound to individual threads, cores, sockets, NUMA or boards.
たとえば、タスクは個々のスレッド、コア、ソケット、NUMA、またはボードにバインドできます。
See the slurm.conf and srun man pages for more information about how these options work.
これらのオプションの動作の詳細については、slurm.confおよびsrunのmanページを参照してください。
This document focuses on how default binding configuration can be configured.
このドキュメントでは、デフォルトのバインディング構成を構成する方法に焦点を当てています。
Default binding can be configured on a per-node, per-partition or global basis.
デフォルトのバインディングは、ノードごと、パーティションごと、またはグローバルベースで構成できます。
The highest priority will be that specified using the srun --cpu-bind option.
最高の優先順位は、srun--cpu-bindオプションを使用して指定された優先順位になります。
The next highest priority binding will be the node-specific binding if any node in the job allocation has some CpuBind configuration parameter and all other nodes in the job allocation either have the same or no CpuBind configuration parameter.
次に優先度の高いバインディングは、ジョブ割り当て内のいずれかのノードにCpuBind構成パラメーターがあり、ジョブ割り当て内の他のすべてのノードにCpuBind構成パラメーターが同じかまったくない場合、ノード固有のバインディングになります。
The next highest priority binding will be the partition-specific CpuBind configuration parameter (if any).
次に優先度の高いバインディングは、パーティション固有のCpuBind構成パラメーター(存在する場合)になります。
The lowest priority binding will be that specified by the TaskPluginParam configuration parameter.
最も優先度の低いバインディングは、TaskPluginParam構成パラメーターで指定されたものになります。

  1. Srun --cpu-bind option
    Srun--cpu-bindオプション
  2. Node CpuBind configuration parameter (if all nodes match)
    ノードCpuBind構成パラメーター(すべてのノードが一致する場合)
  3. Partition CpuBind configuration parameter
    パーティションCpuBind構成パラメーター
  4. TaskPluginParam configuration parameter
    TaskPluginParam構成パラメーター

Srun --cpu-bind option

The srun --cpu-bind option will always be used to control task binding.
srun --cpu-bindオプションは、タスクのバインドを制御するために常に使用されます。
If the --cpu-bind option only includes "verbose" rather than identifying the entities to be bound to, then the verbose option will be used together with the default entity based upon Slurm configuration parameters as described below.
--cpu-bindオプションに、バインドするエンティティを識別するのではなく「verbose」のみが含まれている場合、verboseオプションは、以下で説明するように、Slurm構成パラメーターに基づいてデフォルトエンティティと一緒に使用されます。

Node CpuBind Configuration

The next possible source of the resource binding information is the node's configured CpuBind value, but only if every node has the same CpuBind value (or no configured CpuBind value).
リソースバインディング情報の次の可能なソースは、ノードの構成済みCpuBind値ですが、すべてのノードが同じCpuBind値を持っている(または構成済みのCpuBind値がない)場合に限ります。
The node's CpuBind value is configured in the slurm.conf file.
ノードのCpuBind値は、slurm.confファイルで構成されます。
Its value may be viewed or modified using the scontrol command.
その値は、scontrolコマンドを使用して表示または変更できます。
To clear a node's CpuBind value use the command:
ノードのCpuBind値をクリアするには、次のコマンドを使用します。

scontrol update NodeName=... CpuBind=off

If a node_features plugin is configured, typically to support booting Intel KNL nodes into different NUMA and/or MCDRAM modes, the plugin can be configured to modify the node's CpuBind option based upon the NUMA mode.
node_featuresプラグインが構成されている場合、通常はIntel KNLノードをさまざまなNUMAおよび/またはMCDRAMモードで起動することをサポートするように構成されている場合、プラグインはNUMAモードに基づいてノードのCpuBindオプションを変更するように構成できます。
This is accomplished by specifying the NumaCpuBind parameter in the knl.conf configuration file with pairs of NUMA modes and CpuBind options.
これは、numAモードとCpuBindオプションのペアを使用してknl.conf構成ファイルでNumaCpuBindパラメーターを指定することによって実現されます。
As soon as the node is booted into a new NUMA mode, the node's CpuBind option is automatically modified.
ノードが新しいNUMAモードで起動されるとすぐに、ノードのCpuBindオプションが自動的に変更されます。
For example, the following line in the knl.conf file
たとえば、knl.confファイルの次の行

NumaCpuBind=a2a=core;snc2=thread

will set a node's CpuBind field to "core" when booted into "a2a" (all to all) NUMA mode and to "thread" when booted into "snc2 NUMA mode.
「a2a」(すべてからすべて)NUMAモードで起動するとノードのCpuBindフィールドが「コア」に設定され、「snc2NUMAモード」で起動すると「スレッド」に設定されます。
Any NUMA mode not specified in the NumaCpuBind configuration file will result in no change to the node's CpuBind field.
NumaCpuBind構成ファイルで指定されていないNUMAモードは、ノードのCpuBindフィールドに変更を加えません。

Partition CpuBind Configuration

The next possible source of the resource binding information is the partition's configured CpuBind value.
リソースバインディング情報の次の可能なソースは、パーティションの構成済みCpuBind値です。
The partition's CpuBind value is configured in the slurm.conf file.
パーティションのCpuBind値は、slurm.confファイルで構成されます。
Its value may be viewed or modified using the scontrol command.
その値は、scontrolコマンドを使用して表示または変更できます。

TaskPluginParam Configuration

The last possible source of the resource binding information is the TaskPluginParam configuration parameter from the slurm.conf file.
リソースバインディング情報の最後の可能なソースは、slurm.confファイルのTaskPluginParam構成パラメーターです。

Last modified 6 December 2017