Re: [Xenomai-core] x86: Endless minor faults

2009-07-07 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: Hi again, this is now basically the patch which seems

Re: [Xenomai-core] x86: Endless minor faults

2009-07-06 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Gilles Chanteperdrix wrote: Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Hi again, >>> >>> this is now basically the patch which seems to stabilized x86 /wrt mmu >>> swi

Re: [Xenomai-core] x86: Endless minor faults

2009-07-05 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Hi again, >> >> this is now basically the patch which seems to stabilized x86 /wrt mmu >> switches again: >> >> Th

Re: [Xenomai-core] x86: Endless minor faults

2009-07-05 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Gilles Chanteperdrix wrote: Jan Kiszka wrote: > Hi again, > > this is now basically the patch which seems to stabilized x86 /wrt mmu > switches again: > > There were 3 race windows between setting

Re: [Xenomai-core] x86: Endless minor faults

2009-07-05 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: Hi again, this is now basically the patch which seems to stabilized x86 /wrt mmu switches again: There were 3 race windows between setting active_mm of the current task

Re: [Xenomai-core] x86: Endless minor faults

2009-07-04 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Hi again, > > this is now basically the patch which seems to stabilized x86 /wrt mmu > switches again: > > There were 3 race windows between setting active_mm of the current task > and actually switching it (that's a noarch issue), there were several > calls into switch_mm wit

Re: [Xenomai-core] x86: Endless minor faults

2009-07-04 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Hi again, >> >> this is now basically the patch which seems to stabilized x86 /wrt mmu >> switches again: >> >> There were 3 race windows between setting active_mm of the current task >> and actually switching it (that's a noarch issue), there were

Re: [Xenomai-core] x86: Endless minor faults

2009-07-04 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Hi again, >>> >>> this is now basically the patch which seems to stabilized x86 /wrt mmu >>> switches again: >>> >>> There were 3 race windows between setting active_mm of the current task >>> and actually switching it (that's

Re: [Xenomai-core] x86: Endless minor faults

2009-07-04 Thread Jan Kiszka
Hi again, this is now basically the patch which seems to stabilized x86 /wrt mmu switches again: There were 3 race windows between setting active_mm of the current task and actually switching it (that's a noarch issue), there were several calls into switch_mm without proper hard interrupt protect

Re: [Xenomai-core] x86: Endless minor faults

2009-07-02 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> On archs with non-atomic switch_mm(), use_mm() will require a different >>> strategy. I'm thinking about something like >>> >>> use_mm(): >>> set_some_flag(); >>> barrier(); >>> current->mm = new_mm; >>> curre

Re: [Xenomai-core] x86: Endless minor faults

2009-07-02 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> On archs with non-atomic switch_mm(), use_mm() will require a different >> strategy. I'm thinking about something like >> >> use_mm(): >> set_some_flag(); >> barrier(); >> current->mm = new_mm; >> current->active_mm = new_mm; >>

Re: [Xenomai-core] x86: Endless minor faults

2009-07-02 Thread Philippe Gerum
On Wed, 2009-07-01 at 20:56 +0200, Jan Kiszka wrote: > Philippe Gerum wrote: > > On Wed, 2009-07-01 at 19:56 +0200, Jan Kiszka wrote: > >> Jan Kiszka wrote: > >>> Jan Kiszka wrote: > Gilles Chanteperdrix wrote: > > Jan Kiszka wrote: > >> Jan Kiszka wrote: > >>> Gilles Chanteperdrix

Re: [Xenomai-core] x86: Endless minor faults

2009-07-02 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Philippe Gerum wrote: >>> On Wed, 2009-07-01 at 20:15 +0200, Philippe Gerum wrote: On Wed, 2009-07-01 at 19:56 +0200, Jan Kiszka wrote: > Jan Kiszka wrote: >> Jan Kiszka wrote: >>> Gilles Chanteperdrix wrote: Jan Kiszka wr

Re: [Xenomai-core] x86: Endless minor faults

2009-07-01 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Philippe Gerum wrote: >> On Wed, 2009-07-01 at 20:15 +0200, Philippe Gerum wrote: >>> On Wed, 2009-07-01 at 19:56 +0200, Jan Kiszka wrote: Jan Kiszka wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: Jan Kiszka wr

Re: [Xenomai-core] x86: Endless minor faults

2009-07-01 Thread Gilles Chanteperdrix
Philippe Gerum wrote: > On Wed, 2009-07-01 at 20:15 +0200, Philippe Gerum wrote: >> On Wed, 2009-07-01 at 19:56 +0200, Jan Kiszka wrote: >>> Jan Kiszka wrote: Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Jan Kiszka wrote: Gilles Chanteperdrix wr

Re: [Xenomai-core] x86: Endless minor faults

2009-07-01 Thread Jan Kiszka
Jan Kiszka wrote: > Philippe Gerum wrote: >> On Wed, 2009-07-01 at 20:15 +0200, Philippe Gerum wrote: >>> On Wed, 2009-07-01 at 19:56 +0200, Jan Kiszka wrote: Jan Kiszka wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: Jan Kiszka wrote: >

Re: [Xenomai-core] x86: Endless minor faults

2009-07-01 Thread Jan Kiszka
Philippe Gerum wrote: > On Wed, 2009-07-01 at 20:15 +0200, Philippe Gerum wrote: >> On Wed, 2009-07-01 at 19:56 +0200, Jan Kiszka wrote: >>> Jan Kiszka wrote: Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Jan Kiszka wrote: Gilles Chanteperdrix wr

Re: [Xenomai-core] x86: Endless minor faults

2009-07-01 Thread Jan Kiszka
Philippe Gerum wrote: > On Wed, 2009-07-01 at 19:56 +0200, Jan Kiszka wrote: >> Jan Kiszka wrote: >>> Jan Kiszka wrote: Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Jan Kiszka wrote: >>> Gilles Chanteperdrix wrote: Jan Kiszka wrote: > Jan Kiszka wrote: >>

Re: [Xenomai-core] x86: Endless minor faults

2009-07-01 Thread Philippe Gerum
On Wed, 2009-07-01 at 20:15 +0200, Philippe Gerum wrote: > On Wed, 2009-07-01 at 19:56 +0200, Jan Kiszka wrote: > > Jan Kiszka wrote: > > > Jan Kiszka wrote: > > >> Gilles Chanteperdrix wrote: > > >>> Jan Kiszka wrote: > > Jan Kiszka wrote: > > > Gilles Chanteperdrix wrote: > > >> Jan

Re: [Xenomai-core] x86: Endless minor faults

2009-07-01 Thread Philippe Gerum
On Wed, 2009-07-01 at 19:56 +0200, Jan Kiszka wrote: > Jan Kiszka wrote: > > Jan Kiszka wrote: > >> Gilles Chanteperdrix wrote: > >>> Jan Kiszka wrote: > Jan Kiszka wrote: > > Gilles Chanteperdrix wrote: > >> Jan Kiszka wrote: > >>> Jan Kiszka wrote: > It's still unclear w

Re: [Xenomai-core] x86: Endless minor faults

2009-07-01 Thread Jan Kiszka
Jan Kiszka wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Jan Kiszka wrote: It's still unclear what goes on precisely, we are still digging, but the

Re: [Xenomai-core] x86: Endless minor faults

2009-07-01 Thread Jan Kiszka
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Jan Kiszka wrote: Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Jan Kiszka wrote: >>> It's still unclear what goes on precisely, we are still digging, but the >>> test system that can produce this is

Re: [Xenomai-core] x86: Endless minor faults

2009-07-01 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Jan Kiszka wrote: >>> Gilles Chanteperdrix wrote: Jan Kiszka wrote: > Jan Kiszka wrote: >> It's still unclear what goes on precisely, we are still digging, but the >> test system that can produce this is highly contended. > Sho

Re: [Xenomai-core] x86: Endless minor faults

2009-07-01 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: Jan Kiszka wrote: > It's still unclear what goes on precisely, we are still digging, but the > test system that can produce this is highly contended. Short update: Further instrumentation re

Re: [Xenomai-core] x86: Endless minor faults

2009-07-01 Thread Jan Kiszka
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Jan Kiszka wrote: It's still unclear what goes on precisely, we are still digging, but the test system that can produce this is highly contended. >>> Short update: Further instrumentation revealed that cr3 differs fr

Re: [Xenomai-core] x86: Endless minor faults

2009-07-01 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Jan Kiszka wrote: It's still unclear what goes on precisely, we are still digging, but the test system that can produce this is highly contended. >>> Short update: Further instrumentation revealed that cr3 differs fr

Re: [Xenomai-core] x86: Endless minor faults

2009-07-01 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Jan Kiszka wrote: >>> It's still unclear what goes on precisely, we are still digging, but the >>> test system that can produce this is highly contended. >> Short update: Further instrumentation revealed that cr3 differs from >> active_mm->pgd whil

Re: [Xenomai-core] x86: Endless minor faults

2009-07-01 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Jan Kiszka wrote: >> It's still unclear what goes on precisely, we are still digging, but the >> test system that can produce this is highly contended. > > Short update: Further instrumentation revealed that cr3 differs from > active_mm->pgd while we are looping over that fault

Re: [Xenomai-core] x86: Endless minor faults

2009-07-01 Thread Jan Kiszka
Jan Kiszka wrote: > Jan Kiszka wrote: >> It's still unclear what goes on precisely, we are still digging, but the >> test system that can produce this is highly contended. > > Short update: Further instrumentation revealed that cr3 differs from > active_mm->pgd while we are looping over that fault

Re: [Xenomai-core] x86: Endless minor faults

2009-07-01 Thread Jan Kiszka
Jan Kiszka wrote: > It's still unclear what goes on precisely, we are still digging, but the > test system that can produce this is highly contended. Short update: Further instrumentation revealed that cr3 differs from active_mm->pgd while we are looping over that fault, ie. the kernel tries to fi

Re: [Xenomai-core] x86: Endless minor faults

2009-06-30 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Philippe Gerum wrote: >> On Tue, 2009-06-30 at 11:26 +0200, Gilles Chanteperdrix wrote: >>> Philippe Gerum wrote: On Tue, 2009-06-30 at 11:21 +0200, Gilles Chanteperdrix wrote: > Philippe Gerum wrote: >> On Tue, 2009-06-30 at 10:42 +0200, Gilles Chanteperd

Re: [Xenomai-core] x86: Endless minor faults

2009-06-30 Thread Gilles Chanteperdrix
Philippe Gerum wrote: > On Tue, 2009-06-30 at 11:26 +0200, Gilles Chanteperdrix wrote: >> Philippe Gerum wrote: >>> On Tue, 2009-06-30 at 11:21 +0200, Gilles Chanteperdrix wrote: Philippe Gerum wrote: > On Tue, 2009-06-30 at 10:42 +0200, Gilles Chanteperdrix wrote: >> Jan Kiszka wrote:

Re: [Xenomai-core] x86: Endless minor faults

2009-06-30 Thread Philippe Gerum
On Tue, 2009-06-30 at 11:26 +0200, Gilles Chanteperdrix wrote: > Philippe Gerum wrote: > > On Tue, 2009-06-30 at 11:21 +0200, Gilles Chanteperdrix wrote: > >> Philippe Gerum wrote: > >>> On Tue, 2009-06-30 at 10:42 +0200, Gilles Chanteperdrix wrote: > Jan Kiszka wrote: > > Jan Kiszka wrote

Re: [Xenomai-core] x86: Endless minor faults

2009-06-30 Thread Gilles Chanteperdrix
Philippe Gerum wrote: > On Tue, 2009-06-30 at 11:21 +0200, Gilles Chanteperdrix wrote: >> Philippe Gerum wrote: >>> On Tue, 2009-06-30 at 10:42 +0200, Gilles Chanteperdrix wrote: Jan Kiszka wrote: > Jan Kiszka wrote: >> Hi all, >> >> seen such loops before? This particular trac

Re: [Xenomai-core] x86: Endless minor faults

2009-06-30 Thread Philippe Gerum
On Tue, 2009-06-30 at 11:21 +0200, Gilles Chanteperdrix wrote: > Philippe Gerum wrote: > > On Tue, 2009-06-30 at 10:42 +0200, Gilles Chanteperdrix wrote: > >> Jan Kiszka wrote: > >>> Jan Kiszka wrote: > Hi all, > > seen such loops before? This particular trace is from a 2.6.29.3 kern

Re: [Xenomai-core] x86: Endless minor faults

2009-06-30 Thread Philippe Gerum
On Tue, 2009-06-30 at 10:42 +0200, Gilles Chanteperdrix wrote: > Jan Kiszka wrote: > > Jan Kiszka wrote: > >> Hi all, > >> > >> seen such loops before? This particular trace is from a 2.6.29.3 kernel > >> with ipipe-2.3-01 (SMP/PREEMPT_VOLUNTARY), but the same happens with > >> 2.6.29.5/2.3-03: > >

Re: [Xenomai-core] x86: Endless minor faults

2009-06-30 Thread Gilles Chanteperdrix
Philippe Gerum wrote: > On Tue, 2009-06-30 at 10:42 +0200, Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >>> Jan Kiszka wrote: Hi all, seen such loops before? This particular trace is from a 2.6.29.3 kernel with ipipe-2.3-01 (SMP/PREEMPT_VOLUNTARY), but the same happens with

Re: [Xenomai-core] x86: Endless minor faults

2009-06-30 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Jan Kiszka wrote: >>> Hi all, >>> >>> seen such loops before? This particular trace is from a 2.6.29.3 kernel >>> with ipipe-2.3-01 (SMP/PREEMPT_VOLUNTARY), but the same happens with >>> 2.6.29.5/2.3-03: >>> >>> :| +func-6530.

Re: [Xenomai-core] x86: Endless minor faults

2009-06-30 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Jan Kiszka wrote: >>> Hi all, >>> >>> seen such loops before? This particular trace is from a 2.6.29.3 kernel >>> with ipipe-2.3-01 (SMP/PREEMPT_VOLUNTARY), but the same happens with >>> 2.6.29.5/2.3-03: >>> >>> :| +func-6530.

Re: [Xenomai-core] x86: Endless minor faults

2009-06-30 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Jan Kiszka wrote: >> Hi all, >> >> seen such loops before? This particular trace is from a 2.6.29.3 kernel >> with ipipe-2.3-01 (SMP/PREEMPT_VOLUNTARY), but the same happens with >> 2.6.29.5/2.3-03: >> >> :| +func-6530.084 __ipipe_handle_exception+0x11 >>

Re: [Xenomai-core] x86: Endless minor faults

2009-06-30 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Jan Kiszka wrote: >> Hi all, >> >> seen such loops before? This particular trace is from a 2.6.29.3 kernel >> with ipipe-2.3-01 (SMP/PREEMPT_VOLUNTARY), but the same happens with >> 2.6.29.5/2.3-03: >> >> :| +func-6530.084 __ipipe_handle_exception+0x11 >>

Re: [Xenomai-core] x86: Endless minor faults

2009-06-30 Thread Jan Kiszka
Jan Kiszka wrote: > Hi all, > > seen such loops before? This particular trace is from a 2.6.29.3 kernel > with ipipe-2.3-01 (SMP/PREEMPT_VOLUNTARY), but the same happens with > 2.6.29.5/2.3-03: > > :| +func-6530.084 __ipipe_handle_exception+0x11 > (page_fault+0x26) > :|

Re: [Xenomai-core] x86: Endless minor faults

2009-06-29 Thread Jan Kiszka
Philippe Gerum wrote: > On Mon, 2009-06-29 at 19:35 +0200, Jan Kiszka wrote: >> Hi all, >> >> seen such loops before? This particular trace is from a 2.6.29.3 kernel >> with ipipe-2.3-01 (SMP/PREEMPT_VOLUNTARY), but the same happens with >> 2.6.29.5/2.3-03: > > Do you mean 2.6.29.5/2.4-03? No, in

Re: [Xenomai-core] x86: Endless minor faults

2009-06-29 Thread Philippe Gerum
On Mon, 2009-06-29 at 19:35 +0200, Jan Kiszka wrote: > Hi all, > > seen such loops before? This particular trace is from a 2.6.29.3 kernel > with ipipe-2.3-01 (SMP/PREEMPT_VOLUNTARY), but the same happens with > 2.6.29.5/2.3-03: Do you mean 2.6.29.5/2.4-03? -- Philippe. _