linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: John Stoffel <john@stoffel.org>
Cc: Justin Piszcz <jpiszcz@lucidpixels.com>,
	joystick <joystick@shiftmail.org>,
	linux-raid <linux-raid@vger.kernel.org>
Subject: Re: 3.12: raid-1 mismatch_cnt question
Date: Tue, 12 Nov 2013 08:55:56 +1100	[thread overview]
Message-ID: <20131112085556.766f095b@notabene.brown> (raw)
In-Reply-To: <21121.19173.938188.985528@quad.stoffel.home>

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

On Mon, 11 Nov 2013 16:23:49 -0500 "John Stoffel" <john@stoffel.org> wrote:

> 
> I thought you could also get a mis-match count from open mmap'd files,
> which aren't completely written to one disk or another?  
> 

The only cause I can imagine for the mismatch count increasing is for a page
of memory to be change while it is being written out (so each device sees a
different value) and then for the page to be invalidated (so the dirty page
never gets written out again).

The only way to change a page while it is being written out is (I think)
through memory mapping (though this could have change, "write" might achieve
it).

But normally if you change a memory mapped page while it is being written it
will be marked 'dirty' and so will be written out again - the same to both
devices.

You could possibly modify a mem-mapped file, and then delete it before the
latest changes were written, but think that would be unlikely to do on
purpose.

Swap is the most likely cause.  If some pages in a process were written out
and changed during the writeout, and then the process was killed, you could
easily get a mismatch persisting.

But that doesn't seem to be the case here.

So I don't know what would be causing it.

NeilBrown

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

  reply	other threads:[~2013-11-11 21:55 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-04 10:25 3.12: raid-1 mismatch_cnt question Justin Piszcz
2013-11-07 10:54 ` Justin Piszcz
2013-11-12  0:39   ` Brad Campbell
2013-11-12  9:14     ` Justin Piszcz
     [not found] ` <527E8B74.70301@shiftmail.org>
2013-11-09 22:49   ` Justin Piszcz
2013-11-10 12:45     ` joystick
2013-11-11  9:26       ` Justin Piszcz
2013-11-11 11:06         ` joystick
2013-11-11 18:52           ` Justin Piszcz
2013-11-11 21:23             ` John Stoffel
2013-11-11 21:55               ` NeilBrown [this message]
2013-11-12  2:49                 ` John Stoffel
2013-11-11 21:58             ` NeilBrown
2013-11-11 22:18               ` Justin Piszcz
2013-11-12  9:30             ` joystick
2013-11-12 10:29               ` Bernd Schubert
2013-11-13 22:10                 ` Justin Piszcz
2013-11-14  8:44                   ` joystick
2013-11-14 10:43                     ` Justin Piszcz
2013-11-14 16:09                       ` joystick
2013-11-14 17:22                         ` Justin Piszcz
2013-11-15  8:51                           ` joystick

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=20131112085556.766f095b@notabene.brown \
    --to=neilb@suse.de \
    --cc=john@stoffel.org \
    --cc=joystick@shiftmail.org \
    --cc=jpiszcz@lucidpixels.com \
    --cc=linux-raid@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;
as well as URLs for NNTP newsgroup(s).