Skip to content

Commit f2516eb

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 f2516eb

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

config-linux.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,29 @@ 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) limits resources for network interfaces which support RDMA (e.g. HCA handles).
643+
For more information, see the [the kernel RMDA controller documentation][cgroup-v1-rdma].
644+
645+
Each entry has the following structure:
646+
647+
* **`interface_name`** (string, REQUIRED) - A name of an interface.
648+
* **`hca_handle_limit`** (int64, REQUIRED) - Maximum number of HCA Handles (use `-1` to request the maximum available).
649+
* **`hca_object_limit`** (int64, REQUIRED) - Maximum number of HCA Objects (use `-1` to request the maximum available).
650+
651+
#### Example
652+
653+
```json
654+
"rdma_limits": [
655+
{
656+
"interface_name": "mlx5_0",
657+
"hca_handle_limit": 1,
658+
"hca_object_limit": 20
659+
}
660+
]
661+
```
662+
640663

641664
[cgroup-v1]: https://www.kernel.org/doc/Documentation/cgroup-v1/cgroups.txt
642665
[cgroup-v1-blkio]: https://www.kernel.org/doc/Documentation/cgroup-v1/blkio-controller.txt
@@ -647,6 +670,7 @@ The following parameters can be specified to set up seccomp:
647670
[cgroup-v1-net-cls]: https://www.kernel.org/doc/Documentation/cgroup-v1/net_cls.txt
648671
[cgroup-v1-net-prio]: https://www.kernel.org/doc/Documentation/cgroup-v1/net_prio.txt
649672
[cgroup-v1-pids]: https://www.kernel.org/doc/Documentation/cgroup-v1/pids.txt
673+
[cgroup-v1-rdma]: https://www.kernel.org/doc/Documentation/cgroup-v1/rdma.txt
650674
[cgroup-v2]: https://www.kernel.org/doc/Documentation/cgroup-v2.txt
651675
[devices]: https://www.kernel.org/doc/Documentation/admin-guide/devices.txt
652676
[devpts]: https://www.kernel.org/doc/Documentation/filesystems/devpts.txt

0 commit comments

Comments
 (0)