lkml.org 
[lkml]   [2015]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] soft lockup: kill realtime threads before panic
On Wed, Jul 22, 2015 at 07:41:48AM +0200, Mike Galbraith wrote:
> On Tue, 2015-07-21 at 22:18 -0700, Jörn Engel wrote:
> >
> > Not sure if this patch is something for mainline, but those two
> > alternatives have problems of their own. Not panicking on lockups can
> > leave a system disabled until some human come around. In many cases
> > that human will do no better than power-cycle. A panic reduces the
> > downtime.
>
> If a realtime task goes bonkers, the realtime game is over, you're down.

Agreed. But a reboot will often solve the issue. So the automatic
panic will repair the system within minutes, while no panic will leave
the system broken for days, depending on human response time. Automatic
panic is a great way to minimize downtime - or vulnerable time if you
have HA.

One could argue that killing the realtime thread is even better than
panic, as things can restart with a blank slate even faster. But the
real benefit is that we get better debug data for the failing component.
If we had a kernel bug, the backtrace would usually be sufficient to
point fingers. With a bonkers realtime thread, not so much.

Anyway, this patch has been useful to us once. If someone deems it
merge-worthy, great. If not, I won't lose any sleep either.

Jörn

--
The key to performance is elegance, not battalions of special cases.
-- Jon Bentley and Doug McIlroy


\
 
 \ /
  Last update: 2015-07-22 09:01    [W:0.056 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site