Re: [libvirt] CFS Hardlimits and the libvirt cgroups implementation

2011-06-13 Thread Wen Congyang
At 06/10/2011 08:32 PM, Adam Litke Write: On 06/10/2011 05:25 AM, Taku Izumi wrote: --- snip --- cputune ... cfs_period100/cfs_period cfs_quota50/cfs_quota /cputune --- snip --- I think the element name should be generic and the percentage (0..100 or 0..vcpu*100) is

Re: [libvirt] CFS Hardlimits and the libvirt cgroups implementation

2011-06-10 Thread Wen Congyang
At 06/09/2011 03:20 AM, Adam Litke Write: Hi all. In this post I would like to bring up 3 issues which are tightly related: 1. unwanted behavior when using cfs hardlimits with libvirt, 2. Scaling cputune.share according to the number of vcpus, 3. API proposal for CFS hardlimits support.

Re: [libvirt] CFS Hardlimits and the libvirt cgroups implementation

2011-06-10 Thread Daniel P. Berrange
On Wed, Jun 08, 2011 at 02:20:23PM -0500, Adam Litke wrote: Hi all. In this post I would like to bring up 3 issues which are tightly related: 1. unwanted behavior when using cfs hardlimits with libvirt, 2. Scaling cputune.share according to the number of vcpus, 3. API proposal for CFS

Re: [libvirt] CFS Hardlimits and the libvirt cgroups implementation

2011-06-10 Thread Wen Congyang
At 06/10/2011 05:20 PM, Daniel P. Berrange Write: On Wed, Jun 08, 2011 at 02:20:23PM -0500, Adam Litke wrote: Hi all. In this post I would like to bring up 3 issues which are tightly related: 1. unwanted behavior when using cfs hardlimits with libvirt, 2. Scaling cputune.share according to

Re: [libvirt] CFS Hardlimits and the libvirt cgroups implementation

2011-06-10 Thread Taku Izumi
--- snip --- cputune ... cfs_period100/cfs_period cfs_quota50/cfs_quota /cputune --- snip --- I think the element name should be generic and the percentage (0..100 or 0..vcpu*100) is better as the element value. That's intuitive to me. How about the follwing?

Re: [libvirt] CFS Hardlimits and the libvirt cgroups implementation

2011-06-10 Thread Adam Litke
On 06/10/2011 05:25 AM, Taku Izumi wrote: --- snip --- cputune ... cfs_period100/cfs_period cfs_quota50/cfs_quota /cputune --- snip --- I think the element name should be generic and the percentage (0..100 or 0..vcpu*100) is better as the element value. That's

Re: [libvirt] CFS Hardlimits and the libvirt cgroups implementation

2011-06-10 Thread Adam Litke
On 06/10/2011 04:20 AM, Daniel P. Berrange wrote: On Wed, Jun 08, 2011 at 02:20:23PM -0500, Adam Litke wrote: Hi all. In this post I would like to bring up 3 issues which are tightly related: 1. unwanted behavior when using cfs hardlimits with libvirt, 2. Scaling cputune.share according to

Re: [libvirt] CFS Hardlimits and the libvirt cgroups implementation

2011-06-10 Thread Adam Litke
On 06/10/2011 04:45 AM, Wen Congyang wrote: === 3 === Besides the above issues, I would like to open a discussion on what the libvirt API for enabling cpu hardlimits should look like. Here is what I was thinking: Two additional scheduler parameters (based on the names given in the cgroup

[libvirt] CFS Hardlimits and the libvirt cgroups implementation

2011-06-08 Thread Adam Litke
Hi all. In this post I would like to bring up 3 issues which are tightly related: 1. unwanted behavior when using cfs hardlimits with libvirt, 2. Scaling cputune.share according to the number of vcpus, 3. API proposal for CFS hardlimits support. === 1 === Mark Peloquin (on cc:) has been looking