Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

February 29, 2000 12:13 PM

Why is RAID 5 Slow on Writes?

Windows IT Pro
InstantDoc ID #8255
Rating: (1)

Books about storage often refer to RAID 5 as striping with distributed parity. RAID 5 comprises a logical volume, based on three or more disk drives, that generates data redundancy to avoid the loss of an entire volume in the event of disk failure. The RAID controller creates a special parity block for each stripe of information, as Figure A shows. (Features at the OS level, such as Windows 2000's—Win2K's—disk striping with parity, can also perform this function.) The parity is typically a binary exclusive OR (XOR) operation—indicated here with the ~ symbol—on all the data blocks of the stripe. In Figure A, the RAID controller calculates parity as S3 = A3 ~B3 ~D3 ~E3.

When a write operation occurs on a RAID 5 volume (e.g., on block B3), the controller must update parity block S3. Because the controller must read all the blocks in the stripe to recreate the parity block, most RAID 5 controllers will go through the following steps, in which single quotation marks and double quotation marks represent modifications:

  1. Read the block that needs modification (B3).
  2. Read the parity block (S3).
  3. Remove the knowledge of block B3 from parity S3 (S3'=S3~B3).
  4. Calculate the new parity (S3"=S3'~B3').
  5. Update the data block (B3').
  6. Update the parity block (S3").

In other words, one application I/O requires four disk I/Os, and these four I/Os occur on two spindles, potentially disturbing other transfer operations on those volumes.

Some high-end controllers optimize the disk activities so that if the controller needs to write an entire stripe (e.g., during a restore operation, in which the I/Os are typically large), the controller calculates the new parity on the fly and overwrites the old parity. However, this feature requires that the controller update all the other data blocks in the stripe.

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.