Linux RAID subsystem development
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.com>
To: guomingyang <guomingyang@bwstor.com.cn>, linux-raid@vger.kernel.org
Subject: Re: Is there any lazy initialization mechanism in linux-raid?
Date: Sat, 16 Dec 2017 15:22:47 +1100	[thread overview]
Message-ID: <87k1xnmhd4.fsf@notabene.neil.brown.name> (raw)
In-Reply-To: <46a50eb1-7836-9ec5-109a-59d223708547@bwstor.com.cn>

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

On Fri, Dec 15 2017, guomingyang wrote:

> Hi all:
>
>        Today's disk is becoming larger and larger, and the recovery time 
> is becoming longer. I'm thinking about a lazy initialization mechanism 
> in linux raid5 to speed up recovery, which contains an un-initializing 
> bitmap and a backend thread for initializing stripes lazily only after a 
> stripe is write. The major difference is as follows:
>
>        (1)When a raid4 or raid5 device is created, we don't recovery a 
> disk as usual, instead we just set all the bit in un-initialize bitmap.
>
>        (2)When a write happens and the corresponding un-initializing bit 
> is set, we must first clean the bit, then wake up the backend thread to 
> resync the stripe, and only do RCW in corresponding stripe before the 
> resync is done.
>
>       The major advantage of this mechanism is that when a disk is 
> replaced, we can only recovery the stripes which have been initialized, 
> so as to speed up recovery.
>
>       Does linux-raid have similar mechanism today? Or is there anyone 
> who has already working on similar mechanism?
>

No, linux-raid doesn't support this.
I don't know of anyone working on this.
I wrote about the idea nearly 7 years ago

   http://neil.brown.name/blog/20110216044002#5

but never got around to doing anything.  It probably wouldn't be too
hard if someone wanted it enough to put in some effort.

NeilBrown


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

      parent reply	other threads:[~2017-12-16  4:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-15 11:50 Is there any lazy initialization mechanism in linux-raid? guomingyang
2017-12-15 12:34 ` Phil Turmel
2017-12-16  4:22 ` NeilBrown [this message]

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=87k1xnmhd4.fsf@notabene.neil.brown.name \
    --to=neilb@suse.com \
    --cc=guomingyang@bwstor.com.cn \
    --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