Thread (115 messages) 115 messages, 7 authors, 2010-08-04

Re: [PATCH repost] sched: export sched_set/getaffinity to modules

From: Peter Zijlstra <peterz@infradead.org>
Date: 2010-07-01 12:33:35
Also in: kvm, lkml

On Thu, 2010-07-01 at 14:55 +0300, Michael S. Tsirkin wrote:
quoted
 - why can't it set the kernel thread's affinity too?
It can. However: the threads are started internally by the driver
when qemu does an ioctl.  What we want to do is give it a sensible
default affinity. management tool can later tweak it if it wants to.
So have that ioctl return the tid of that new fancy thread and then set
its affinity, stuff it in cgroup, whatever you fancy.
quoted
 - what happens if someone changes the tasks' affinity?
We would normally create a cgroup including all internal
tasks, making it easy to find and change affinity for
them all if necessary. 
And to stuff them in a cgroup you also need the tid, at which point it
might as well set the affinity from userspace, right?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help