Delkin Blog

Storage Insights #2 – Optimizing your Storage Device

Check out the full original post on the element14 Community Blog

 

Optimizing the Life of Storage Devices

In our first Storage Insights post, we discussed that all SD cards are not equivalent, and how different NAND flash and card technologies can be applied to diverse applications for the same storage form factor.  In this edition, we will examine how the device is written to – in terms of both the controller technology and the application workload – can have a significant impact on the resulting life of the drive.

Extending the Life of your NAND Flash Storage Device

To optimize and extend the life of a NAND storage device, we first need to understand how data is written to the device.  Writing to flash is the process of prepping the blocks of the NAND flash and then programming new data to the NAND flash blocks.  New data cannot be saved to flash until the old data is first erased. One complete erasure and programming process of a cell or block of flash is called a program/erase cycle (or P/E cycle.)

Due to the nature of NAND storage, only a finite number of P/E cycles can be performed on a NAND flash before wear makes it unreliable to store data.  One way of extending the life of your flash device is to utilize the available P/E cycles more efficiently. Some options that could help would be to reduce unnecessary copying of files or downloading of data or consolidating writes.

Understanding your usage model can also impact your P/E cycle count.  Data written to your storage device is done either sequentially (no seeks, lots of continuous I/O) or randomly (seek-write-seek-write, etc.)  Sequential writing will provide a more efficient write performance (lower write amplification) for the flash which will improve the life of the flash NAND.

Reducing P/E Cycle Breakdowns with Wear Leveling

As discussed, NAND flash devices can only undergo a limited number of program/erase cycles, and in most cases, the flash media are not used evenly. If some areas are updated more frequently than others, the lifetime of the device will be reduced significantly. Thus, Wear Leveling is applied to extend the lifespan of NAND flash by evenly distributing P/E cycles across the media.

Delkin utilizes advanced Wear Leveling algorithms, which can efficiently distribute flash usage through the whole flash media area regardless of the operating system, file system or partition structure on the drive. By implementing both dynamic and static Wear Leveling algorithms, which will wear level data that is updated frequently as well as that which is never updated, the life expectancy of the NAND flash is greatly improved.

Utilizing SMART Data

Another recommendation to improve and track the life of your drive is to utilize your drives’ available SMART (Self-Monitoring and Reporting Technology) data.  Customers can regularly obtain data about the estimated remaining life in a flash device, spare block status, and how many P/E cycles have been consumed*. Utilizing this information will allow the user to evaluate the read/write operations and make changes accordingly.  This is an especially valuable tool during the development phase, when software can be modified and optimized.

Proactive Read Disturb Refresh

Read disturb errors occur when too many reads are made to a page without an intervening block erase, which has become more of an issue as flash geometries have shrunk. If your application is read-intensive, then it is vital to have a flash controller with a read disturb management system that will proactively refresh blocks before bit errors accumulate beyond the correction ability of the ECC engine. Whether a read counter or other mechanism is used to trigger the refresh, the data will be moved to a freshly erased block, and then the erased block can be put back into service.  If proactive read refresh is not employed in a read-intensive application, then the chance of UECC’s, premature bad blocks and data loss is increased.

Block Base vs Page Base Mapping

Understanding the controller mapping technology relative to the flash structure is another key factor in NAND flash optimization. Block-based mapping is usually employed on devices with no DRAM (i.e. CompactFlash, SD cards & USB drives), whereas page-based mapping is typical on SSD’s. The impact of block-based firmware is a potentially higher Write Amplification Factor (WAF) which consumes P/E cycles and wears out the drive more quickly.  However, there are many factors to consider when evaluating page-based vs. block-based – such as the flash type, the performance needed and the write model (sequential vs. random.) To see an example of block base vs page based writing, visit: https://www.delkin.com/technology/flash-endurance/

To Learn More

Look for the next Storage Insights post soon, if you missed Storage Insights #1, check it out here, and feel free to ask a question or reach out to Delkin with any storage questions in the meantime Delkin Devices or https://www.delkin.com/contact/ .

*SMART data varies by product family – not all data is available on all devices.  Method for extracting data also varies by product and interface.

Buy Delkin CompactFlash

Buy Delkin mSATA

Buy Delkin microSD

Buy Delkin SD

Contact

  • This field is for validation purposes and should be left unchanged.

Related Posts

Comparing Solid State Storage Companies

  Not all solid state storage companies are created equally. Although it can be tempting...

Delkin Devices and the Industrial Applications Market: Storage Solutions for Industrial Environments

  At Delkin, we serve a diverse industrial applications marketplace with wide-ranging storage needs. The...

Guide to Embedded Multimedia Card (eMMC)

  Embedded Multimedia Card (eMMC) General Description Designed for a wide range of applications in consumer...

Technical Success Stories: Delkin Matches Product & Testing to Unique Environmental Requirements

  CompactFlash as a form factor has been a stable, industrial, storage medium used by...

Managing Errors in NAND Flash Based Devices

    General In today’s systems, having a Nor flash (protected) bios supporting system boot from USB...

Embedded Computing
The Benefits of Using Industrial Flash Storage for Embedded Computing Applications

    Industrial grade flash storage devices have a higher endurance, a locked BOM, longer life...

Industrial IoT Applications Requiring Industrial Flash Storage

  Across the globe, many industries are on the crossover of revolution and many manufacturers...

Answering Common Questions about SMART SSDs

 SMART is a critical technology for SSDs, or solid-state drives. It makes locating the...

Medical Device Flash Storage: Factors to Consider

  Hospitals and other medical organizations have grown increasingly reliant on technology to deliver patient...

Digital Signage
Technical Success Story: Digital Signage Life Cycle Management

  Digital signage is a critical way of conveying information for a business or an...