Skip to content

Commit 30a9d54

Browse files
committed
config-linux: Refined RDMA cgroup section for defining limits
Refined RDMA cgroup section for defining limits as key value pair. Signed-off-by: Parav Pandit <[email protected]>
1 parent a1acc47 commit 30a9d54

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

config-linux.md

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -462,26 +462,30 @@ For more information, see the kernel cgroups documentation about [rdma][cgroup-v
462462

463463
The following parameters can be specified to set up the controller:
464464

465-
* **`hca_device`** *(string, OPTIONAL)* - specifies the device name whose resources limit to be configured
466-
* **`hca_handles`** *(uint32, OPTIONAL)* - specifies the maximum number of hca_objects in the cgroup for a specified device
467-
* **`hca_objects`** *(uint32, OPTIONAL)* - specifies the maximum number of hca_handles in the cgroup for a specified device
468-
You must specify valid `hca_device` when either of the `hca_handles` or `hca_objects` is provided.
465+
* **`limits`** *(list of objects, OPTIONAL)* - specifies a list of objects of the limits applicable to processes in the group.
466+
* **`hca_device`** *(string, REQUIRED)* - specifies the device name whose resources limit to be configured
467+
The following parameters can be specified per-device:
468+
* **`hca_handles`** *(uint32, OPTIONAL)* - specifies the maximum number of hca_objects in the cgroup
469+
* **`hca_objects`** *(uint32, OPTIONAL)* - specifies the maximum number of hca_handles in the cgroup
470+
You MUST specify at least one of the `hca_handles` or `hca_objects` in a given entry, and MAY specify both.
469471

470472
#### Example
471473

472474
```json
473-
"rdma": [
474-
{
475-
"hca_device": "mlx5_1",
476-
"hca_handles": 1,
477-
"hca_objects": 10000,
478-
},
479-
{
480-
"hca_device": "rxe4",
481-
"hca_handles": 100,
482-
"hca_objects": 50000,
483-
}
484-
]
475+
"rdma": {
476+
"limits": [
477+
"mlx5_1": {
478+
"hca_handles": 3,
479+
"hca_objects": 10000
480+
},
481+
"rxe3": {
482+
"hca_handles": 3,
483+
},
484+
"mlx4_0": {
485+
"hca_objects": 1000
486+
}
487+
]
488+
}
485489
```
486490

487491
## <a name="configLinuxIntelRdt" />IntelRdt

0 commit comments

Comments
 (0)