From: darnok@68k.org
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Inhibit NMI watchdog when Alt-SysRq-T operation is underway.
Date: Mon, 9 Jul 2007 11:53:02 -0400 [thread overview]
Message-ID: <20070709155302.GB26570@andromeda.dapyr.net> (raw)
In-Reply-To: <20070709140242.GA18098@andromeda.dapyr.net>
On Mon, Jul 09, 2007 at 10:02:42AM -0400, Konrad Rzeszutek wrote:
> On large memory configuration with not so fast CPUs the NMI watchdog
> is triggered when memory addresses are being gathered and printed.
> The code paths for Alt-SysRq-t are sprinkled with touch_nmi_watchdog
> in various places but not in this routine (or in the loop that utilizes
> this function). The patch has been tested for regression on large CPU+memory
> configuration (128 logical CPUs + 224 GB) and 1,2,4,16-CPU sockets with various
> memory sizes (1,2,4,6,20).
And the patch:
diff --git a/arch/x86_64/kernel/traps.c b/arch/x86_64/kernel/traps.c
index aac1c0b..b6e7d67 100644
--- a/arch/x86_64/kernel/traps.c
+++ b/arch/x86_64/kernel/traps.c
@@ -330,6 +330,10 @@ static int print_trace_stack(void *data,
static void print_trace_address(void *data, unsigned long addr)
{
+ static int i = 0;
+ if (i && ((i % 8) == 0))
+ touch_nmi_watchdog();
+ i++;
printk_address(addr);
}
next prev parent reply other threads:[~2007-07-09 15:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-09 14:02 Konrad Rzeszutek
2007-07-09 15:53 ` darnok [this message]
2007-07-13 23:45 ` Andrew Morton
2007-07-20 11:18 ` Konrad Rzeszutek
2007-07-20 21:06 ` Andrew Morton
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=20070709155302.GB26570@andromeda.dapyr.net \
--to=darnok@68k.org \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®