From: NeilBrown <neilb@suse.de>
To: CoolCold <coolthecold@gmail.com>
Cc: linbloke <linbloke@fastmail.fm>,
Paul Clements <paul.clements@us.sios.com>,
John Robinson <john.robinson@anonymous.org.uk>,
Linux RAID <linux-raid@vger.kernel.org>
Subject: Re: possible bug - bitmap dirty pages status
Date: Wed, 16 Nov 2011 14:07:07 +1100 [thread overview]
Message-ID: <20111116140707.162d07e2@notabene.brown> (raw)
In-Reply-To: <CAGqmV7qpQBHLcJ9J9cP1zDw6kp6aLcaCMneFYEgcPOu7doXSMA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1630 bytes --]
On Wed, 16 Nov 2011 03:13:51 +0400 CoolCold <coolthecold@gmail.com> wrote:
> As I promised I was collecting data, but forgot to return to that
> problem, bumping thread returned me to that state ;)
> So, data was collected for almost the month - from 31 August to 26 September:
> root@gamma2:/root# grep -A 1 dirty component_examine.txt |head
> Bitmap : 44054 bits (chunks), 190 dirty (0.4%)
> Wed Aug 31 17:32:16 MSD 2011
>
> root@gamma2:/root# grep -A 1 dirty component_examine.txt |tail -n 2
> Bitmap : 44054 bits (chunks), 1 dirty (0.0%)
> Mon Sep 26 00:28:33 MSD 2011
>
> As i can understand from that dump, it was bitmap examination (-X key)
> of component /dev/sdc3 of raid /dev/md3.
> Decreasing happend, though after some increase on 23 of September, and
> first decrease to 0 happened on 24 of September (line number 436418).
>
> So almost for month, dirty count was no decreasing!
> I'm attaching that log, may be it will help somehow.
Thanks a lot.
Any idea what happened at on Fri Sep 23??
Between 6:23am and midnight the number of dirty bits dropped from 180 to 2.
This does seem to suggest that md is just losing track of some of the pages
of bits and once they are modified again md remembers to flush them and write
them out - which is a fairly safe way to fail.
The one issue I have found is that set_page_attr uses a non-atomic __set_bit
because it should always be called under a spinlock. But bitmap_write_all()
- which is called when a spare is added - calls it without the spinlock so
that could corrupt some of the bits.
Thanks,
NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
next prev parent reply other threads:[~2011-11-16 3:07 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-27 9:58 possible bug - bitmap dirty pages status CoolCold
2011-08-31 9:05 ` CoolCold
2011-08-31 12:30 ` Paul Clements
2011-08-31 12:56 ` John Robinson
2011-08-31 13:16 ` CoolCold
2011-08-31 14:08 ` Paul Clements
2011-08-31 20:16 ` CoolCold
2011-09-01 5:40 ` NeilBrown
2011-11-14 23:11 ` linbloke
2011-11-16 2:30 ` NeilBrown
2011-11-21 21:50 ` linbloke
[not found] ` <CAGqmV7qpQBHLcJ9J9cP1zDw6kp6aLcaCMneFYEgcPOu7doXSMA@mail.gmail.com>
2011-11-16 3:07 ` NeilBrown [this message]
2011-11-16 9:36 ` CoolCold
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=20111116140707.162d07e2@notabene.brown \
--to=neilb@suse.de \
--cc=coolthecold@gmail.com \
--cc=john.robinson@anonymous.org.uk \
--cc=linbloke@fastmail.fm \
--cc=linux-raid@vger.kernel.org \
--cc=paul.clements@us.sios.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).