From: kedacomkernel <kedacomkernel@gmail.com>
To: Dan Williams <djbw@fb.com>, majianpeng <majianpeng@gmail.com>
Cc: Neil Brown <neilb@suse.de>, linux-raid <linux-raid@vger.kernel.org>
Subject: Re: Re: raid5: When add stripe_head to inactive_list, it should remove hash.
Date: Wed, 22 Aug 2012 09:25:58 +0800 [thread overview]
Message-ID: <201208220925562967563@gmail.com> (raw)
In-Reply-To: CAA9_cmejVHOsW=u3WMusGSK8+CMiU978=kP5PVkxQO9T7VP1hA@mail.gmail.com
On 2012-08-22 00:43 Dan Williams <djbw@fb.com> Wrote:
>On Mon, Aug 20, 2012 at 8:14 PM, Jianpeng Ma <majianpeng@gmail.com> wrote:
>> On 2012-08-21 01:51 Dan Williams <djbw@fb.com> Wrote:
>>>On Mon, Aug 20, 2012 at 1:17 AM, Jianpeng Ma <majianpeng@gmail.com> wrote:
>>>> I think step4 maybe return ioerror.But it's success.
>>>
>>>You would need to check that stripe0 got recycled between step2 and
>>>step3. If not then the uptodate stripe is in the cache and the read
>>>can be serviced from the cached data.
>>>
>>>...which seems to be the case because of:
>>>
>>>> [19277.585936] locked=0 uptodate=4 to_read=0 to_write=0 failed=1 failed_num=3,-1
>>>
>>
>> Thanks! If stripe had a cache function.I think the chunk_aligned_read should use it for small read situation.
>
>But the stripe cache is not meant to be a read cache as it would be
>duplicating what the page cache offers. Most aligned reads are likely
>to miss the stripe cache so adding a lookup for every read would be
>mostly wasted overhead.
>
I think most aligned reads are likely to missed the stripe cache because they did not use stripe-cache(when fristly reaed)
For direct-io workload, there is no page-cache.
FYI, most hardware raid-controlers have own memory and don't use host-memeory. The stripe-cache of raid456 is the same as
raid-controller memeory.They also should provide the page-cache for read, rather only for write.
next prev parent reply other threads:[~2012-08-22 1:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-18 2:53 raid5: When add stripe_head to inactive_list, it should remove hash Jianpeng Ma
2012-08-20 8:17 ` Jianpeng Ma
2012-08-20 17:51 ` Dan Williams
2012-08-21 3:14 ` Jianpeng Ma
2012-08-21 16:43 ` Dan Williams
2012-08-22 1:25 ` kedacomkernel [this message]
2012-08-22 5:30 ` Jiang, Dave
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=201208220925562967563@gmail.com \
--to=kedacomkernel@gmail.com \
--cc=djbw@fb.com \
--cc=linux-raid@vger.kernel.org \
--cc=majianpeng@gmail.com \
--cc=neilb@suse.de \
/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.