[libvirt] [PATCH] set cpu bandwidth for the vm
Daniel P. Berrange
berrange at redhat.com
Tue Jul 26 10:24:19 UTC 2011
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
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvir-list
mailing list