]> git.ipfire.org Git - thirdparty/libvirt.git/commit
create a new cgroup and move all emulator threads to the new cgroup
authorWen Congyang <wency@cn.fujitsu.com>
Tue, 21 Aug 2012 09:18:26 +0000 (17:18 +0800)
committerDaniel Veillard <veillard@redhat.com>
Wed, 22 Aug 2012 06:33:59 +0000 (14:33 +0800)
commit4b03d59167f4a4c6ec57def315a61d977466e75b
tree3db2bdf78829d6c42e9583faed8d814df49fc487
parent910282960f87c319cdc55b0309e93e6f8a20ceb7
create a new cgroup and move all emulator threads to the new cgroup

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@cn.fujitsu.com>
Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
src/qemu/qemu_cgroup.c
src/qemu/qemu_cgroup.h
src/qemu/qemu_process.c