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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Max Krasnyansky
Date: Tuesday, June 10, 2008 - 8: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 cp ..., Max Krasnyansky, (Tue Jun 10, 8:38 am)
cpusets and kthreads, inconsistent behaviour, Max Krasnyansky, (Tue Jun 10, 9:30 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)