From: MRK <mrk@shiftmail.org>
To: Aryeh Gregor <Simetrical+list@gmail.com>
Cc: CoolCold <coolthecold@gmail.com>, Mario <mgiammarco@gmail.com>,
linux-raid@vger.kernel.org
Subject: Re: It is possible to put write cache on ssd?
Date: Thu, 10 Jun 2010 14:08:38 +0200 [thread overview]
Message-ID: <4C10D5C6.5060507@shiftmail.org> (raw)
In-Reply-To: <AANLkTimMBOtusTb2GQjziBEt5XoFEBEmZmQfhWsB6Xig@mail.gmail.com>
On 06/09/2010 06:21 PM, Aryeh Gregor wrote:
> On Wed, Jun 9, 2010 at 7:06 AM, MRK<mrk@shiftmail.org> wrote:
>
>> Same problem with write-mostly/write-behind I think. I don't know how long
>> is the queue that holds data already committed to the SSD and not yet
>> committed to the HDD but it can't be too long. I'm reading the "man md"
>> right now and it's not extremely clear on this. I have the impression the
>> queue between the two it's either the /sys/block/hdddevice/queue/nr_requests
>> or it uses the write-intent bitmap (if set). In case of the nr_requests,
>> it's gonna be very short so the SSD can give you quick bursts but continuous
>> performance will be that of the HDD.
>>
> I tried this once and posted some bonnie++ results:
>
> https://kerneltrap.org/mailarchive/linux-raid/2010/1/31/6742263
>
Thanks for your tests. The write-mostly array seems to go roughly as
fast as the SSD itself if I interpret your tests correctly (have you
really saturated the write-behind queue?). An HDD-only test would have
been interesting though (with SSDs failed and removed).
Secondly:
I now realize that the write-behind distance is settable (man mdadm see
--write-behind= ). However there is written it needs the write intent
bitmap to work. This makes me think that it is not really safe upon SSD
failure. Is the data in the write-behind queue also saved in RAM or does
it exist only in the SSD device (pointed to by the bitmap)? In the
second case, if the SSD dies, the HDD will likely be corrupt, it's not
really like having a RAID. In the first case, I don't understand why it
should need the write intent bitmap active.
prev parent reply other threads:[~2010-06-10 12:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-04 8:52 It is possible to put write cache on ssd? Mario
2010-06-07 19:14 ` Bill Davidsen
2010-06-08 4:54 ` Ian Dall
2010-06-08 19:28 ` Bill Davidsen
2010-06-08 22:48 ` David Rees
2010-06-09 9:31 ` Ian Dall
2010-06-08 7:31 ` Mario
2010-06-08 12:23 ` CoolCold
2010-06-09 7:49 ` Mario
2010-06-09 11:06 ` MRK
2010-06-09 16:21 ` Aryeh Gregor
2010-06-10 12:08 ` MRK [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=4C10D5C6.5060507@shiftmail.org \
--to=mrk@shiftmail.org \
--cc=Simetrical+list@gmail.com \
--cc=coolthecold@gmail.com \
--cc=linux-raid@vger.kernel.org \
--cc=mgiammarco@gmail.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).