Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for rdma cgroup #39

Merged
merged 1 commit into from Mar 7, 2018
Merged

Conversation

paravmellanox
Copy link
Contributor

RDMA controller/cgroup support is added with Linux kernel 4.11.
It allows to limit RDMA/IB specific resources.
It is described at [1].

runc-spec update is already merged last week in PR [2].

Add support to set rdma cgroup parameters and read statistics.

[1] https://www.kernel.org/doc/Documentation/cgroup-v1/rdma.txt
[2] opencontainers/runtime-spec#942

Signed-off-by: Parav Pandit parav@mellanox.com

@paravmellanox
Copy link
Contributor Author

Hi,

From the Travis-CI config it seems that it checkout the older version of runc-spec in below command.

git checkout 96de01bbb42c7af89bff100e10a9f0fb62e75bfb

runc-spec is updated last week for inclusion of rdma cgroup.
How shall we move forward to tell Travis-CI to use recent runc-spec?

@crosbymichael
Copy link
Member

@paravmellanox just change the runtime commit here:

https://github.com/containerd/cgroups/blob/master/.travis.yml#L7

RDMA controller/cgroup support is added with Linux kernel 4.11.
It allows to limit RDMA/IB specific resources.
It is described at [1].

Add support to set rdma cgroup parameters and read statistics.

[1] https://www.kernel.org/doc/Documentation/cgroup-v1/rdma.txt

Signed-off-by: Parav Pandit <parav@mellanox.com>
@codecov-io
Copy link

Codecov Report

Merging #39 into master will decrease coverage by 0.82%.
The diff coverage is 4.38%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #39      +/-   ##
==========================================
- Coverage   13.95%   13.12%   -0.83%     
==========================================
  Files          22       23       +1     
  Lines        4106     4494     +388     
==========================================
+ Hits          573      590      +17     
- Misses       3423     3792     +369     
- Partials      110      112       +2
Impacted Files Coverage Δ
metrics.pb.go 0.46% <0.64%> (+0.02%) ⬆️
subsystem.go 53.57% <100%> (+1.71%) ⬆️
utils.go 65.89% <100%> (+0.19%) ⬆️
rdma.go 17.33% <17.33%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d578e4e...ccd26c4. Read the comment docs.

@crosbymichael
Copy link
Member

LGTM

Copy link
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@estesp estesp merged commit 78a98a6 into containerd:master Mar 7, 2018
@paravmellanox
Copy link
Contributor Author

thanks @estesp, @crosbymichael.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants