On the Impact of Garbage Collection on flash-based SSD endurance

Similar documents
Prudhoe Bay Oil Production Optimization: Using Virtual Intelligence Techniques, Stage One: Neural Model Building

Urban OR: Quiz 2 Solutions (2003) ( 1 ρ 1 )( 1 ρ 1 ρ 2 ) ( 1 12 )( ) σ S ] 24 [ 2 = 60, 2 2 ] ( 2 ) 3

If you need to reinstall FastBreak Pro you will need to do a complete reinstallation and then install the update.

Experimental Characterization and Modeling of Helium Dispersion in a ¼-Scale Two-Car Residential Garage

ISOLATION OF NON-HYDROSTATIC REGIONS WITHIN A BASIN

Wind Flow Model of Area Surrounding the Case Western Reserve University Wind Turbine

Queue analysis for the toll station of the Öresund fixed link. Pontus Matstoms *

The Intrinsic Value of a Batted Ball Technical Details

Decision Trees. Nicholas Ruozzi University of Texas at Dallas. Based on the slides of Vibhav Gogate and David Sontag

Efficient Minimization of Routing Cost in Delay Tolerant Networks

Chapter 5 5. INTERSECTIONS 5.1. INTRODUCTION

Autodesk Moldflow Communicator Process settings

Flow and Mixing in the Liquid between Bubbles

A Game Theoretic Study of Attack and Defense in Cyber-Physical Systems

Verification and Validation Pathfinder Release 0730 x64

Transitional Steps Zone in Steeply Sloping Stepped Spillways

WESEP 594 Research Seminar

Traffic flow optimization at sags by controlling the acceleration of some vehicles

Mixture Models & EM. Nicholas Ruozzi University of Texas at Dallas. based on the slides of Vibhav Gogate

Generating Calibration Gas Standards

Numerical Simulations of a Three-Lane Traffic Model Using Cellular Automata. A. Karim Daoudia and Najem Moussa

In memory of Dr. Kevin P. Granata, my graduate advisor, who was killed protecting others on the morning of April 16, 2007.

Tokyo: Simulating Hyperpath-Based Vehicle Navigations and its Impact on Travel Time Reliability

A SEMI-PRESSURE-DRIVEN APPROACH TO RELIABILITY ASSESSMENT OF WATER DISTRIBUTION NETWORKS

Optimizing Cyclist Parking in a Closed System

The Use of ILI In Dent Assessments

Simulating Major League Baseball Games

Uninformed Search (Ch )

GUIDE TO RUNNING A BIKE SHARE. h o w t o p l a n a n d o p e r a t e a s u c c e s s f u l b i k e s h a r e p r o g r a m

2 When Some or All Labels are Missing: The EM Algorithm

EE 364B: Wind Farm Layout Optimization via Sequential Convex Programming

Wind Flow Validation Summary

Technical Note. NOR Flash Cycling Endurance and Data Retention. Introduction. TN-12-30: NOR Flash Cycling Endurance and Data Retention.

States of Matter. The Behavior of Gases

Extending Flash Memory Through Adaptive Parameter Tuning. Conor Ryan CTO Software

LEAP CO 2 Laboratory CO 2 mixtures test facility

Lateral Load Analysis Considering Soil-Structure Interaction. ANDREW DAUMUELLER, PE, Ph.D.

This test shall be carried out on all vehicles equipped with open type traction batteries.

A Novel Gear-shifting Strategy Used on Smart Bicycles

Quantifying the Bullwhip Effect of Multi-echelon System with Stochastic Dependent Lead Time

ROUNDABOUT CAPACITY: THE UK EMPIRICAL METHODOLOGY

Better Search Improved Uninformed Search CIS 32

CS 4649/7649 Robot Intelligence: Planning

ENHANCED PARKWAY STUDY: PHASE 2 CONTINUOUS FLOW INTERSECTIONS. Final Report

JPEG-Compatibility Steganalysis Using Block-Histogram of Recompression Artifacts

Efficient Gait Generation using Reinforcement Learning

COMPUTATIONAL FLOW MODEL OF WESTFALL'S LEADING TAB FLOW CONDITIONER AGM-09-R-08 Rev. B. By Kimbal A. Hall, PE

Beamex. Calibration White Paper. Weighing scale calibration - How to calibrate weighing instruments

Optimal Weather Routing Using Ensemble Weather Forecasts

CFD and Physical Modeling of DSI/ACI Distribution

Next Generation Quartz Pressure Gauges

Testing of hull drag for a sailboat

NIOSH Equation Outputs: Recommended Weight Limit (RWL): Lifting Index (LI):

Dual pitch revisited: Overspeed avoidance by independent control of two blade sections

DR.ING. CARLO AVANZINI PROFESSIONAL ENGINEER GRIP TEST REPORT NOVA SIRIA, ROLETTO, Premise

Calculation of Trail Usage from Counter Data

Replay using Recomposition: Alignment-Based Conformance Checking in the Large

Ammonia Synthesis with Aspen Plus V8.0

SPATIAL STATISTICS A SPATIAL ANALYSIS AND COMPARISON OF NBA PLAYERS. Introduction

CONSIDERATION OF DENSITY VARIATIONS IN THE DESIGN OF A VENTILATION SYSTEM FOR ROAD TUNNELS

Traffic circles. February 9, 2009

Ron Gibson, Senior Engineer Gary McCargar, Senior Engineer ONEOK Partners

A Hare-Lynx Simulation Model

Chapter 4: Single Vertical Arch

Accounting for the Evolution of U.S. Wage Inequality

RIGHT-OF-WAY INTERSECTIONS

Author s Name Name of the Paper Session. Positioning Committee. Marine Technology Society. DYNAMIC POSITIONING CONFERENCE September 18-19, 2001

The Incremental Evolution of Gaits for Hexapod Robots

Development and evaluation of a pitch regulator for a variable speed wind turbine PINAR TOKAT

Modelling of Extreme Waves Related to Stability Research

Uninformed Search (Ch )

Courses of Instruction: Controlling and Monitoring of Pipelines

ZIN Technologies PHi Engineering Support. PHi-RPT CFD Analysis of Large Bubble Mixing. June 26, 2006

MODELING OF THE INFLOW BEHAVIOR OF EVACUATING CROWD INTO A STAIRWAY

The risk assessment of ships manoeuvring on the waterways based on generalised simulation data

Product Decomposition in Supply Chain Planning

Surfing Interconnect

PERCEPTIVE ROBOT MOVING IN 3D WORLD. D.E- Okhotsimsky, A.K. Platonov USSR

E. Agu, M. Kasperski Ruhr-University Bochum Department of Civil and Environmental Engineering Sciences

PUV Wave Directional Spectra How PUV Wave Analysis Works

PLEA th Conference, Opportunities, Limits & Needs Towards an environmentally responsible architecture Lima, Perú 7-9 November 2012

#19 MONITORING AND PREDICTING PEDESTRIAN BEHAVIOR USING TRAFFIC CAMERAS

Single- or Two-Stage Compression

OPTIMAL TRAJECTORY GENERATION OF COMPASS-GAIT BIPED BASED ON PASSIVE DYNAMIC WALKING

Evaluation of ACME coupled simulation Jack Reeves Eyre, Michael Brunke, and Xubin Zeng (PI) University of Arizona 4/19/3017

On-Road Parking A New Approach to Quantify the Side Friction Regarding Road Width Reduction

Scheduling the Brazilian Soccer Championship. Celso C. Ribeiro* Sebastián Urrutia

ORF 201 Computer Methods in Problem Solving. Final Project: Dynamic Programming Optimal Sailing Strategies

Estimating a Toronto Pedestrian Route Choice Model using Smartphone GPS Data. Gregory Lue

Fluid-Structure Interaction Analysis of a Flow Control Device

ARE YOU A SLOW- OR A FAST-TWITCH RUNNER?

ROSE-HULMAN INSTITUTE OF TECHNOLOGY Department of Mechanical Engineering. Mini-project 3 Tennis ball launcher

Video Notes. LC Troubleshooting Series Retention Time Shifts

LOW PRESSURE EFFUSION OF GASES revised by Igor Bolotin 03/05/12

1.3.4 CHARACTERISTICS OF CLASSIFICATIONS

New Theory on Facial Beauty: Ideal Dimensions in the Face And its application to your practice

Signature redacted Signature of Author:... Department of Mechanical Engineering

Design of Experiments Example: A Two-Way Split-Plot Experiment

Planning and Acting in Partially Observable Stochastic Domains

Effect of Argon Gas Distribution on Fluid Flow in the Mold Using Time-Averaged k-ε Models

Transcription:

On the Impact of Garbage Collection on flash-based SSD endurance Robin Verschoren and Benny Van Houdt Dept. Mathematics and Computer Science University of Antwerp Antwerp, Belgium INFLOW 16 Robin Verschoren and Benny Van Houdt Impact of Garbage Collection on SSD endurance 1/22

Outline SSD basics Prior work System description GC algorithms Workloads GC mechanism Performance measures Model framework Findings Future work Robin Verschoren and Benny Van Houdt Impact of Garbage Collection on SSD endurance 2/22

Flash-based SSD SSD Structure (plane level) Data is organized in N blocks Fixed number of b pages per block (e.g., b = 32) Unit of data exchange is a page Page has 3 possible states: erase, valid or invalid. Operations Data can only be written on pages in erase state Erase operations can be performed on entire blocks only Each block tolerates W max program-erase (PE) cycles before wearing out Out-of-place writes are supported (old data becomes invalid) Robin Verschoren and Benny Van Houdt Impact of Garbage Collection on SSD endurance 3/22

Flash-based SSD Internal operation (internal log structure) New data is sequentially written to one or more special blocks called write frontiers (WFs) When a WF is full, a new WF is selected by the garbage collection (GC) algorithm Write Amplification (WA) Valid pages in the victim block are temporarily copied to perform erase Assume j valid pages on a victim block with probability p j, write amplification A equals A = b b b j=0 jp j Robin Verschoren and Benny Van Houdt Impact of Garbage Collection on SSD endurance 4/22

Write Amplification Importance Affects IOPS and life span of the drive Over-provisioning Physical storage capacity exceeds the user-visible (logical) capacity Measure is spare factor S f = 1 ρ: ρ = the user-visible capacity total storage capacity fraction S f of the pages is guaranteed to be in erase/invalid state Robin Verschoren and Benny Van Houdt Impact of Garbage Collection on SSD endurance 5/22

Prior work Analytical models Mostly under uniform random writes and Rosenblum (hot/cold) workloads Exact (closed-form) results for WA as N tends to infinity Random GC FIFO/LRU GC (Menon, Robinson, Desnoyers) Greedy GC (Bux, Iliadis, Desnoyers) d-choices GC (Van Houdt, Li et al.) Windowed GC (Hu et al., Iliadis) etc. Robin Verschoren and Benny Van Houdt Impact of Garbage Collection on SSD endurance 6/22

Prior work Main observations w.r.t. Write Amplification Greedy is optimal under uniform random writes, d-choices close to optimal (for d as small as 10) Increasing hotness worsens WA in case of single WF (as no hot/cold data separation takes place) Double WF (separates writes triggered by host and GC): WA decreases as hotness increases (as partial hot/cold data separation takes place) Greedy is no longer optimal with hot/cold data: there exists optimal d for d-choices Robin Verschoren and Benny Van Houdt Impact of Garbage Collection on SSD endurance 7/22

Class C of GC algorithms modeled Definition Let m(t) = (m 0 (t),..., m b (t)), where m i (t) is the fraction of blocks containing i valid pages at time t A GC algorithm belongs to C if 1 A block containing j valid pages is selected by the GC algorithm with probability p j ( m(t)) 2 The probabilities p j ( m(t)) are smooth in m(t) (can be slightly relaxed) It is possible to further extend this class when hot/cold data identification techniques are in place Robin Verschoren and Benny Van Houdt Impact of Garbage Collection on SSD endurance 8/22

Class C of GC algorithms modeled Examples 1 Random GC algorithm: p j ( m) = m j 2 d-choices GC algorithm selects d 2 blocks uniformly at random and erases a block containing the smallest number of valid pages among the d selected blocks: b p j ( m) = l=j m l d b l=j+1 3 Greedy GC algorithm: d-choices with d = N. m l d Robin Verschoren and Benny Van Houdt Impact of Garbage Collection on SSD endurance 9/22

Workload model Rosenblum model A fraction f of the data is termed hot Hot pages are updated at rate r f, cold pages at rate 1 r Reducing f or increasing r makes hot data hotter Special case: Uniform random writes (r = f ) Every (logical) page on the device is updated with the same probability Robin Verschoren and Benny Van Houdt Impact of Garbage Collection on SSD endurance 10/22

System description GC mechanism: Double Write Frontier (DWF) Uses 2 write frontiers: WFE: External WF for externally issued writes (by host) WFI: Internal WF used during GC Separates data without hot/cold data identification techniques Garbage collection with DWF GC algorithm invoked when WFE becomes full, chooses victim containing j valid pages Assume WFI contains b j pages in erase state j b j : j valid pages copied to WFI, victim becomes new WFE j > b j : j valid pages copied to WFI, victim becomes new WFI, reinvoke GC Robin Verschoren and Benny Van Houdt Impact of Garbage Collection on SSD endurance 11/22

Performance measures PE fairness Mean number of PE cycles performed on blocks before any block reaches W max PE cycles, divided by W max Describes how fairly the PE cycles are distributed among blocks SSD endurance Expected number of external writes before any block reaches W max PE cycles Expresses the life span of the device in full drive writes (FDW) Main questions How much can wear leveling mechanisms improve performance? Which of the proposed measures dominates w.r.t. performance and what role does the GCA play? Robin Verschoren and Benny Van Houdt Impact of Garbage Collection on SSD endurance 12/22

Model framework Background on mean field models Stochastic system of N interacting blocks (N-dimensional Markov chain) Problem: impractical to compute steady state for large N Solution: consider the limit of N tending to infinity Limit is a deterministic system, its evolution captured by the trajectories of a set of ODEs (called drift equations) Drift corresponds to studying the behavior of one (type of) block, averaging the effects of other blocks Robin Verschoren and Benny Van Houdt Impact of Garbage Collection on SSD endurance 13/22

Model framework Drift equations and fixed point (for uniform random writes) Let f i,w ( m) represent the expected change in the fraction of blocks containing i valid pages with w PE cycles Determine fixed point m where b f i,w ( m ) = 0 i=0 WA, PE fairness and SSD endurance based on fixed point Gives exact results for N tending to infinity (provided that limits are exchangeable) Model extension for Rosenblum workload Can be extended for hot/cold workload, but numerical solution is computation intensive Robin Verschoren and Benny Van Houdt Impact of Garbage Collection on SSD endurance 14/22

Main findings: Uniform random writes 1 0.95 PE fairness 0.9 0.85 0.8 0.75 d = 100 d = 10 d = 6 d = 3 d = 2 d = 1 0.7 0 100 200 300 400 500 600 700 800 900 1000 Maximum number of PE cycles Figure: PE fairness under uniform random writes with b = 32 and S f = 0.1. Increasing b, d or S f results in increased PE fairness. Narrow margin for improving by implementing wear leveling mechanisms. Robin Verschoren and Benny Van Houdt Impact of Garbage Collection on SSD endurance 15/22

Main findings: Uniform random writes 450 SSD Endurance 400 350 300 250 200 150 b = 64 b = 32 b = 16 b = 8 b = 4 b = 2 100 50 0 0 100 200 300 400 500 600 700 800 900 1000 Maximum number of PE cycles Figure: SSD endurance under uniform random writes with S f = 0.1 and d = 10. Smaller block sizes b result in higher endurance due to lower WA. Robin Verschoren and Benny Van Houdt Impact of Garbage Collection on SSD endurance 16/22

Main findings: Hot/cold data 1 0.95 PE fairness 0.9 0.85 0.8 d =100 d = 30 d = 10 d = 6 d = 3 d = 2 d = 1 0 500 1000 1500 2000 2500 3000 3500 4000 4500 5000 Maximum number of PE cycles Figure: PE fairness under hot/cold data (DWF) with b = 32, S f = 0.1, f = 0.2 and r = 0.8. In contrast with uniform random writes, smaller d and S f values result in better fairness. The GCA then more likely chooses victims containing primarily cold data, which have a lower number of PE cycles. Robin Verschoren and Benny Van Houdt Impact of Garbage Collection on SSD endurance 17/22

Main findings: Hot/cold data SSD Endurance 3000 2500 2000 1500 1000 d =100 d = 30 d = 10 d = 6 d = 3 d = 2 d = 1 500 0 0 500 1000 1500 2000 2500 3000 3500 4000 4500 5000 Maximum number of PE cycles Figure: SSD endurance under hot/cold data (DWF) with b = 32, S f = 0.1, f = 0.2 and r = 0.8. There exists a finite d value optimizing SSD endurance. Smaller d have higher WA, outweighing benefits of better PE fairness. Robin Verschoren and Benny Van Houdt Impact of Garbage Collection on SSD endurance 18/22

Main findings: Hot/cold data SSD Endurance 2500 2000 1500 1000 f =0.01 f =0.05 f =0.10 f =0.20 f =0.40 500 0 0 500 1000 1500 2000 2500 3000 3500 4000 4500 5000 Maximum number of PE cycles Figure: SSD endurance under hot/cold data (DWF) with b = 32, S f = 0.1 and d = 10. PE fairness reduces with hotness, but lower WA of hotter data results in better endurance. Robin Verschoren and Benny Van Houdt Impact of Garbage Collection on SSD endurance 19/22

Main findings: Hot/cold data ρ r f d MIN WA d MAX End d MAX Fair 0.90 0.80 0.20 13 13 2 0.90 0.95 0.05 10 8 1 0.90 0.99 0.01 27 24 1 0.85 0.80 0.20 11 9 2 0.90 0.80 0.20 13 13 2 0.95 0.80 0.20 22 21 2 Table: Comparison of d values optimizing WA, SSD endurance and PE fairness for several parameter settings in a system of N = 10, 000 blocks of size b = 32 with W max = 5000 (10 runs). Minimizing WA is more beneficial for endurance than maximizing fairness. Robin Verschoren and Benny Van Houdt Impact of Garbage Collection on SSD endurance 20/22

Main takeaway Uniform random writes Greedy (or d large) GC delivers near optimal fairness and endurance Large blocksizes can result in shorter life span (high WA outweighs fairness) Hot/cold data (DWF) Increasing data hotness leads to lower PE fairness Lowering PE fairness may lead to higher SSD endurance d values maximizing endurance are relatively small, but closer to those minimizing WA than those maximizing PE fairness When increasing hotness, minimizing WA outweighs achieving roughly equal wear Robin Verschoren and Benny Van Houdt Impact of Garbage Collection on SSD endurance 21/22

Possible extensions and ongoing work Possible extensions GC algorithms depending on wear of blocks Impact of wear leveling mechanism on SSD endurance Ongoing and future work Fairness and endurance of trace-based workloads Impact of data separation techniques on device lifespan Robin Verschoren and Benny Van Houdt Impact of Garbage Collection on SSD endurance 22/22