Skip to content

Commit 2ac25e3

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 2ac25e3

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,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 to limit 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-v2].
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

0 commit comments

Comments
 (0)