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

What is a Locked BOM? How Does It Work?

  What is a Locked BOM (Bill of Materials) Once an OEM has qualified a solution,...

Technical Success Stories: SLC SD Card Solution- Terabytes Written & Drive Writes

  “We were told that Terabytes Written (TBW) and Drive Writes Per Day (DWPD) are...

Delkin Devices is Built to Order in the USA

  When it comes to purchasing embedded storage devices, although there are a multitude of...

Temperature Considerations for SSD- Hot Climate
The Importance of SSD Industrial Temperature Considerations

  Industrial applications often face extreme temperature demands, and it’s important to note SSD industrial...

Delkin Devices Industrial USB Flash Drive
The Impressive Architecture of SLC USB Flash Drives

  Today’s SLC USB Flash drives are rugged, durable, and even customizable. Electrical engineers have...

Flash Endurance & SSD Wear Leveling Algorithms

  Although SLC NAND Flash memory provides a high level of performance, it still has...

Technical Success Story: Industrial and Commercial Flash Storage

  Commercial flash storage products are extremely common and widely available. For this reason, some...

Industrial Flash Storage Customization

  Flash memory cards are used in countless industrial, commercial, and consumer applications. There are...

SD, D300 Series, 16GB SLC Industrial
Technical Success Stories: SLC SD Card- Finding the Right Solution

  As flash technology evolves, it is becoming increasingly challenging to compare memory devices. At...

Concept of Communication Network Applications in City
eMMC in Networking and Communication Applications

What Is Industrial eMMC or Embedded Multimedia Device? eMMC or embedded Multimedia is small yet...