Friday January 20, 2006 | cn=Directory Manager All about Directory Server |
The Importance of RAIDIt's been over a week since my last post, but I've been pretty busy since then, working with a customer to investigate a particularly large deployment. It was so large, in fact, that we weren't sure if we'd have the disk space to hold the database. Although we have a pretty impressive lab, especially given that it's primarily used for development, testing, and performance analysis, it's not quite as fancy as you can find in the iForce Customer Benchmarking Centers. It would have been great if we had a StorEdge 9990 System or something in that range, but we have much more modest arrays.A common adage in storage goes something like "space, performance, and redundancy: pick any two". That is, in order to get two of them you have to sacrifice the third. Normally, we like to use RAID 1+0 (in which pairs of disks are mirrored, and then those mirrors are striped together). This is great for performance and redundancy, but it means that you only get the space of half the disks. In our largest arrays, RAID 1+0 only gives us a little over 800GB and we were concerned that might not be enough for our tests. As such, we had a decision to make -- either go with RAID 0 (create a stripe across all the disks, which is fast and big but offers no redundancy) or RAID 5 (use striping with parity to get the storage of all but one of the disks while still retaining the ability to survive a disk failure, although at a performance hit). Our expert lab administrators wisely chose RAID 5, and while there was a significant performance penalty the redundancy paid off because we actually did lose a disk during the import but were able to continue without losing anything. The additional overhead of maintaining parity was a small price to pay compared with having to re-start the import. In this case, we were constrained to currently-available production-quaility hardware and software. However, in the future ZFS will provide a great alternative. Because ZFS offers compression at the filesystem level, and because directory data compresses pretty well, we can get more space out of the same disks and therefore RAID 1+0 will be an option more of the time. And because compression often provides better performance because there's less I/O involved, it's a win-win situation. Posted by cn_equals_directory_manager ( Jan 20 2006, 12:19:16 AM CST ) Permalink Comments [4] Post a Comment: Comments are closed for this entry. |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Posted by Jeff Bonwick on January 20, 2006 at 03:04 AM CST #
If RAID-Z were able to provide both the space of RAID-5 and performance of RAID 1+0 (including in a failure state), then that would be a truly impressive feat. I can't see how that would be possible, but it also wouldn't be the first time that ZFS has shown counter-intuitive performance results where it can still be faster in the face of doing more work (e.g., compression and checksums).
Posted by Neil Wilson on January 20, 2006 at 12:36 PM CST #
Posted by Jaime Cardoso on January 20, 2006 at 06:14 PM CST #
In this particular case, we tested multiple directory sizes, with the smallest one taking about 210GB of disk space. The largest system that we have in our lab is the Sun Fire 6800 with 192 GB of memory, so there will always be parts of the database that won't be in memory. In that case, whenever something is requested that isn't in memory, it will perform a random disk read. It doesn't take many of those to fully saturate your storage.
Posted by Neil Wilson on January 20, 2006 at 07:03 PM CST #