[lxc-users] Limiting number of cores in a container

Peter Steele pwsteele at gmail.com
Sun Sep 6 12:22:05 UTC 2015


On 09/05/2015 05:45 PM, Stéphane Graber wrote:
> lxc.cgroup.cpuset.cpus = 0-3

So, if I had enough CPUs, I could set one container to have, e,g,

lxc.cgroup.cpuset.cpus = 0-3

and others to have

lxc.cgroup.cpuset.cpus = 4-5
lxc.cgroup.cpuset.cpus = 6-7

and so on? And if I didn't then, every is just assigned the same set? E.g.

lxc.cgroup.cpuset.cpus = 0-3
lxc.cgroup.cpuset.cpus = 0-1
lxc.cgroup.cpuset.cpus = 0-1




More information about the lxc-users mailing list