linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RT kernel on Acer laptop unreliable
@ 2017-07-15 17:43 Jacek Konieczny
  2017-07-17  6:21 ` Stéphane Ancelot
  2017-08-07 13:19 ` Sebastian Andrzej Siewior
  0 siblings, 2 replies; 19+ messages in thread
From: Jacek Konieczny @ 2017-07-15 17:43 UTC (permalink / raw)
  To: linux-rt-users

Hello,

I need low and stable latency for audio processing. I use Guitarix,
Ardour and other jack-based applications. For anything else I would use
the regular kernel package from my distribution (PLD Linux), but the
latency spikes are unacceptable in some cases. That is why I have been
trying to use RT kernel, for a few months now…

First I added the RT patch to the PLD Linux kernel package. I have tried
both the 4.4 and 4.9 kernel. Neither of them worked well. Then I
manually compiled a few vanilla 4.9.x kernels, just with the most recent
RT patch and with a configuration made from scratch (not to copy any PLD
mistakes). Still no luck.

Most of the information I could find online is quite outdated or
incomplete, so I have really little idea what the proper configuration
of the RT kernel is or how to debug it.

When the RT kernel works, it would provide quite acceptable latency – I
could get down to 8ms in jack with no significant xruns. Unfortunately
none of the RT kernels I tried would be reliable. With little load the
system would work for a few hours sometimes, but often it would slow
down and crash much earlier. With high load, e.g. when trying to play
some demanding game, the system would usually crash quite quickly.

Sometimes it would just lock up hard with no warning and nothing would
work – not even magic sysrq.
Other times it would gradually slow down until it is not usable at all.
Sometimes I would be able to see some 'BUG' in dmesg, but rarely I would
be able to restart the system cleanly.
Sometimes only some subsystems would fail, while otherwise the system
still seems to work. It could be sound, mouse, keyboard or network that
doesn't work.

System logs would contain some kernel BUGs/WARNINGs, but they would
often look generic and would not point to a specific problem (not for me).

Today I have tried kernel 4.9.37 with the 4.9.35-rt25 patch. It failed
again, here are the kernel error logs:

https://gist.github.com/Jajcus/494b79062b537269b49265ff3c50ee78

I have no idea how to properly debug the problem, even what data should
I collect to prepare a reasonable bug report.

I have already upgraded laptop firmware to the latest available, I have
also played with some BIOS setup options.

One thing that looks suspicious is the amount of time spent in IRQ 16
handling, which is: 'idma64, i801_smbus, i2c_designware'. Also the
i801-smbus in i2c-designware-platform were first to fail when loaded.
Regular kernel (without PREEMPT_RT_FULL) seems to generate much lower
number of those interrupts.

However, the system would crash even if the i2c modules are blacklisted
and not loaded. Getting rid of idma64 would not help much either. IRQ 16
would not come any more, but the system would slow down and crash anyway.


Any idea what is the problem?
Any hints how to debug it?


Greets,
Jacek

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

end of thread, other threads:[~2017-09-22  7:40 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-15 17:43 RT kernel on Acer laptop unreliable Jacek Konieczny
2017-07-17  6:21 ` Stéphane Ancelot
2017-07-17  6:31   ` Piotr Gregor
2017-07-17 15:06     ` Jacek Konieczny
2017-07-17 17:59       ` Piotr Gregor
2017-08-07 13:19 ` Sebastian Andrzej Siewior
2017-08-12 10:07   ` Jacek Konieczny
2017-08-14 18:03   ` Jacek Konieczny
2017-08-18 12:44     ` Sebastian Andrzej Siewior
2017-08-20 14:48       ` Jacek Konieczny
2017-08-21 13:12         ` Sebastian Andrzej Siewior
2017-08-23 17:04           ` Jacek Konieczny
2017-09-05  9:17             ` Sebastian Andrzej Siewior
2017-09-05 19:37               ` Jacek Konieczny
2017-09-10 12:49                 ` Jacek Konieczny
2017-09-11  7:17                   ` Sebastian Andrzej Siewior
2017-09-14 19:11                     ` Jacek Konieczny
2017-09-21 12:57                       ` Sebastian Andrzej Siewior
2017-09-22  7:40               ` 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).