Re: Real-Time Preemption -RT-V0.7.51-17 - Keyboard Problems

From: Peter Zijlstra
Date: Sat Jul 09 2005 - 13:32:20 EST


On Fri, 2005-07-08 at 21:13 +0200, Ingo Molnar wrote:
> * K.R. Foley <kr@xxxxxxxxxx> wrote:
>
> > Ingo,
> >
> > I have an issue with keys VERY SPORADICALLY repeating, SOMETIMES, when
> > running the RT patches. The problem manifests itself as if the key
> > were stuck but happens far too quickly for that to be the case. I
> > realize that the statements above are far from scientific, but I can't
> > seem to narrow it down further. 2.6.12 doesn't seem to have the
> > problem at all, only when running the RT patches. It SEEMS to have
> > gotten worse lately. I am attaching my config as well as the output
> > from lspci.
> >
> > Adjusting the delay in the keyboard repeat seems to help. Any ideas?
>
> hm. Would be nice to somehow find a condition that triggers it. One
> possibility is that something else is starving the keyboard handling
> path. Right now it's handled via workqueues, which live in keventd. Do
> things improve if you chrt keventd up to prio 99? Also i'd chrt the
> keyboard IRQ thread up to prio 99 too.
>
> the other possibility is some IRQ handling bug - those are usually
> specific to the IRQ controller, so try turning off (or on) the IO-APIC
> [if the box has an IO-APIC], does that change anything?
>

I have also noticed this behaviour; PS2 keyboard, USB mouse.
Just now on linux-2.6.12-RT-V0.7.51-18 while building
linux-2.6.12-RT-V0.7.51-23 with make -j5. My desktop experience
became quite bumpy, the mouse pointer was very _very_ choppy and
when pressing the down arrow to access the next email message
in evolution it seemed like the key release event was delayed
and several 10's of messages were scrolled down before it stopped.

I will try again with IRQ 1 and events/* chrt'ed to fifo-99.

Ok, then my system is almost unusable but the keyboard works flawlesly.
The mouse was unmovable. I did a make clean; make -j5 on the kernel.
This on a dual athlon system.


--
Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>

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