Linux RAID subsystem development
 help / color / mirror / Atom feed
From: "Liang Yang" <multisyncfe991@hotmail.com>
To: 'Dan Williams' <dan.j.williams@intel.com>
Cc: linux-raid@vger.kernel.org
Subject: RE: What is the exacting meaning of Striped_Cache_Size?
Date: Sun, 21 Jan 2007 23:22:24 -0700	[thread overview]
Message-ID: <BAY125-DAV20A23F0F57329431B65FBE93AE0@phx.gbl> (raw)
Message-ID: <000d01c73ded$ae7894f0$0401a8c0@bellevue> (raw)
In-Reply-To: <e9c3a7c20701212206p2316e02he13eebe8efc3889e@mail.gmail.com>

Dan,

Thanks for your reply. Still get two questions left.

Suppose I have a MD-RAID5 array which consists of 8 disks. 
1. Do we need to consider the chunk size of the RAID array when we set the
value of Striped_Cache_Size? For example, if the chunk size is changed from
64k to 256k, do we need to adjust the Striped_Cache_Size accordingly?

2. The performance improvement of large size I/O packets (128k, 256k) is
larger than small size I/O packets (512B, 1KB) when I change the
Striped_Cache_Size. How do you explain the difference here?

Liang

-----Original Message-----
From: dan.j.williams@gmail.com [mailto:dan.j.williams@gmail.com] On Behalf
Of Dan Williams
Sent: Sunday, January 21, 2007 11:07 PM
To: Liang Yang
Cc: linux-raid@vger.kernel.org
Subject: Re: What is the exacting meaning of Striped_Cache_Size?

On 1/21/07, Liang Yang <multisyncfe991@hotmail.com> wrote:
> Hello,
>
> I have tried to increase the Striped_Cache_Size from 256 (default for my
> MD-RAID5 array) to 8192, it does improve the MD-RAID5 Write performance
> which varies with the size of I/O packet.
>
> However, I'm still not very clean the meaning and the potential
performance
> impact of this Striped_Cache_Size? Is the unit for this parameter Byte or
> KiloByte?
>
> Could anyone here explain with a little bit more details?
>
stripe_cache_size is the number of stripes in the cache.  Each stripe
(strip) is composed one PAGE_SIZE block per disk.  If your page size
is 4k and you have 4 disks in your array then a stripe_cache_size of
256 is 4k * 4 * 256 = 4MB.

Increasing this number increases the chances that a write to the array
will not generate reads to satisfy the parity calculation.

> Thanks,
>
> Liang
>
Regards,

Dan


  reply	other threads:[~2007-01-22  6:22 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-20 12:23 Kernel 2.6.19.2 New RAID 5 Bug (oops when writing Samba -> RAID5) Justin Piszcz
2007-01-20 12:46 ` Justin Piszcz
     [not found]   ` <000301c73de7$7b0ce1d0$0401a8c0@bellevue>
2007-01-22  5:38     ` What is the exacting meaning of Striped_Cache_Size? Liang Yang
2007-01-22  6:06       ` Dan Williams
     [not found]         ` <000d01c73ded$ae7894f0$0401a8c0@bellevue>
2007-01-22  6:22           ` Liang Yang [this message]
2007-01-22 16:36             ` Dan Williams
2007-01-22 21:01 ` Kernel 2.6.19.2 New RAID 5 Bug (oops when writing Samba -> RAID5) Chuck Ebbert
2007-01-22 21:59   ` Neil Brown
2007-01-23  1:44     ` Dan Williams
2007-01-23  2:06       ` Neil Brown
2007-01-23 10:56     ` Justin Piszcz
2007-01-23 11:08       ` Michael Tokarev
2007-01-23 11:59         ` Justin Piszcz
2007-01-23 12:48           ` Michael Tokarev
2007-01-23 13:46             ` Justin Piszcz
2007-01-23 17:05           ` Bill Davidsen
2007-01-24 23:37   ` Justin Piszcz
2007-01-26  9:25     ` Andrew Morton
2007-01-26  9:37       ` Justin Piszcz
2007-01-26 12:31       ` Justin Piszcz

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=BAY125-DAV20A23F0F57329431B65FBE93AE0@phx.gbl \
    --to=multisyncfe991@hotmail.com \
    --cc=dan.j.williams@intel.com \
    --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