@@ -169,7 +169,7 @@ In addition to any devices configured with this setting, the runtime MUST also s
169169## <a name =" configLinuxControlGroups " />Control groups
170170
171171Also known as cgroups, they are used to restrict resource usage for a container and handle device access.
172- cgroups provide controls (through controllers) to restrict cpu, memory, IO, pids and network for the container.
172+ cgroups provide controls (through controllers) to restrict cpu, memory, IO, pids, network and RDMA resources for the container.
173173For more information, see the [ kernel cgroups documentation] [ cgroup-v1 ] .
174174
175175### <a name =" configLinuxCgroupsPath " />Cgroups Path
@@ -455,6 +455,36 @@ The following parameters can be specified to set up the controller:
455455 }
456456```
457457
458+ ### <a name =" configLinuxRDMA " />RDMA
459+
460+ ** ` rdma ` ** (object, OPTIONAL) represents the cgroup subsystem ` rdma ` .
461+ For more information, see the kernel cgroups documentation about [ rdma] [ cgroup-v1-rdma ] .
462+
463+ The name of the device to limit is the entry key.
464+ Entry values are objects with the following properties:
465+
466+ * ** ` hcaHandles ` ** * (uint32, OPTIONAL)* - specifies the maximum number of hca_handles in the cgroup
467+ * ** ` hcaObjects ` ** * (uint32, OPTIONAL)* - specifies the maximum number of hca_objects in the cgroup
468+
469+ You MUST specify at least one of the ` hcaHandles ` or ` hcaObjects ` in a given entry, and MAY specify both.
470+
471+ #### Example
472+
473+ ``` json
474+ "rdma" : {
475+ "mlx5_1" : {
476+ "hcaHandles" : 3 ,
477+ "hcaObjects" : 10000
478+ },
479+ "mlx4_0" : {
480+ "hcaObjects" : 1000
481+ },
482+ "rxe3" : {
483+ "hcaObjects" : 10000
484+ }
485+ }
486+ ```
487+
458488## <a name =" configLinuxIntelRdt " />IntelRdt
459489
460490** ` intelRdt ` ** (object, OPTIONAL) represents the [ Intel Resource Director Technology] [ intel-rdt-cat-kernel-interface ] .
@@ -647,6 +677,7 @@ The following parameters can be specified to set up seccomp:
647677[ cgroup-v1-net-cls ] : https://www.kernel.org/doc/Documentation/cgroup-v1/net_cls.txt
648678[ cgroup-v1-net-prio ] : https://www.kernel.org/doc/Documentation/cgroup-v1/net_prio.txt
649679[ cgroup-v1-pids ] : https://www.kernel.org/doc/Documentation/cgroup-v1/pids.txt
680+ [ cgroup-v1-rdma ] : https://www.kernel.org/doc/Documentation/cgroup-v1/rdma.txt
650681[ cgroup-v2 ] : https://www.kernel.org/doc/Documentation/cgroup-v2.txt
651682[ devices ] : https://www.kernel.org/doc/Documentation/admin-guide/devices.txt
652683[ devpts ] : https://www.kernel.org/doc/Documentation/filesystems/devpts.txt
0 commit comments