All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zan Lynx <zlynx@acm.org>
To: Ray Lee <ray-lk@madrabbit.org>
Cc: Lee Howard <faxguy@howardsilvan.com>, linux-kernel@vger.kernel.org
Subject: Re: troubleshooting/debugging hard locks
Date: Wed, 14 May 2008 17:42:58 -0600	[thread overview]
Message-ID: <1210808578.3784.7.camel@localhost> (raw)
In-Reply-To: <2c0942db0805141543n20e6eb6eq5fe13fe1cb50d67e@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1190 bytes --]

On Wed, 2008-05-14 at 15:43 -0700, Ray Lee wrote:
> On Wed, May 14, 2008 at 12:27 PM, Lee Howard <faxguy@howardsilvan.com> wrote:

> >  But, without kernel messages indicating where to look to debug... what is
> > the best approach to start troubleshooting and debugging this condition?  Is
> > there some general debug feature that can be enabled in the kernel that
> > would help hone in on the culprit?
> 
> There's something called the NMI watchdog, that will print debugging
> messages out if it finds the system has hard locked. The short version
> is that you should add "nmi_watchdog=1" (no quotes) to the line in
> GRUB that has the kernel options. That assumes you have an APIC on the
> system. If that's not the case (you're on Uniprocessor, and no APIC)
> then you can try nmi_watchdog=2 instead. That'll only work on some
> systems, though.
> 
> Better docs (than my cheesy writeup) are in
> Documentation/nmi_watchdog.txt in the kernel source distribution.

I was once told to add these to the kernel command line as well when
using NMI watchdog and they do seem to help it trigger more reliably: 

"idle=poll nohz=off"

-- 
Zan Lynx <zlynx@acm.org>

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2008-05-14 23:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-14 19:27 troubleshooting/debugging hard locks Lee Howard
2008-05-14 22:43 ` Ray Lee
2008-05-14 23:42   ` Zan Lynx [this message]
2008-05-15  3:43     ` Lee Howard
2008-05-20 20:47       ` Lee Howard
2008-05-20 21:19         ` Ray Lee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1210808578.3784.7.camel@localhost \
    --to=zlynx@acm.org \
    --cc=faxguy@howardsilvan.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ray-lk@madrabbit.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.