[lxc-devel] Fine grained resource control
Daniel Lezcano
daniel.lezcano at free.fr
Tue Nov 9 12:22:06 UTC 2010
On 11/08/2010 10:22 PM, Sagar Dixit wrote:
> Hi,
>
> I am curious to know if there is fine grained resource control in LXC
> containers. For ex. Can I allocate some fixed part of CPU (some %) to a
> container and control this configuration while creating LXC container ? Or
> can I update it dynamically ? Similarly, can I specify such control
> parameters for memory, disks etc ?
>
> If no, can any body give me direction as to where to look in the code to
> start implementing it ?
> I am keen to explore this feature in LXC.
>
You have to look at the direction of the cgroups:
The existing cgroups are:
* memory + swap
* disk io
* scheduler
* cpuset
* devices whitelist
* cpu accounting
* network bandwidth
* freezer
There is not cpu usage thresold and disk quota per container is not yet
implemented.
More information about the lxc-devel
mailing list