All of lore.kernel.org
 help / color / mirror / Atom feed
From: Neil Brown <neilb@suse.de>
To: Song Liu <songliubraving@fb.com>,
	Dan Williams <dan.j.williams@intel.com>
Cc: linux-raid <linux-raid@vger.kernel.org>, Shaohua Li <shli@fb.com>,
	Christoph Hellwig <hch@infradead.org>
Subject: RE: [PATCH 3/6] Enable create array with write journal (--write-journal DEVICE).
Date: Mon, 19 Oct 2015 13:42:08 +1100	[thread overview]
Message-ID: <87fv17lgu7.fsf@notabene.neil.brown.name> (raw)
In-Reply-To: <C709E4D363AAB64590BFAC54D4C478AA0104B88525@PRN-MBX02-4.TheFacebook.com>

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

Song Liu <songliubraving@fb.com> writes:
>> 
>> Hmm, perhaps this should instead follow the same command line mechanics
>> as "--write-mostly" whereby all the devices listed after that flag take on that
>> role.  Also, if we anticipate more roles I wonder if the option should be "--
>> role=" that assigns the given role to the device(s) that follow.
>> 
>> Thoughts?
>> 
>> I'm looking at this from the perspective of reviving the SRT patches [1] where
>> a role for a read/write cache device is needed.  Where a read/write-cache is
>> different than a journal.
>> 
>> [1]:
>> https://urldefense.proofpoint.com/v1/url?u=https://lwn.net/Articles/59661
>> 4/&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=J3jGe56dIPfS5TN6DM82U
>> YbbeR1j2viaiSJI40tv6lE%3D%0A&m=dv5znFd%2BTZdHZaSKjzBVqJbdtNBALR0
>> RgzhZsOmsWAU%3D%0A&s=80c812981ff98264cf1bb2b79032863d4e33ba100
>> 093d41956eab3fbd33b5635
>
> I think --write-mostly is used as _hint_ to RAID 1 that differentiates SSD from 
> HDD. While --write-journal turns on "MD_FEATURE_JOURNAL" and specifies 
> journal device. We should not need more than 1 journal device. In this sense, 
> I think current --write-journal works well...

--write-mostly isn't a hint.  It is a clear statement that these devices
should only be read from if there is no other option (the original
justification had nothing to do with SSDs).

However a write journal is a very different thing to the other devices.
For example it is not counted in the --raid-disks and --spare-disks
where as all other devices (whether --write-mostly or not) are.

If anything --write-journal is more like a --bitmap=/some/file than
--write-mostly.

So, I'm happy for --write-journal to stay as it is.

Thanks,
NeilBrown


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

  reply	other threads:[~2015-10-19  2:42 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-28 23:27 [PATCH 0/6] mdadm support for journal device of RAID-4/5/6 Song Liu
2015-08-28 23:27 ` [PATCH 1/6] add macros for MD_DISK_ROLE_(SPARE/FAULTY) Song Liu
2015-08-28 23:27 ` [PATCH 2/6] Show device as journal in --detail --examine Song Liu
2015-09-02  6:53   ` Christoph Hellwig
2015-09-02  7:04     ` Song Liu
2015-09-02  7:07       ` Christoph Hellwig
2015-09-02  7:09         ` Song Liu
2015-08-28 23:27 ` [PATCH 3/6] Enable create array with write journal (--write-journal DEVICE) Song Liu
2015-10-06 18:32   ` Dan Williams
2015-10-07  6:06     ` Song Liu
2015-10-19  2:42       ` Neil Brown [this message]
2015-08-28 23:27 ` [PATCH 4/6] Assemble array with write journal Song Liu
2015-10-06 20:11   ` Dan Williams
2015-10-07  6:13     ` Song Liu
2015-08-28 23:27 ` [PATCH 5/6] Check write journal in incremental Song Liu
2015-10-06 20:17   ` Dan Williams
2015-10-19  2:32     ` Neil Brown
2015-08-28 23:27 ` [PATCH 6/6] Add help message and man entry for --write-journal Song Liu

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=87fv17lgu7.fsf@notabene.neil.brown.name \
    --to=neilb@suse.de \
    --cc=dan.j.williams@intel.com \
    --cc=hch@infradead.org \
    --cc=linux-raid@vger.kernel.org \
    --cc=shli@fb.com \
    --cc=songliubraving@fb.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.