diff options
author | Parav Pandit <pandit.parav@gmail.com> | 2017-01-10 00:02:13 +0000 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-01-10 11:14:27 -0500 |
commit | 39d3e7584a686541a3295ff1624d341e669e1afc (patch) | |
tree | 611c0f26db570d8207fb22a8ca2b96392196f0a3 /kernel/cgroup/Makefile | |
parent | 7b4632f048415263669676dda20fd5d811c3d3e4 (diff) | |
download | linux-stable-39d3e7584a686541a3295ff1624d341e669e1afc.tar.gz linux-stable-39d3e7584a686541a3295ff1624d341e669e1afc.tar.bz2 linux-stable-39d3e7584a686541a3295ff1624d341e669e1afc.zip |
rdmacg: Added rdma cgroup controller
Added rdma cgroup controller that does accounting, limit enforcement
on rdma/IB resources.
Added rdma cgroup header file which defines its APIs to perform
charging/uncharging functionality. It also defined APIs for RDMA/IB
stack for device registration. Devices which are registered will
participate in controller functions of accounting and limit
enforcements. It define rdmacg_device structure to bind IB stack
and RDMA cgroup controller.
RDMA resources are tracked using resource pool. Resource pool is per
device, per cgroup entity which allows setting up accounting limits
on per device basis.
Currently resources are defined by the RDMA cgroup.
Resource pool is created/destroyed dynamically whenever
charging/uncharging occurs respectively and whenever user
configuration is done. Its a tradeoff of memory vs little more code
space that creates resource pool object whenever necessary, instead of
creating them during cgroup creation and device registration time.
Signed-off-by: Parav Pandit <pandit.parav@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup/Makefile')
-rw-r--r-- | kernel/cgroup/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/cgroup/Makefile b/kernel/cgroup/Makefile index 6d42a3211164..387348a40c64 100644 --- a/kernel/cgroup/Makefile +++ b/kernel/cgroup/Makefile @@ -2,4 +2,5 @@ obj-y := cgroup.o namespace.o cgroup-v1.o obj-$(CONFIG_CGROUP_FREEZER) += freezer.o obj-$(CONFIG_CGROUP_PIDS) += pids.o +obj-$(CONFIG_CGROUP_RDMA) += rdma.o obj-$(CONFIG_CPUSETS) += cpuset.o |