Re: [RFC] hangcheck-timer module

From: Joel Becker (Joel.Becker@oracle.com)
Date: Thu Nov 21 2002 - 17:08:08 EST


On Thu, Nov 21, 2002 at 03:31:04PM -0500, Brian Gerst wrote:
> Joel Becker wrote:
> > Attached is a module, hangcheck-timer. It is used to detect
> >when the system goes out to lunch for a period of time, such as when a
> >driver like qla2x00 udelays a bunch.
>
> There is already an NMI watchdog that is better than what you propose,
> because it will also catch cases where something gets stuck with
> interrupts disabled.

        The issue at hand is not permanent hangs. The issue is hangs
that return. Consider a clustering enviornment where the other nodes
have given up on the delayed node and clean up after it. When the hang
finally ends, the node still thinks it is "alive" and happily scribbles
to places it shouldn't.
        udelay will not ever trigger the NMI watchdog, as it is running
on the processor, so the cpu timer will run happily. But as far as
everything higher up (kernel + userspace), the delay will be unnoticed
and bad things can happen.

Joel

-- 

"I'm so tired of being tired, Sure as night will follow day. Most things I worry about Never happen anyway."

Joel Becker Senior Member of Technical Staff Oracle Corporation E-mail: joel.becker@oracle.com Phone: (650) 506-8127 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:38 EST