Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to limit the CPU shares of available to two LXC containers running.

It appears that this is done by adding the control group definitions into the LXC config file.

But what's the format? The Ubuntu server docs stop short of explaining how to do this.

Specifically I'd like to do this:

  • Container A is guaranteed 80% cpu as needed, Container B 20%
  • Basically the same block I/O access guarantees as we have for CPU above
share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.