Improve RAID Speed with Partitions

Posted on by Larry

Workflow[ Updated July 28, 2014, to better explain how partitions improve speed.]

During the last couple of months, I’ve been testing a lot of different storage from companies like Promise Technology, G-Technology and OWC, among others. Single drives, multiple drives and RAIDs.

I’ve known for a long time that hard drive speed varies as the drive fills up. Drives are at their fastest when they are empty. As they get closer and closer to full, they slow down. What I recently realized was that RAIDs behave the same way: empty RAIDs are really fast, while full RAIDs are much slower.

This is because hard drives, which are the essential storage component of a RAID, store data to the inner (faster) tracks first, then, as the drives fill up, data is stored to the outer tracks, which are slower.

THE “SECRET SAUCE”

We can take advantage of this fact to improve the overall speed of our RAIDs by partitioning them. (We can partition individual hard drives, too, but the performance benefits are much less significant. I no longer recommend partitioning single hard drives.)

What a partition does is divide the physical storage capacity of a RAID into separate logical “chunks.” Think of this as increasing the number of drawers in a filing cabinet. The overall cabinet does not increase in size, but by increasing the number of drawers it makes it easier to access files stored in the drawers.

WHAT ARE WE ACTUALLY IMPROVING?

Whether a RAID has one or more partitions, the fastest bandwidth it will ever have is when it is empty. When a RAID has only one partition, as the drives fill up, the RAID slows down. What partitioning does is minimize the amount of slow-down when using the first (fastest) partition.

The reason this improves performance in a RAID is because the first partition always includes the fastest portions of the RAID. While additional partitions only include slower portions of the drive. While the actual method you use to create partitions varies by RAID and manufacturer, the results are easy to illustrate.

NOTE: We can create multiple partitions on the same RAID. But, in general, you only need two: one for fastest performance and one for everything else.

AN EXAMPLE

Recently, I took an OWC ThunderBay RAID and divided it into two partitions using the SoftRAID utility. (Again, remember that each drive vendor will have its own partitioning utility. Contact the support department of your RAID’s manufacturer for instructions.)

In this example, the RAID had 12 TB of total storage. I put 8 TB in the first (fastest) partition and 4 TB in the second, slower, partition. (There isn’t any big advantage to creating more than two partitions.) Then, I measured the speed of the RAID.

NOTE: I would not make the first partition smaller than 50% of the total RAID capacity, nor larger than 75%.

Here are the results of the first (fastest) partition: close to 500 MB/second for both Read and Write.

And here are the results of the second (slower) partition. There is more than 110 MB/second in speed difference between the two partitions. THAT is a lot!

BIG NOTE: You can only partition a RAID or a drive when it is empty, because partitioning erases all data currently stored on the system. Consequently, this technique is best used when configuring a new system for editing, or after copying all existing data off the RAID and temporarily storing it somewhere else.

SUMMARY

Dividing the RAID into two partitions, guarantees that the performance of the first (fastest) partition doesn’t drop as the RAID fills up, because while the partition is getting full, the drives themselves, which determine the actual speed of the system, are not.

Not all the files stored on a RAID need high-performance access. By creating two partitions, I can put files that need fast access on the first partition and files that are not speed-dependent (think compressed media files, word processing, spreadsheets, PDFs and so on) on the second partition.

I’ve currently implemented this technique on the two RAIDs in my edit suite. I’ll let you know how it works, but, so far, this works really, really well.


Bookmark the permalink.

14 Responses to Improve RAID Speed with Partitions

  1. Scot Yount says:

    Larry,
    I have two Promise Pegasus R6 RAIDS set at RAID 5. Does it make sense and is it even possible to reconfigure them both to RAID 0 and have one “mirror” the other? Is there a way to do this automatically?

    • Larry Jordan says:

      Scot:

      Whether this is technically possible would require you to contact Promise. Does it make sense? Yes, but not if a lot of extra work is involved.

      Keep in mind that you would need to transfer all the data off your existing drive in order to reformat it to this new arrangement. Once this 1+0 RAID is set up, mirroring is automatic.

      Larry

  2. David Dixon says:

    How fast was your RAID in its original, unpartitioned state? This article doesn’t really tell us how much we would gain by doing this…

    • Larry Jordan says:

      David:

      This is a REALLY good question and made me realize I need to change the text of this article to better answer it.

      Whether a RAID has one or more partitions, the fastest it will go is when it is empty. Adding a partition does not make the RAID faster than if it had no partition. What partitioning does is prevent the drive from slowing down as that first partition fills up.

      Larry

  3. Michael Pruss says:

    We suffered from the drop in performance as the disk filled up on a Promise Pegasus2 R6.
    The empty RAID-5 volume with 20 TB capacity showed 820 MB/s writespeed tested with Balckmagic.
    10 TB later we measured 640 MB/s.
    From other measurements we know that performance drops down to 440 MB/s when there is only 10% free space on the volume.
    The partitioning method does the trick to gain maximum performance for one partition, but the painful truth is, that the RAID controller is a dumb piece of software. If the data was distributed more intelligently across all disks, there would be a more stable throughput. This is a question of software design and marketing. With intelligent distribution you would not reach over 800 MB/s as your competitor does with his dumb software. Rhetorical Question: What is the better solution?

  4. Amy Croft says:

    Hi Larry,

    I wondered if you could give me some advice as a new 4K video editor entering the world of RAID.

    I’ve purchased the Lacie Rugged 4TB RAID drive and planned to set it up as RAID 0 with two partitions (both MAC Journaled). I then wanted to clone the content from partition 1 to partition 2 with the idea that this serves as a suitable backup for my data.

    Is this a god idea?

    Thanks,

    Amy

    • Larry says:

      Amy:

      No, this is not a good idea. For two reasons:

      1. A RAID 0 is the fastest configuration of a RAID, but it also means that if one hard disk inside the RAID dies, you lose ALL your data. For critical data, a RAID 5 is the best choice for spinning media, while RAID 4 is the best choice for SSDs. Either of these configurations mean that if a hard drive dies in your RAID, all your data is safe. This gives you time to replace the dead drive.

      2. Backups should never be stored on the same system as your source files. In the event of theft, fire, or physical disaster you would lose both the primary storage and backups. This is never a good strategy.

      Larry

  5. Jody C says:

    Question: Is there any way to partition a drive and then RAID 0 the partitions? Also, how are you achieving a partition of a RAID 0 on a mac when a mac doesn’t allow you to partition a RAID 0 configuration?

  6. Lee says:

    4 years have passed, am wondering on any updates in your methodology. In particular, I’m wondering how you decided to keep 33% free? Apple recommends keeping 15% free hard disk space, so did you try allocating only 2TB in the partition? Or I guess

    • Larry says:

      Lee:

      Thanks for asking – I haven’t looked at this article for a while.

      First, partitions don’t make sense if you have an SSD or Fusion drive.

      Second, all spinning media slows down as it fills with data; so there is no magic percentage. Currently, I recommend 205, but there’s nothing particularly wrong with Apple recommending 15%. Just don’t try to squeeze every last MB out of your RAID, performance will suffer as it gets close to full.

      Third, APFS is about to change the equation. For right now, even though Apple is working to put APFS on spinning media, I STRONGLY recommend against it. At the moment, APFS is optimized for SSDs and will severely degrade performance on spinning media. It is my hope this will change in the future, but for now, I urge caution – even on systems used for beta testing.

      Larry

  7. Jody C says:

    Hi Larry,

    So, I asked about partitioning a thumb drive and raiding them together back in April. So I Raided two 32 GB Thumb Drives which both had write speeds avg. 45 MB/s and Reads at 155 MB/s. After raiding, I got write speeds avg. 25 MB/s and reads up to 200 MB/s. So, I tried a little experiment. I broke the RAIDed thumb drives and I created 6 – 5 GB disk images on both drives. The drives are not raided together. I RAID 0’d all 12 disk images(6 from drive 1 and 6 from drive 2) together and created a new drive running off both thumb drives. I got write speeds of 65 MB/s and Reads of 220 MB/s. These are USB 3.0 SanDisk Drives. Pretty interesting. I wonder if larger images, say 2 – 15 GB on each drive striped together will improve the performance. Or raiding more images over 4 drives vs. two, etc.

    • Larry says:

      Jody:

      The problem you are running into is not the RAID, per se, but the speed of a USB 3.0 bus. Your write speeds are about at the limit of what that version of USB supports.

      In general, an SSD drive will be limited by bus speed more than the speed of the device itself.

      Larry

      • Jody C says:

        Well, I made 2 – 15 GB disk images for 1- 32 GB dirive and 2 for the other 32 GB drive and raided the images together. As compared to the 5 GB images raided together which gave me 65 Writes MB/s and 220 MB/s reads, the 4 raided 15GBs images raided across two drives . gave me 75 MB/s writes and 240 MB/s reads. So now I am going to try the full 30 GB images on both drives. Also, I was looking at external SSD’s yesterday and came across several that gave and average of 500 MB/s read and writes using the USB 3.0. USB 3.0 can theoretically top out at 640 MB/s. So if the SSD can truly give those speeds using 3.0 bus, then I think the read/writes of thumb drives are maxed out by their internal hardware. For example, my 124 GB thumb drive read/writes 70/165 at normal whereas both 32GB thumb drives read/writes 45/155 normal. I would say that the 4- 15 GB images raided across the two 32 GB drives which gave 75/240 is a big improvement over the 45/155 and the 25/200 when the actual drives were raided together in 0. Speed test were done using Black Magic.

        Jody

Leave a Reply to Larry Cancel reply

Your email address will not be published. Required fields are marked *

Larry Recommends:

FCPX Complete

NEW & Updated!

Edit smarter with Larry’s latest training, all available in our store.

Access over 1,900 on-demand video editing courses. Become a member of our Video Training Library today!

JOIN NOW

Subscribe to Larry's FREE weekly newsletter and save 10%
on your first purchase.