From: Goswin von Brederlow <goswin-v-b@web.de>
To: Kunal Kushwaha <kunal.kushwaha@gmail.com>
Cc: Neil Brown <neilb@suse.de>, linux-raid@vger.kernel.org
Subject: Re: Query regarding stripe management in linux md-raid
Date: Fri, 01 May 2009 23:41:17 +0200 [thread overview]
Message-ID: <87zldwjybm.fsf@frosties.localdomain> (raw)
In-Reply-To: <fbae8f520904290027x6b65419co164c61db7b249223@mail.gmail.com> (Kunal Kushwaha's message of "Wed, 29 Apr 2009 15:27:28 +0800")
Kunal Kushwaha <kunal.kushwaha@gmail.com> writes:
> Hi Neil,
>
> Thanks for your reply. I am trying to find out problems that I could
> face later on.
>
> On Wed, Apr 29, 2009 at 7:15 AM, Neil Brown <neilb@suse.de> wrote:
>> On Tuesday April 28, kunal.kushwaha@gmail.com wrote:
>>> Hi,
>>>
>>> I am trying to put Linux raid in Box with 256 MB of RAM. The kernel is
>>> compiled with non-swappable memory management option. I looked into
>>> raid5.c and found, it allocates one page for each chunk. I am using 5
>>> disks for 64k chunk size. considering my kernel is within 30 MB.
>>
>> That isn't quite right. It is not 1 page per chunk.
>> raid5 maintains a stripe cache. Each entry in the cache has one page
>> per device, and there are 256 entries by default.
>> So for a 5-disk array, that is 5*256 == 1280 pages or 5MB (plus
>> overhead).
>>
>
> Sorry I missed to mention about stripe cache. Yes we will be using
> only 5MB if we
> consider page size is of 4k.
>
> I have one more doubt regarding this. How a page of 4k will be able to
> store data of
> 64k( my chunk size if of 64k) ?
A chunk size of 64k does in no way mean all transactions are done in
64k chunks.
What effect does chunk size actually do have? Was it just the amount
of sequential data before the parity is rotated in a raid5/6.
MfG
Goswin
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2009-05-01 21:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-28 14:02 Query regarding stripe management in linux md-raid Kunal Kushwaha
2009-04-28 23:15 ` Neil Brown
2009-04-29 7:27 ` Kunal Kushwaha
2009-05-01 21:41 ` Goswin von Brederlow [this message]
2009-05-02 7:18 ` Kunal Kushwaha
2009-05-04 17:04 ` Goswin von Brederlow
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=87zldwjybm.fsf@frosties.localdomain \
--to=goswin-v-b@web.de \
--cc=kunal.kushwaha@gmail.com \
--cc=linux-raid@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox