Re: [RFC] Thread Migration Preemption

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Mathieu Desnoyers <[email protected]> wrote:

> Thread Migration Preemption
> 
> This patch adds the ability to protect critical sections from 
> migration to another CPU without disabling preemption.
> 
> This will be useful to minimize the amount of preemption disabling for 
> the -rt patch. [...]

unfortunately this abstraction has a number of fundamental 
disadvantages. (and hence the -rt patch does not make use of this 
facility)

firstly, its effects on load-balancing are quite brutal: it disables 
migration to another CPU, hence disturbing SMP load-balancing. It also 
adds an unplannable O(N) overhead into the load-balancer.

secondly, it has similar problems as preempt_disable(): it's opaque (not 
attached to a data structure) and thus it does not truly map the per-CPU 
data structure in any explicit way. It's little more than a per-task BKL 
for per-CPU data structures.

so in -rt we resisted the disable-migration approach from the early days 
on and are using two approaches to 'map' per-cpu data structures to 
PREEMPT_RT: firstly the use of PER_CPU_LOCKED data structures (which 
attach a per-cpu sleeping lock to per_cpu() data structures) - these are 
relatively easy first-approach conversions. As a second approach, if 
performance matters, the use of true atomic data structures.

	Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux