Re: [libvirt] [PATCH 1/2] cpuset: Add cpuset cgroup support.

2011-07-01 Thread Gui Jianfeng
On 2011-6-30 17:34, Daniel P. Berrange wrote: On Thu, Jun 30, 2011 at 11:08:32AM +0800, Gui Jianfeng wrote: Currently, libvirt makes use of sched_setaffinity() to set Guest processes's cpu affinity. But, sometimes, for instance, when QEmu uses vhost-net, the kernel part of vhost will create a ke

Re: [libvirt] [PATCH 1/2] cpuset: Add cpuset cgroup support.

2011-06-30 Thread Daniel P. Berrange
On Thu, Jun 30, 2011 at 11:08:32AM +0800, Gui Jianfeng wrote: > Currently, libvirt makes use of sched_setaffinity() to set Guest processes's > cpu affinity. But, sometimes, for instance, when QEmu uses vhost-net, the > kernel part of vhost will create a kernel thread for some purpose. In this > cas

Re: [libvirt] [PATCH 1/2] cpuset: Add cpuset cgroup support.

2011-06-29 Thread Gui Jianfeng
KAMEZAWA Hiroyuki wrote: > On Thu, 30 Jun 2011 11:08:32 +0800 > Gui Jianfeng wrote: > >> Currently, libvirt makes use of sched_setaffinity() to set Guest processes's >> cpu affinity. But, sometimes, for instance, when QEmu uses vhost-net, the >> kernel part of vhost will create a kernel thread fo

Re: [libvirt] [PATCH 1/2] cpuset: Add cpuset cgroup support.

2011-06-29 Thread KAMEZAWA Hiroyuki
On Thu, 30 Jun 2011 11:08:32 +0800 Gui Jianfeng wrote: > Currently, libvirt makes use of sched_setaffinity() to set Guest processes's > cpu affinity. But, sometimes, for instance, when QEmu uses vhost-net, the > kernel part of vhost will create a kernel thread for some purpose. In this > case, su

[libvirt] [PATCH 1/2] cpuset: Add cpuset cgroup support.

2011-06-29 Thread Gui Jianfeng
Currently, libvirt makes use of sched_setaffinity() to set Guest processes's cpu affinity. But, sometimes, for instance, when QEmu uses vhost-net, the kernel part of vhost will create a kernel thread for some purpose. In this case, such kernel thread won't inherit QEmu's cpu affinity. This patch e