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

2011-08-25 Thread Robert Kawecki
Hi, >From your original post, I conclude that you're after functionality akin to that of OpenVZ's cpulimit, that is, limiting the absolute amount of processing power (giving your container, for example, 1GHz out of a 2GHz processor core). LXC cpu.shares does not provide this kind of functionality

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

2011-08-25 Thread Daniel Lezcano
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 con

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

2011-08-24 Thread 陈竞
according to my test cpu.shares just points to per cpu time, suppose you have 3 container, A ,B, C : A: lxc.cgroup.cpu.shares = 512 B: lxc.cgroup.cpu.shares = 512 C: lxc.cgroup.cpu.shares = 128 you run while(1) ++i; in A, B C. their cpu usage appears to be different in machine having different cp

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

2011-08-24 Thread 陈竞
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 =