[Lxc-users] how to use cpuset.shares?

Daniel Lezcano daniel.lezcano at free.fr
Thu Aug 25 16:35:54 UTC 2011


On 08/24/2011 04:06 PM, 陈竞 wrote:
> i have a computer with 2 cores cpu. I want to create a container with 0.5
> cpu. I  found that cpuset.shares means how many time cpu time it get,
> but i don't know whether cpuset.shares point to one cpu or all cpu?
> if it points to one cpu, is the following configuratian right?
> lxc.cgroup.cpuset.cpus = 0
> lxc.cgroup.cpuset.shares = 512

Do you mean lxc.cgroup.cpu.shares = 512 ?

If yes, that should be ok.




More information about the lxc-users mailing list