Interrupt Latency on PPC

Fernando RUIZ CASAS (E-mail) fernando.ruiz at ctv.es
Fri Nov 16 13:16:53 UTC 2001


Hi.
 Is the PTY driver the pty.c file placed close to telnetd.c?

 This pty driver doesn't make any special thing with termios. 
 If the tcp/ip works fine the driver also.

Perhaps I'm speaking about other oignons.

Fernando RUIZ CASAS
home:correo at fenando-ruiz.com
work:fernando.ruiz at ctv.es 

-----Mensaje original-----
De: till at MAILBOX.SLAC.Stanford.EDU
[mailto:till at MAILBOX.SLAC.Stanford.EDU]En nombre de Till Straumann
Enviado el: viernes, 16 de noviembre de 2001 2:26
Para: RTEMS List; joel.sherrill at oarcorp.com
Asunto: Re: Interrupt Latency on PPC


Things get _really_ bad when the PTY driver is
heavily used. I measured IRQ latencies of ~200us
during quite short measurement intervals (remember,
we're doing statistics here). This is in the order of
100 times the average.

I guess that the problem is caused by termios.c
which under some circumstances calls the
device's 'write' callback with _IRQs_disabled_.
The PTY driver's write callback is a

write(socket,...)

outchh!

Is there a termios expert out there who could explain
to me what really needs to be protected from interrupts?

Also, shouldn't the PTY driver run in task driven
(as opposed to the current IRQ driven) mode?

-----Mensaje original-----
De: till at MAILBOX.SLAC.Stanford.EDU
[mailto:till at MAILBOX.SLAC.Stanford.EDU]En nombre de Till Straumann
Enviado el: viernes, 16 de noviembre de 2001 2:26
Para: RTEMS List; joel.sherrill at oarcorp.com
Asunto: Re: Interrupt Latency on PPC


Things get _really_ bad when the PTY driver is
heavily used. I measured IRQ latencies of ~200us
during quite short measurement intervals (remember,
we're doing statistics here). This is in the order of
100 times the average.

I guess that the problem is caused by termios.c
which under some circumstances calls the
device's 'write' callback with _IRQs_disabled_.
The PTY driver's write callback is a

write(socket,...)

outchh!

Is there a termios expert out there who could explain
to me what really needs to be protected from interrupts?

Also, shouldn't the PTY driver run in task driven
(as opposed to the current IRQ driven) mode?

-- Till.





More information about the users mailing list