Re: [patch] sched: prevent bound kthreads from changing cpus_allowed

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Tuesday, June 10, 2008 - 10:19 am

On Tue, 2008-06-10 at 21:00 +0400, Oleg Nesterov wrote:

The advantage of creating a more flexible or fine-grained flush is that
large machine also profit from it.

A simple scheme would be creating a workqueue context that is passed
along on enqueue, and then passed to flush.

This context could:

 - either track the individual worklets and employ a completion scheme
to wait for them;

 - or track on which cpus the worklets are enqueued and flush only those
few cpus.

Doing this would solve your case since nobody (except those having
business) will enqueue something on the isolated cpus.

And it will improve the large machine case for the same reasons - it
won't have to iterate all cpus.

Of course, things that use schedule_on_each_cpu() will still end up
doing things on your isolated cpus, but getting around those would
probably get you into some correctness trouble.



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
cpusets and kthreads, inconsistent behaviour, Max Krasnyansky, (Tue Jun 10, 9:30 am)
Re: [patch] sched: prevent bound kthreads from changing cp ..., Peter Zijlstra, (Tue Jun 10, 10:19 am)
Re: cpusets and kthreads, inconsistent behaviour, David Rientjes, (Tue Jun 10, 11:47 am)
workqueue cpu affinity, Max Krasnyansky, (Tue Jun 10, 1:24 pm)
Re: cpusets and kthreads, inconsistent behaviour, Max Krasnyansky, (Tue Jun 10, 1:44 pm)
Re: cpusets and kthreads, inconsistent behaviour, David Rientjes, (Tue Jun 10, 1:54 pm)
Re: cpusets and kthreads, inconsistent behaviour, Max Krasnyansky, (Tue Jun 10, 2:15 pm)
Re: workqueue cpu affinity, Peter Zijlstra, (Tue Jun 10, 11:49 pm)
Re: workqueue cpu affinity, Oleg Nesterov, (Wed Jun 11, 9:08 am)
Re: workqueue cpu affinity, Max Krasnyansky, (Wed Jun 11, 12:02 pm)
Re: workqueue cpu affinity, Max Krasnyansky, (Wed Jun 11, 12:21 pm)
Re: workqueue cpu affinity, Max Krasnyansky, (Wed Jun 11, 12:21 pm)
Re: workqueue cpu affinity, Max Krasnyansky, (Wed Jun 11, 1:44 pm)
Re: workqueue cpu affinity, Oleg Nesterov, (Thu Jun 12, 9:35 am)
Re: workqueue cpu affinity, Peter Zijlstra, (Thu Jun 12, 11:44 am)
Re: workqueue cpu affinity, Max Krasnyanskiy, (Thu Jun 12, 12:10 pm)