linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* tty latency and RT
@ 2018-07-06  8:51 André Pribil
  2018-07-06  9:16 ` John Ogness
  0 siblings, 1 reply; 7+ messages in thread
From: André Pribil @ 2018-07-06  8:51 UTC (permalink / raw)
  To: linux-rt-users@vger.kernel.org

Hello,

are there any plans to improve the latency with serial ttys and RT?

I'm seeing very high latencies (up to 100 ms) when a high priority 
RT thread accesses a serial tty port. I'm working with 4.14.52-rt34 
on a ARM system.

The reason for this issue seems to be that a kworker thread with a 
normal priority is involved here. When the high priority RT 
thread needs to wait for this kworker thread, it can easily be blocked 
by other lower priority RT threads running in the system.

I have seen that Steven Walter proposed some change in 2015, where
this kworker thread in replaced by a kthread with a RT priority if
the low_latency mode is selected.
See: https://www.spinics.net/lists/linux-serial/msg17782.html

The follow-up discussion in this thread also proposes a solution that
allows low_latency ports to directly execute the worker.
As interrupts are already threaded in PREEMPT_RT, wouldn't that be a 
solution?

Please excuse me if I got something wrong. 
Thanks in advance.

Andre

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-07-18 17:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-06  8:51 tty latency and RT André Pribil
2018-07-06  9:16 ` John Ogness
2018-07-09  9:55   ` Esben Haabendal
2018-07-09 11:37     ` André Pribil
2018-07-11  8:09     ` Sebastian Andrzej Siewior
2018-07-13  8:33       ` Esben Haabendal
2018-07-18 16:49         ` Sebastian Andrzej Siewior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).