diff options
author | Tejun Heo <tj@kernel.org> | 2017-02-02 19:50:35 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-02-02 19:50:35 +0100 |
commit | 63f1ca59453aadae81f702840c7ac6ea8b9f9262 (patch) | |
tree | 5dc559d4dc33c8e1408f757d8853b23033ea118f /Documentation/cgroup-v2.txt | |
parent | cgroup: drop the matching uid requirement on migration for cgroup v2 (diff) | |
parent | rdmacg: Fixed uninitialized current resource usage (diff) | |
download | linux-63f1ca59453aadae81f702840c7ac6ea8b9f9262.tar.xz linux-63f1ca59453aadae81f702840c7ac6ea8b9f9262.zip |
Merge branch 'cgroup/for-4.11-rdmacg' into cgroup/for-4.11
Merge in to resolve conflicts in Documentation/cgroup-v2.txt. The
conflicts are from multiple section additions and trivial to resolve.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'Documentation/cgroup-v2.txt')
-rw-r--r-- | Documentation/cgroup-v2.txt | 46 |
1 files changed, 42 insertions, 4 deletions
diff --git a/Documentation/cgroup-v2.txt b/Documentation/cgroup-v2.txt index 1d101423ca92..3b8449f8ac7e 100644 --- a/Documentation/cgroup-v2.txt +++ b/Documentation/cgroup-v2.txt @@ -49,8 +49,10 @@ CONTENTS 5-3-2. Writeback 5-4. PID 5-4-1. PID Interface Files - 5-5. Misc - 5-5-1. perf_event + 5-5. RDMA + 5-5-1. RDMA Interface Files + 5-6. Misc + 5-6-1. perf_event 6. Namespace 6-1. Basics 6-2. The Root and Views @@ -1160,9 +1162,45 @@ through fork() or clone(). These will return -EAGAIN if the creation of a new process would cause a cgroup policy to be violated. -5-5. Misc +5-5. RDMA -5-5-1. perf_event +The "rdma" controller regulates the distribution and accounting of +of RDMA resources. + +5-5-1. RDMA Interface Files + + rdma.max + A readwrite nested-keyed file that exists for all the cgroups + except root that describes current configured resource limit + for a RDMA/IB device. + + Lines are keyed by device name and are not ordered. + Each line contains space separated resource name and its configured + limit that can be distributed. + + The following nested keys are defined. + + hca_handle Maximum number of HCA Handles + hca_object Maximum number of HCA Objects + + An example for mlx4 and ocrdma device follows. + + mlx4_0 hca_handle=2 hca_object=2000 + ocrdma1 hca_handle=3 hca_object=max + + rdma.current + A read-only file that describes current resource usage. + It exists for all the cgroup except root. + + An example for mlx4 and ocrdma device follows. + + mlx4_0 hca_handle=1 hca_object=20 + ocrdma1 hca_handle=1 hca_object=23 + + +5-6. Misc + +5-6-1. perf_event perf_event controller, if not mounted on a legacy hierarchy, is automatically enabled on the v2 hierarchy so that perf events can |