From: Neil Brown <neilb@suse.de>
To: Lee Howard <faxguy@howardsilvan.com>
Cc: dan.j.williams@intel.com, mingo@redhat.com, linux-raid@vger.kernel.org
Subject: Re: md data-check causes soft lockup
Date: Fri, 25 Sep 2009 16:54:10 +1000 [thread overview]
Message-ID: <19132.26898.341533.52076@notabene.brown> (raw)
In-Reply-To: message from Lee Howard on Monday September 21
On Monday September 21, faxguy@howardsilvan.com wrote:
> Linux software RAID maintainers and developers,
>
> Two months ago I wrote to the Linux kernel mailing list regarding a
> condition expressed as "BUG: soft lockup - CPU#3 stuck for 61s!". I
> initially battled this recurring problem in both Fedora 10 and Fedora
> 11. Rafael J. Wysocki suggested that I update the kernel (to 2.6.31-rc4
> or later) and see if the problem resurfaced. I then used kernel
> 2.6.31-0.94.rc4.fc12.x86_64 and found that the problem still continued,
> but noticeably only when the md data-check process was run.
>
> You can read the last post to the LKML thread (with links to the entire
> thread) here:
>
> http://lkml.org/lkml/2009/8/6/387
Thanks for the report.
It looks like the difference between the cpu/RAM speed and the drive
speed is small enough that the CPU gets stuck comparing lots of blocks
for multiple seconds.
This patch should fix it. I'll see that it goes upstream.
NeilBrown
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -1703,6 +1703,7 @@ static void raid1d(mddev_t *mddev)
generic_make_request(bio);
}
}
+ cond_resched();
}
if (unplug)
unplug_slaves(mddev);
next prev parent reply other threads:[~2009-09-25 6:54 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-21 18:08 md data-check causes soft lockup Lee Howard
2009-09-21 18:54 ` Majed B.
2009-09-22 14:43 ` Lee Howard
2009-09-22 14:48 ` Majed B.
2009-09-22 14:59 ` Lee Howard
2009-09-22 15:13 ` Majed B.
2009-09-22 15:19 ` Robin Hill
2009-09-22 19:35 ` Gabriele Trombetti
2009-09-23 0:16 ` Majed B.
2009-09-23 1:05 ` Guy Watkins
2009-09-21 19:13 ` kwick
2009-09-25 6:54 ` Neil Brown [this message]
2009-09-25 11:01 ` kwick
2009-09-25 11:23 ` NeilBrown
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=19132.26898.341533.52076@notabene.brown \
--to=neilb@suse.de \
--cc=dan.j.williams@intel.com \
--cc=faxguy@howardsilvan.com \
--cc=linux-raid@vger.kernel.org \
--cc=mingo@redhat.com \
/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;
as well as URLs for NNTP newsgroup(s).