Skip to content

Commit 8baaf5c

Browse files
committed
config-linux: add an initial spec of RDMA related field
This commit adds an initial spec of RDMA related field for Linux configuration. They will be used for controlling rdmacg of the Linux kernel. Signed-off-by: Hitoshi Mitake <[email protected]>
1 parent 4ebb31e commit 8baaf5c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

config-linux.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,30 @@ The following parameters can be specified to set up seccomp:
637637
"mountLabel": "system_u:object_r:svirt_sandbox_file_t:s0:c715,c811"
638638
```
639639

640+
### <a name="configLinuxRdmaLimits" />RDMA resource limits
641+
642+
**`rdma_limits`** (array of objects, OPTIONAL) represents the `rdma` controller which allows the limiting of the
643+
resources related to network interfaces which support RDMA (e.g. HCA handles).
644+
For more information, see the RDMA section of [the kernel cgroups documentation][cgroup-v1-rdma].
645+
646+
Each entry has the following structure:
647+
648+
* **`interface_name`** *(string, REQUIRED)* - a name of an interface
649+
* **`hca_handle_limit`** *(int64, REQUIRED)* - limit a number of HCA handles which can be used by a container (-1 means max)
650+
* **`hca_object_limit`** *(int64, REQUIRED)* - limit a number of HCA objects which can be used by a container (-1 means max)
651+
652+
#### Example
653+
654+
```json
655+
"rdma_limits": [
656+
{
657+
"interface_name": "mlx5_0",
658+
"hca_handle_limit": 1,
659+
"hca_object_limit": 20
660+
}
661+
]
662+
```
663+
640664

641665
[cgroup-v1]: https://www.kernel.org/doc/Documentation/cgroup-v1/cgroups.txt
642666
[cgroup-v1-blkio]: https://www.kernel.org/doc/Documentation/cgroup-v1/blkio-controller.txt
@@ -647,6 +671,7 @@ The following parameters can be specified to set up seccomp:
647671
[cgroup-v1-net-cls]: https://www.kernel.org/doc/Documentation/cgroup-v1/net_cls.txt
648672
[cgroup-v1-net-prio]: https://www.kernel.org/doc/Documentation/cgroup-v1/net_prio.txt
649673
[cgroup-v1-pids]: https://www.kernel.org/doc/Documentation/cgroup-v1/pids.txt
674+
[cgroup-v1-rdma]: https://www.kernel.org/doc/Documentation/cgroup-v1/rdma.txt
650675
[cgroup-v2]: https://www.kernel.org/doc/Documentation/cgroup-v2.txt
651676
[devices]: https://www.kernel.org/doc/Documentation/admin-guide/devices.txt
652677
[devpts]: https://www.kernel.org/doc/Documentation/filesystems/devpts.txt

0 commit comments

Comments
 (0)