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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Peter Zijlstra <peterz@...>
Cc: David Rientjes <rientjes@...>, Paul Jackson <pj@...>, <mingo@...>, <menage@...>, <linux-kernel@...>, Oleg Nesterov <oleg@...>
Date: Tuesday, June 10, 2008 - 11:38 am

Peter Zijlstra wrote:
Actually I had a discussion on that with Oleg Nesterov. If you remember my
original solution (ie centralized cpu_isolate_map) was to completely redirect
work onto other cpus. Then you pointed out that it's the flush_() that really
makes the box stuck. So I started thinking about redoing the flush. While
looking at the code I realized that if I only change the flush_() then queued
work can get stale so to speak. ie Machine does not get stuck but some work
submitted on the isolated cpus will sit there for a long time. Oleg pointed
out exact same thing. So the simplest solution that does not require any
surgery to the workqueue is to just move the threads to other cpus. I did not
want to get into too much detail on the workqueue stuff here. I'll start a
separate thread on this.
As I pointed out, there are a bunch of other kthreads like: kswapd, kacpid,
pdflush, khubd, etc, etc, that clearly do not need any pinning but still
violate cpuset constraints they inherit from kthreadd.

Max



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

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