Full text
This paper is included in the Proceedings of the 12th USENIX Conference on File and Storage Technologies (FAST ’14). February 17–20, 2014 • Santa Clara, CA USA ISBN 978-1-931971-08-9 Open access to the Proceedings of the 12th USENIX Conference on File and Storage Technologies (FAST ’14) is sponsored by CRAID: Online RAID Upgrades Using Dynamic Hot Data Reorganization Alberto Miranda, Barcelona Supercomputing Center (BSC-CNS); Toni Cortes, Barcelona Supercomputing Center (BSC-CNS) and Technical University of Catalonia (UPC) https://www.usenix.org/conference/fast14/technical-sessions/presentation/miranda
USENIX Association 12th USENIX Conference on File and Storage Technologies 133 CRAID: Online RAID Upgrades Using Dynamic Hot Data Reorganization A. Miranda§, T. Cortes§‡ §Barcelona Supercomputing Center (BSC–CNS) ‡Technical University of Catalonia (UPC) Abstract Current algorithms used to upgrade RAID arrays typically require large amounts of data to be migrated, even those that move only the minimum amount of data required to keep a balanced data load. This paper presents CRAID , a self-optimizing RAID array that performs an online block reorganization of frequently used, long-term accessed data in order to reduce this migration even further. To achieve this objective, CRAID tracks frequently used, long-term data blocks and copies them to a dedicated partition spread across all the disks in the array. When new disks are added, CRAID only needs to extend this process to the new devices to redistribute this partition, thus greatly reducing the overhead of the upgrade process. In addition, the reorganized access patterns within this partition improve the array’s performance, amortizing the copy overhead and allowing CRAID to offer a performance competitive with traditional RAIDs. We describe CRAID ’s motivation and design and we evaluate it by replaying seven real-world workloads including a file server, a web server and a user share. Our experiments show that CRAID can successfully detect hot data variations and begin using new disks as soon as they are added to the array. Also, the usage of a dedicated partition improves the sequentiality of relevant data access, which amortizes the cost of reorganizations. Finally, we prove that a full-HDD CRAID array with a small distributed partition ( < 1.28% per disk) can compete in performance with an ideally restriped RAID-5 and a hybrid RAID-5 with a small SSD cache. 1 Introduction Storage architectures based on R edundant A rrays of Independent Disks (RAID) [36, 10] are a popular choice to provide reliable, high performance storage at an acceptable economic and spatial cost. Due to the ever-increasing demand of storage capabilities, however, applications often require larger storage capacity or higher performance, which is normally achieved by adding new devices to the existing RAID volume. Nevertheless, several challenges arise when upgrading RAID arrays in this manner: 1. To regain uniformity in the data distribution, certain blocks must be moved to the new disks. Traditional approaches that try to preserve the round-robin order [ 15 , 7 , 49 ] end up redistributing large amounts of data between old and new disks, regardless of the number of new and old disks. 2. Alternative methods that migrate a minimum amount of data, can have problems to keep a uniform data distribution after several upgrade operations (like the Semi-RR algorithm [ 13 ]) or limit the array’s performance (GSR [47]). 3. Existing RAID solutions with redundancy mechanisms, like RAID-5 and RAID-6, have the additional overhead of recalculating and updating the associated parities, as well as the necessary metadata updates associated to stripe migration. 4. RAID solutions are widely used in online services where clients and applications need to access data constantly. In these services, the downtime cost can be extremely high [ 35 ], and thus any strategy to upgrade RAID arrays should be able to interleave its job with normal I/O operations. To address the challenges above, in this paper we propose a novel approach called CRAID , whose purpose is to minimize the overhead of the upgrade process by redistributing only “relevant data” in real-time. To do that, CRAID tracks data that is currently being used by clients and reorganizes it in a specific partition. This partition allows the volume to maintain the performance and distribution uniformity of the data that is actually being used by clients and, at the same time, significantly reduce the amount of data that must be migrated to new devices. Our proposal is based on the notion that providing good levels of performance and load balance for the current working set suffices to preserve the QoS 1 of the RAID array. This notion is born from the following observations about long-term access patterns in storage: (i) data in a storage system displays a non-uniform access frequency distribution: when considering coarse-granularity time spans, “frequently accessed” data is usually a small fraction of the total data; (ii) this active data set exhibits longterm temporal locality and is stable, with small amounts of data losing or gaining importance gradually; (iii) even 1 In this paper, the term QoS refers to the performance and load distribution levels offered by the RAID array.
134 12th USENIX Conference on File and Storage Technologies USENIX Association Trace Year Workload Reads (GB) Writes (GB) R/W Total accessed Accesses to Total Unique Total Unique ratio data (GB) Top 20% data cello99 1999 research 73.73 10.52 129.91 10.92 0.62 203.65 65.77% deasna 2002 research/email 672.4 23.32 231.57 45.45 2.54 903.97 86.88% home02 2001 NFS share 269.29 9.07 66.35 4.49 3.94 335.64 61.36% webresearch 2009 web server – – 3.37 0.51 – 3.37 51.33% webusers 2009 web server 1.16 0.45 6.85 0.50 0.09 8.01 56.17% wdev 2007 test server 2.76 0.2 8.77 0.42 0.21 11.54 72.44% proj 2007 file server 2152.74 1238.86 367.05 168.88 7.33 2519.79 57.64% Table 1: Summary statistics of 1-week long traces from seven different systems. within the active data set, usage is heavily skewed, with “really popular” data receiving over 90% accesses [29]. These observations are largely intuitive and similar to the findings on short-term access patterns of other researchers [ 14 , 20 , 38 , 2 , 37 , 42 , 41 , 5 ]. To our knowledge, however, there have not been any attempts to apply this information to the upgrade process of RAID arrays. This paper makes the following contributions: we prove that using a large cache-like partition that uses all storage devices can be better than using dedicated devices due to the improved parallelism, in some cases even when the dedicated devices are faster. Additionally, we demonstrate that information about hot data can be used to reduce the overhead of rebalancing a storage system. The paper is organized as follows: (i) we study the characteristics of several I/O workloads and show how the findings motivate CRAID ( § 2), (ii) we present the design of an online block reorganization system that adapts to changes in the I/O working set ( § 3), (iii) we evaluate several well-known cache management algorithms and their effectiveness in capturing long-term access patterns ( § 4), and (iv) we simulate CRAID under several real-system workloads to evaluate its merits and weaknesses (§5). 2 Characteristics of I/O Workloads In this section we investigate the characteristics of several I/O workloads, focusing on those properties that directly motivate CRAID . In order for CRAID to be successful, the cost of reorganizing data must be lower than the potential gain obtained from the improved distribution, or it would not make sense to reorganize this data. Thus, we need to prove that long-term working sets exist and that they account for a large fraction of I/O. To do that, we analyzed a collection of well-known traces taken from several real systems. To increase the scope of our analysis, we use traces representing many different workloads and collected at different points in time over the last 13 years. Even if some of these traces are rather old, they can be helpful to establish a historical perspective on long-term hot data. Table 1 summarizes key statistics for one week of these traces, which we describe in detail below: • The cello99 traces are a set of well-known block-level traces used in many storage-related studies [ 22 , 34 , 46 , 51 ]. Collected at HP Labs in 1999, they include one year of I/O workloads from a research cluster. • The deasna traces [ 12 ] were taken from the NFS system at Harvard’s Department of Engineering and Applied Sciences over the course of six weeks, in mid-fall 2002. Workload is a mix of research and email. • The home02 traces [ 12 ] were collected in 2001 from one of fourteen disk arrays in the Harvard CAMPUS NFS system. This system served over 10,000 school and administration accounts and consisted of three NFS servers connected to fourteen 53GB disk arrays. The traces collect six weeks worth of I/O operations. • The MSRC traces [ 31 ] are block-level traces of storage volumes collected over one week at Microsoft Research Cambridge data center in 2007. The traces collected I/O requests on 36 volumes in 13 servers (179 disks). We use the wdev and proj servers, a test web server (4 volumes) and a server of project files (5 volumes), as they contain the most requests. • The SRCMap traces are block-level traces collected by the Systems Research Laboratory (SyLab) at Florida International University in 2009 [ 41 ]. The traces were collected for three weeks at three production systems with several workloads. We use the webresearch and webusers workloads as they include the most requests. The first was an Apache web server managing FIU research projects, and the second a web server hosting faculty, staff, and graduate student web sites. Our analysis of the traces shows that the following observations are consistent across all traces and, thus, validate the theoretical applicability of CRAID. Obs. 1 Data usage is highly skewed with a small percentage of blocks being heavily accessed. Fig. 1 (top row), shows the CDF for block access frequency for each workload. All traces show that the distribution of access frequencies is highly skewed: for read
USENIX Association 12th USENIX Conference on File and Storage Technologies 135 (a) cello99 (b) deasna (c) home02 (d) webresearch (e) webusers (f) wdev (g) proj Figure 1: Block-frequency and working-set overlap for 1-week traces from seven different systems. The top row plots depict the CDF of block accesses for different frequencies: a point (f,p1) on the block percentage curve indicates that p1 % of total blocks were accessed at most f times. Bottom row plots depict changes in the daily working-sets of the workloads: a bar (d,p2) indicates that days d and d +1had p2% blocks in common. This is shown for all blocks and for the 20% blocks receiving more accesses. requests ≈76–98% blocks are accessed 50 times or less, while for write requests this value rises to ≈89–98% . On the other hand, a small fraction of blocks ( ≈0.05–0.7% ) is very heavily accessed in all cases (read or write requests). This skew can also be seen in Table 1: the top 20% most frequently accessed blocks account for a large fraction ( ≈51–83% ) of all accesses, which are similar results to those reported in previous studies [14, 24, 5, 41, 29]. Obs. 2 Working-sets remain stable over long durations. Based on the first observation, we hypothesize that data usage exhibits long-term temporal locality. By long-term, we refer to a locality of hours or days, rather than seconds or minutes which is more typical of memory accesses. It is fairly common for a developer to work on a limited number of projects or for a user to access only a fraction of his data (like personal pictures or videos) over a few days or weeks. Even in servers, the popularity of the data accessed may result in long-term temporal locality. For instance, a very popular video uploaded to the web will receive bursts of accesses for several weeks or months. Fig. 1 (bottom row), depicts the changes in the daily working-sets for each of the workloads. Each bar represents the percentage of unique blocks that are accessed both in day d and d+ 1. Most workloads show a significant overlap ( ≈55%–80% ) between the blocks accessed in immediately successive days, and we also observe that there is a substantial overlap even when considering the top 20% most accessed blocks. Trace deasna is particularly interesting because it shows low values of overlap ( ≈20%–35% ) when considering all accesses, which increases to ≈55%–80% for the top 20% blocks. This means that the working-set for this particular workload is more diverse but still contains a significant amount of heavily reused blocks. Based on the observations above, it seems reasonable that exploiting long-term temporal
136 12th USENIX Conference on File and Storage Technologies USENIX Association locality and non-uniform access distribution can deal performance benefits. CRAID ’s goal is to use these to amortize the cost of data rebalancing during RAID upgrades. 3 CRAID Overview The goal behind CRAID is to reduce the amount of data that needs to be migrated in reconfigurations while providing QoS levels similar to those of traditional RAID. CRAID claims a small portion of each device and uses it to create a cache partition ( P C ) that will be used to place copies of heavily accessed data blocks. The aim of this partition is to separate data that is currently important for clients from data that is rarely (if ever) used. Data not currently being accessed is kept in an archive partition ( PA ) that uses the remainder of the disks. Notice that this partition can be managed by any data allocation strategy, but it is important that the archive can grow gracefully and any archived data is accessed with acceptable performance. Effectively optimizing the layout of heavily used blocks within a small partition is beneficial for several reasons: (i) It is possible to create a large cache by using a small fraction of all available disks, which allows important data to be cache-resident for longer periods. (ii) A disk-based cache is a persistent cache: any optimized layout continues to be valid as long as it is warranted by access semantics, even if it is necessary to shutdown or reconfigure the storage system. (iii) The size of the partition can be easily configured by an administrator or an automatic process to better suit storage demands. (iv) Clustering frequently accessed data together offers the opportunity to improve access patterns: data accesses that were originally scattered can be sequentialized if the layout is appropriate. This also helps reduce seek times and rotational delays in all disks since “hot” blocks are placed close to each other. (v) Whenever new devices are added, current strategies need to redistribute large amounts of data to be able to use them effectively and also to maintain QoS levels (e.g. performance or load balance). A disk-based cache offers a unique possibility to maintain QoS by redistributing only most accessed data. This should reduce the cost of the upgrade process significantly. (vi) Extending the partition over all devices has three advantages over using dedicated devices. First, it maximizes the potential parallelism offered by the storage system. Second, it is much more likely to saturate a reduced set of dedicated devices than a large array. Third, benefits can be gained with the existing set of devices, without having to acquire more. I/O MONITOR I/O REDIRECTOR LBAorig LBAcache LBAorig LBAcache LBAorig LBAcache MAPPING CACHE I/O request update lookup P A P→ C copy send I/O to P C CRAID A B.1 B.2 C.2 P C P→ A update D C.1 Storage Devices Figure 2: CRAID’s I/O control flow. Fig. 2 shows the control flow supported by CRAID ’s architecture: when an I/O request enters the system (A), it is captured by CRAID ’s I/O monitor which determines if the accessed data must be considered “active”. If so, data blocks are copied to the caching partition if they are not already in it (B.1) and an appropriate mapping LBAoriginal,LBAcache is stored in the mapping cache (B.2). From this point on, an I/O redirector will redirect all future accesses to LBAoriginal to the caching partition (C.1 and C.2). This continues until the I/O monitor decides that data is no longer active and removes the entry from the mapping cache. Any update to the contents of the data is then written back to PA (D). This flow means that the upgrade process begins immediately when a new disk is added to CRAID (which forces P C to grow), and is interleaved with the array’s normal I/O operation. This permits CRAID to use the new disks from the moment they are added to the array. 4 Detailed Design This section elaborates on CRAID ’s design details by discussing its individual components mentioned in § 3: the I/O monitor, the I/O redirector and the mapping cache. 4.1 I/O Monitor The I/O monitor is responsible for analyzing I/O requests to identify the working set and schedule the appropriate operations to copy data between partitions. The I/O monitor uses a conservative definition of working set that includes the latest k distinct blocks that have been more active, where kis P C’s current capacity. When a request forces an eviction in P C , the I/O monitor checks if the cached copy is dirty and, if so, schedules the corresponding I/O operations to update the original data. Otherwise, the data is replaced by the newly cached block. Currently, the I/O monitor supports the following simple policies in order to make replacement decisions: • Least Recently Used (LRU) uses recency of access to decide if a block has to be replaced.
USENIX Association 12th USENIX Conference on File and Storage Technologies 137 • Least Frequently Used with Dynamic Aging (LFUDA) uses popularity of access and replaces the block with the smallest key Ki=(Ci∗Fi)+L , where Ci is the retrieval cost, Fi is a frequency count and L is a running age factor that starts at 0 and is updated for each replaced block [3]. • Greedy-Dual-Size with Frequency (GDSF) includes the size of the original request, Si , and replaces the block with minimum Ki=(Ci∗Fi)/Si+L[21, 9, 3]. • Adaptive Replacement Cache (ARC) [ 28 ] balances between recency and frequency in an online and selftuning fashion. ARC adapts to changes in the workload by tracking ghost hits (recently evicted entries) and replaces either the LRU or LFU block depending on recent history. • Weighted LRU (WLRU w ) is a simple extension of the LRU algorithm that tries to find the least recently used block that is also clean (i.e. not dirty). In order to avoid lengthy O(k) traversals it uses a parameter w∈R to limit the number of blocks that will be evaluated to k∗w . If no suitable candidate is found in k∗w steps, the LRU block is replaced. We evaluate the effectiveness of these basic strategies to accurately predict the workload in § 5.1. We implemented these basic strategies instead of more complex ones because these algorithms are typically extremely efficient and consume few resources, which makes them suitable to be included in a RAID controller. Furthermore, their prediction rates are usually quite high. Exploring more sophisticated strategies and/or data mining approaches to model complex data interrelations is left for the future. The I/O monitor is also in charge of rebalancing P C . When new devices are added, the I/O monitor invalidates all the blocks contained in P C (writing back to PA the copies that need updating) and starts filling it with the current working set when blocks are requested. This conservative approach allows us to create long sequential chains of potentially related blocks, which improves the sequentiality and parallelism of the data in P C . Note that since P C always holds ‘hot blocks’, the rebalancing is never completely finished unless the working set remains stable for a long time. Nevertheless, as we show in § 5, the cost of this ‘on-line’ monitoring and rebalancing is amortized by the performance obtained. 4.2 Mapping Cache The mapping cache is an in-memory data structure used to translate block addresses in the PA to their corresponding copies in P C . The structure stores, for each block copied to P C , the block’s LBA in PA , the corresponding LBA in P C and a flag indicating if the cached copy has been modified. Our current implementation uses a tree-based binary structure to handle mappings, which ensures that the total time complexity for a lookup operation is given by O(log k) . Concerning memory, for every block in P C , CRAID stores 4 bytes for each LBA and 1 dirty bit, plus 8 additional bytes for the structure pointer. Assuming that all k blocks are occupied, that the configured block size is 4KB and P C size of S GB, the worst case memory requirement is 2×S MB for LBAs, S/25 for the dirty information, and 4×S MB for the tree pointers. Thus, in the worst case, CRAID requires memory of 0.58% the size of the cache partition, or ≈ 5.9MB per GB, an acceptable requirement for a RAID controller. Notice that the destruction of the mapping cache can lead to data loss since block updates are performed in place in the cache partition. Failure resilience of the mapping cache is provided by maintaining a persistent log of which cached data blocks have been modified and their translations. This ensures that these blocks, whose cached copies were not identical to the original data, can be successfully recovered. Blocks that were not dirty in P C don’t need to be recovered and are invalidated. 4.3 I/O Redirector The I/O redirector is responsible for intercepting all read and write requests sent to the CRAID volume and redirect them to the appropriate partition. For each request, it first checks the mapping cache for an existing cached copy. If none is found, the request is served from PA . Otherwise, the request is dispatched to the appropriate location in P C . Multi-block I/Os are split as required. 5 Evaluation In this section we evaluate CRAID ’s behavior using a storage simulator. We seek to answer the following questions: (1) How well does CRAID capture working sets? (2) How does CRAID impact performance? (3) How sensitive is load balance to CRAID ’s I/O redirection? To answer these questions, we evaluate CRAID under realistic workloads, using detailed simulations where we replay the real-time storage traces described in § 2. Since some of these traces include data collected over several weeks or months, which makes them intractable for fine-grained simulations, we simulate an entire continuous week (168 hours) chosen at random from each dataset. Note that in this paper, we only describe the evaluations of several CRAID variants that use RAID-5 in P C . For brevity’s sake, we do not include similar results with RAID-0 [4]. Simulation system. The simulator consists of a workload generator and a simulated storage subsystem composed of
138 12th USENIX Conference on File and Storage Technologies USENIX Association 0 1 p0 2 3 p1 5p3 6 7 p4 8 p6 10 11 p7 12 13 15 16 p9 17 18 p10 4p2 p5 9 14 p8 p11 19 Disk 0 Disk 1 Disk 2 Disk 3 Disk 4 Disk 5 Disk 6 Disk 7 parity group 0 parity group 1 parity group 2 (a) RAID-5 0 1 2 3 p0 16 4 5 6 p1 718 8 9 p2 10 11 p6 12 p3 13 14 15 22 17 p5 20 23 p4 19 21 p7 RAID set 0 RAID set 1 Disk 0 Disk 1 Disk 2 Disk 3 Disk 4 Disk 5 Disk 6 Disk 7 (b) RAID-5+ 2 3 p0' 7 9 p1' 12 p3' 13 14 p4' 0 1 p0 2 3 p1 5p3 67p4 8 10 p2' 4p2 p5 9 p6 10 11 p7 12 13 14 p8 parity group 0 parity group 1 parity group 2 parity group 0' parity group 1' parity group 2' cache partition archive partition Disk 0 Disk 1 Disk 2 Disk 3 Disk 4 Disk 5 Disk 6 Disk 7 (c) CRAID-5 2 3 p0' 7 9 p1' 12 p3' 13 17 p4' 0 1 2 3 p0 12 4 5 6 p1 714 10 p2' 13 p3 p4 15 89p2 10 11 p5 16 17 parity group 0' parity group 1' parity group 2' cache partition archive partition Disk 0 Disk 1 Disk 2 Disk 3 Disk 4 Disk 5 Disk 6 Disk 7 RAID set 0 RAID set 1 (d) CRAID-5+ 2 3 7 9 p0' 12 13 14 p1' 17 0 1 p0 2 3 p1 5p3 67p4 8 4p2 p5 9 p6 10 11 p7 12 13 14 p8 parity group 0 parity group 1 parity group 2 dedicated cache partition archive partition Disk 0 Disk 1 Disk 2 Disk 3 Disk 4 15 16 p9 17 18 p10 p11 19 Disk 5 Disk 6 Disk 7 Disk 8 Disk 9 Disk 10Disk 11Disk 12 (e) CRAID-5ssd 2 3 7 9 p0' 12 13 14 p1' 17 0 1 2 3 p0 16 4 5 6 p1 718 17 p4 p5 19 89p2 10 11 p6 20 21 dedicated cache partition archive partition Disk 0 Disk 1 Disk 2 Disk 3 Disk 4 12 p3 13 14 15 22 23 p7 Disk 5 Disk 6 Disk 7 Disk 8 Disk 9 Disk 10Disk 11Disk 12 RAID set 0 RAID set 1 (f) CRAID-5+ ssd Data Hot Data Parity Figure 3: Overview of the different allocation policies evaluated. an array controller and appropriate storage components. For each request recorded in the traces, the workload generator issues a corresponding I/O request at the appropriate time and sends it down to the array controller. The array controller’s main component is the I/O processor which encompasses the functions of both the I/O monitor and the I/O redirector. According to the incoming I/O address, it checks the mapping cache and forwards it to the caching partition’s segment of the appropriate disk. The workload generator, the mapping cache and the I/O processor are implemented in C++, while the different storage components are implemented in DiskSim. DiskSim [ 8 ] is an accurate and thoroughly validated disk system simulator developed in the Carnegie Mellon University, which has been used extensively in research projects to study storage architectures [1, 32, 50, 25]. All experiments use a simulated testbed consisting of Seagate Cheetah 15,000 RPM disks [ 39 ], each with a capacity of 146GB and 16MB of cache. This is the latest (validated) disk model available to Disksim. Though somewhat old, we decided to use these disks in order to use the detailed simulation model offered by Disksim, rather than a less detailed one. Besides, since our analysis is a comparative one, the disks’ performance should benefit or harm all strategies equally. For the simulations involv- Trace LRU LFUDA GDSF ARC WLRU0.5 cello99 65.23 65.23 48.75 65.66 65.22 deasna 89.63 89.90 67.24 89.65 89.73 home02 93.91 93.86 77.93 93.92 93.90 webresearch 81.14 78.92 54.41 82.38 82.14 webusers 80.40 78.72 60.49 81.01 81.40 wdev 91.04 91.88 32.78 91.06 91.02 proj 75.55 75.73 25.43 75.58 75.65 Table 2: Hit ratio (%) for each cache partition management algorithm. Best and second best shown in bold. ing SSDs, we use Microsoft Research’s idealized SSD model [ 1 ]. Since the capacity and number of disks in the original traced systems differs from our testbed, we determine the datasets for each trace via static analysis. These datasets are mapped onto the simulated disks uniformly so that all disks have the same access probability. Strategies evaluated. All experiments evaluate the six following allocation policies, an overview of which is shown in Fig. 3: •RAID-5: A RAID-5 configuration that uses all disks available. Stripes are as long as possible but are divided into parity groups to improve the robustness and recov-
USENIX Association 12th USENIX Conference on File and Storage Technologies 139 Trace LRU LFUDA GDSF ARC WLRU0.5 cello99 34.76 34.76 51.24 34.31 33.76 deasna 10.36 10.09 32.74 10.34 10.34 home02 6.08 6.13 22.06 6.07 6.08 webresearch 18.84 21.06 45.58 17.60 18.83 webusers 19.58 21.26 39.50 18.98 19.28 wdev 8.88 8.04 67.13 8.85 8.58 proj 24.42 24.24 74.55 24.39 24.72 Table 3: Replacement ratio (%) for each cache partition management algorithm. Best and second best in bold. erability of the array (Fig. 3a). This policy will help establish a comparison baseline as it provides maximum parallelism and ideal workload distribution. Notice, however, that expanding such an array in real life can be prohibitively expensive. •RAID-5+: A RAID-5 configuration that has been expanded and restriped several times. Each expansion phase adds 30% additional disks [ 27 ] that constitute a new independent RAID-5. Thus the system can be considered a collection of independent RAID-5 arrays (or sets), each with its own stripe size, that have been added to expand the storage capacity (see Fig. 3b). This serves as a comparison baseline to a realistic system upgraded many times. •CRAID-5 and CRAID-5+:CRAID configurations that use RAID-5 for the caching partition. CRAID-5 also uses RAID-5 for the archive partition while CRAID-5+ uses RAID-5+ . The first one serves to evaluate the performance impact of using CRAID on an ideally restriped RAID-5 and the effects on performance of data transfers from/to the cache. With the second one, we evaluate the benefits of using CRAID in a storage system that has grown several times, with aPAthat grows by aggregation. •CRAID-5ssd and CRAID-5+ ssd: CRAID configurations analogous to CRAID-5 and CRAID-5+ but using a fixed number of SSDs for the cache partition. This allows us to evaluate the advantages, if any, of using diskbased CRAID against using dedicated SSDs, which is a common solution offered by storage vendors. We simulate RAID-5 and RAID-5+ in their ideal state, i.e., when the dataset has been completely restriped. The reason is that since CRAID is permanently in an “expansion” phase and sacrifices a small amount of capacity, in order to be useful its performance should be closer to an optimum RAID-5 array, rather than one being restriped. All the arrays simulated use 50 disks, a number chosen based on the datasets of the traces examined, except those for CRAID-5ssd and CRAID-5+ ssd that include 5 additional SSDs (10%) for the dedicated cache. RAID-5 uses a parity group size of 10 disks both as a stand-alone 0 2 4 6 8 10 12 14 0.02 0.04 0.08 0.16 0.32 response time (ms) cache size (% per disk) (a) cello99 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.08 0.16 0.32 0.64 1.28 response time (ms) cache size (% per disk) (b) deasna 0 1 2 3 4 5 6 7 8 0.02 0.04 0.08 0.16 0.32 response time (ms) cache size (% per disk) (c) home02 0 0.2 0.4 0.6 0.8 1 1.2 1.4 0.004 0.008 0.016 0.032 0.064 response time (ms) cache size (% per disk) (d) webusers 0 1 2 3 4 5 6 0.002 0.004 0.008 0.016 0.032 response time (ms) cache size (% per disk) (e) wdev 0 0.5 1 1.5 2 2.5 3 3.5 4 0.016 0.032 0.064 0.128 0.256 response time (ms) cache size (% per disk) (f) proj RAID-5 RAID-5+ CRAID-5 CRAID-5+ CRAID-5ssd CRAID-5ssd + Figure 4: Comparison of I/O response time (read requests). allocation policy and as a part of a CRAID configuration. Similarly, RAID-5+ begins with 10 disks and adds a new array of 3, 4, 5, 7, 9 and 12 disks (+30%) in each expansion step until the 50-disk mark is reached. The stripe unit for all policies is 128KB based on Chen’s and Lee’s work [ 11 ]. In all experiments, the cache partition begins in a cold state. 5.1 Cache Partition Management Here we evaluate the effectiveness to capture the working set of the different cache algorithms supported by the I/O monitor (refer to § 4.1). In this experiment we are concerned with the ideal results of the prediction algorithms to select the best one for CRAID . Thus, we use a simplified disk model that resolves each I/O instantly, and allows us to measure the properties of each algorithm with no interferences. The remaining experiments use the more realistic disk model. Tables 2 and 3 show, respectively, the hit and replacement ratio delivered by each algorithm using a P C size of 0.1% the weekly working set. We observe that, for each trace, all algorithms except one show similar hit and re-
140 12th USENIX Conference on File and Storage Technologies USENIX Association (a) cello99 (b) webusers Figure 5: Sequential access distribution (CDF) for the cello99 and webusers traces. Sequentiality percentages captured each second. Other traces show similar results. placement ratios with the ARC algorithm showing the best results in both evaluations. The only exception is the GDSF algorithm, which shows significantly worse results due to the addition of the request size as a metric which does not seem very useful in this kind of scenario. For CRAID strategies based on RAID-5, however, evictions of clean blocks are preferred as long as the effectiveness of the algorithm is not compromised. This is because evicting a dirty block forces CRAID to update the original blocks and its parity in the PA , which requires 4 additional I/Os (2 reads and 2 writes). In this regard, the WLRU strategy is more suitable since it helps reduce the number of I/O operations needed to keep consistency: if the data block replaced has not been modified, there’s no need to copy it back to PA . Thus, in the following experiments we configure the I/O monitor with the WLRU 0.5 algorithm since it shows hit and replacement ratios similar to ARC, and reduces the amount of dirty evictions. 5.2 Response Time In this section we evaluate the performance impact of using CRAID . For each allocation policy and configuration, we measure the response time of each read and write request occurred during the simulations. Figs. 4 and 6 show the response time measurements 2 of each CRAID variant, 295% confidence interval. compared to the RAID-5 and RAID-5+baselines. Note that each strategy was simulated with different cache partition sizes in order to estimate the influence of this parameter on performance. In the results shown in this section, the cache partition is successively doubled until no evictions have to be performed. This represents the best case for CRAID since data movement between the partitions is reduced to a minimum. Read requests. The results for read requests are shown in Fig. 4. First, we observe that requests take notably longer to complete in RAID-5+ than in RAID-5 in all cases. This is to be expected since the longer stripes in RAID-5 increase its potential parallelism and provide a more effective workload distribution. Second, in most traces, hybrid strategies CRAID-5 and CRAID-5+ offer performance comparable to that of an ideal RAID-5, or even better for certain cache sizes (e.g. webusers trace, Fig. 4d). The explanation lies in the fact that CRAID ’s cache partition is able to better exploit the spatial locality available in commonly used data: colocating hot data in a small area of each disk helps reduce seek times when compared to the same data being randomly spread over the entire disk, and also increases the sequentiality of access patterns. This can be seen in Fig. 5, that shows the probability distribution (CDF) of the sequential access percentage for the cello99 and webusers traces (computed as #Seq Access #Accesses and aggregated per second of simulation). Here we see that access sequentiality in CRAID-5 and CRAID-5+ is similar to that of RAID-5 and significantly better than that of RAID-5+ . This helps reduce the response time per request and contributes to the overall performance of the array. Nevertheless, CRAID ’s effectiveness depends on how well hot data is predicted. Despite the good results shown in § 5.1, Fig. 4f shows that performance results for the proj trace are not as good as in the other traces. Table 4 shows that CRAID ’s best hit ratio for the proj trace is lower than in other traces (e.g. 85.25% vs. 99.51% in home02 ) and that its eviction count is higher. These two factors contribute to more data being transferred to the cache partition and explain the drop in performance. Most interestingly, the performance and sequentiality provided by CRAID-5+ is similar to that of CRAID-5 , even though it uses a RAID-5+ strategy for the archive partition. This proves that the cache partition is absorbing most of the I/O, and the array behaves like an ideal RAID-5, regardless of the strategy used for stale data. Third, increasing the size of the cache partition improves read response times in all CRAID-5 variants. This is to be expected since a larger cache partition increases the probability of a cache hit and also decreases the number of evictions, which greatly improves the effectiveness of the strategy. In most traces, however, once a certain partition