[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH] set cpu bandwidth for the vm



At 07/26/2011 06:24 PM, Daniel P. Berrange write:
On Mon, Jul 25, 2011 at 01:37:14PM +0800, Wen Congyang wrote:
The cpu bandwidth is applied at the vcpu group level. We should apply it
at the vm group level too, because the vm may do heavy I/O, and it will affect
the other vm.

We apply cpu bandwidth at the vcpu and the vm group level, so we must ensure
that max(child_quota)<= parent_quota when we modify cpu bandwidth.

Ahh, interesting problem !

---
  src/qemu/qemu_cgroup.c |   38 ++++++++++-------
  src/qemu/qemu_driver.c |  103 ++++++++++++++++++++++++++++++++++++-----------
  2 files changed, 101 insertions(+), 40 deletions(-)

ACK

Thanks, pushed.


Daniel


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]