[libvirt] [PATCH v2.1 03/21] create a new cgroup and move all emulator threads to the new cgroup

Daniel P. Berrange berrange at redhat.com
Tue Aug 21 16:35:29 UTC 2012


On Tue, Aug 21, 2012 at 05:18:26PM +0800, Hu Tao wrote:
> From: Wen Congyang <wency at cn.fujitsu.com>
> 
> Create a new cgroup and move all emulator threads to the new cgroup.
> And then we can do the other things:
> 1. limit only vcpu usage rather than the whole qemu
> 2. limit for emulator threads(include vhost-net threads)
> 
> Signed-off-by: Wen Congyang <wency at cn.fujitsu.com>
> Signed-off-by: Tang Chen <tangchen at cn.fujitsu.com>
> Signed-off-by: Hu Tao <hutao at cn.fujitsu.com>
> ---
>  src/qemu/qemu_cgroup.c  |   71 ++++++++++++++++++++++++++++++++++++++++++++---
>  src/qemu/qemu_cgroup.h  |    2 ++
>  src/qemu/qemu_process.c |    6 +++-
>  3 files changed, 74 insertions(+), 5 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