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

Resource control for containers #6

Open
marcoy opened this issue Nov 8, 2011 · 1 comment
Open

Resource control for containers #6

marcoy opened this issue Nov 8, 2011 · 1 comment
Assignees
Milestone

Comments

@marcoy
Copy link

marcoy commented Nov 8, 2011

We need to limit the disk usage, bandwidth, etc...

@ghost ghost assigned marcoy Nov 8, 2011
@xavileon
Copy link
Member

I understand this as per container limit. Some comments:

  • Disk limit is no longer possible. Quotas per directory wouldn't work because host and containers share the same username namespace. Blocked by COW strategy for NodeManager #11 and Performance Evaluation #12.
  • Memory limit: hard and soft limits implemented through memlock_hard and memlock_soft tags (need testing) via cgroups
  • CPU limits: cgroups do not support hard limits on %CPU. Only support defining shares (tag cpu_share). Tested.
  • BW limits: classify net flows with cgroups (net_cls controller) and limit bw through tc.

Anything else?

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

No branches or pull requests

2 participants