Welcome!

Blog Feed Post

TRIM Command and the SSD Write Cliff

Well, we may have recently avoided the ‘fiscal cliff’ in Washington DC, but some cliffs cannot be avoided.  Just ask Norm of the TV show “Cheers” how many times he wished he could avoid Cliff Clavin.  In the world of SSDs, the cliff that we want to avoid is the SSD “write cliff.”

Why the Write Cliff Matters

The SSD write cliff is the effect where SSD write performance drops off after all the free flash memory pages in an SSD have been initially written to and the device cannot provide enough free pages to keep up with subsequent write requests.  Each new write request then requires the SSD locate a block that can be erased for the new data.  If a block that needs to be erased contains active data, the active data must be written to a new location to free up the block to be erased. This process of copying valid data from one block to a new block, called ‘write amplification’ increases SSD wear and is the primary cause of the write cliff.

The SSD write cliff and ways to avoid it are discussed in depth in the VeloBit White Paper: SSD Performance Tips: Avoid The Write Cliff.  Figure 1 shows an example of the write cliff observed in laboratory testing of a high performance, 320 GB PCI-E SSD at VeloBit.  What this shows is that the SSD achieves maximum bandwidth (500 MB/s) until the SSD is filled with data (320 GB on the x-axis).  However, once the device is full, the IO bandwidth rapidly drops off for additional write requests, hence the term ‘cliff’.  In this test, the “__% size” lines represent the allowable address space for data being written to the device.  We can see that bandwidth drops rapidly once the SSD is full and sustaining maximum IO is not possible.


Figure 1. SSD write cliff observed in lab testing

The TRIM Command Can Help

When a file is stored by an operating system and the OS “deletes” the file, the operating system file structure simply removes the file name from its file list and records that the disk space associated with the file is now available for writing new data into.  The delete command does not, however physically erase/remove the data from the storage media.  For SSDs, this means that a deleted file is still active in the SSD file mapping system and the memory cells used by the ‘deleted’ file are unavailable for use. As SSDs became more widely used, the problem of having ‘deleted’ files retained in valuable SSD storage became a big issue.  The TRIM command was recently developed specifically to address this problem.  TRIM is used to inform the SSD which file has been deleted and hence which blocks of data are no longer considered in use.  The SSD can then make these blocks available for erasure/reuse, reducing write amplification and SSD wear.

TRIM Does Not Create World Peace

While the TRIM command is a valuable tool to be used to extend SSD life and improve performance, it really can only help postpone the write cliff somewhat. The SSD hits the write cliff when it runs out of free SSD data pages and starts encountering write amplification. When TRIM commands mark entire pages of data as ‘deleted’ before the SSD runs out of free data pages, the deleted page can be erased and written with new data without having to copy any valid data thereby reducing write amplification, increasing performance and prolonging SSD life.  TRIM can help delay, but can’t eliminate the write cliff.

TRIM Requires New Software

So, good programming practices would include using the TRIM to help manage SSD life and performance.  However, many existing applications and installations were written before TRIM was available.  Using SSD caching software like VeloBit is an easier to deploy SSDs and properly manage them in legacy systems without having to rewrite applications.

Read the original blog entry...

More Stories By Peter Velikin

Peter Velikin has 12 years of experience creating new markets and commercializing products in multiple high tech industries. Prior to VeloBit, he was VP Marketing at Zmags, a SaaS-based digital content platform for e-commerce and mobile devices, where he managed all aspects of marketing, product management, and business development. Prior to that, Peter was Director of Product and Market Strategy at PTC, responsible for PTC’s publishing, content management, and services solutions. Prior to PTC, Peter was at EMC Corporation, where he held roles in product management, business development, and engineering program management.

Peter has an MS in Electrical Engineering from Boston University and an MBA from Harvard Business School.

Latest Stories
The current age of digital transformation means that IT organizations must adapt their toolset to cover all digital experiences, beyond just the end users’. Today’s businesses can no longer focus solely on the digital interactions they manage with employees or customers; they must now contend with non-traditional factors. Whether it's the power of brand to make or break a company, the need to monitor across all locations 24/7, or the ability to proactively resolve issues, companies must adapt to...
After more than five years of DevOps, definitions are evolving, boundaries are expanding, ‘unicorns’ are no longer rare, enterprises are on board, and pundits are moving on. Can we now look at an evolution of DevOps? Should we? Is the foundation of DevOps ‘done’, or is there still too much left to do? What is mature, and what is still missing? What does the next 5 years of DevOps look like? In this Power Panel at DevOps Summit, moderated by DevOps Summit Conference Chair Andi Mann, panelists loo...
"Loom is applying artificial intelligence and machine learning into the entire log analysis process, from start to finish and at the end you will get a human touch,” explained Sabo Taylor Diab, Vice President, Marketing at Loom Systems, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"Tintri focuses on the Ops side of the DevOps, which basically is pushing more and more of the accessibility of the infrastructure to the developers and trying to get behind the scenes," explained Dhiraj Sehgal of Tintri in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
@DevOpsSummit at Cloud Expo taking place Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center, Santa Clara, CA, is co-located with the 21st International Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The widespread success of cloud computing is driving the DevOps revolution in enterprise IT. Now as never before, development teams must communicate and collaborate in a dynamic, 24/7/365 environment. There is ...
You know you need the cloud, but you’re hesitant to simply dump everything at Amazon since you know that not all workloads are suitable for cloud. You know that you want the kind of ease of use and scalability that you get with public cloud, but your applications are architected in a way that makes the public cloud a non-starter. You’re looking at private cloud solutions based on hyperconverged infrastructure, but you’re concerned with the limits inherent in those technologies.
In the world of DevOps there are ‘known good practices’ – aka ‘patterns’ – and ‘known bad practices’ – aka ‘anti-patterns.' Many of these patterns and anti-patterns have been developed from real world experience, especially by the early adopters of DevOps theory; but many are more feasible in theory than in practice, especially for more recent entrants to the DevOps scene. In this power panel at @DevOpsSummit at 18th Cloud Expo, moderated by DevOps Conference Chair Andi Mann, panelists discussed...
A look across the tech landscape at the disruptive technologies that are increasing in prominence and speculate as to which will be most impactful for communications – namely, AI and Cloud Computing. In his session at 20th Cloud Expo, Curtis Peterson, VP of Operations at RingCentral, highlighted the current challenges of these transformative technologies and shared strategies for preparing your organization for these changes. This “view from the top” outlined the latest trends and developments i...
The current age of digital transformation means that IT organizations must adapt their toolset to cover all digital experiences, beyond just the end users’. Today’s businesses can no longer focus solely on the digital interactions they manage with employees or customers; they must now contend with non-traditional factors. Whether it's the power of brand to make or break a company, the need to monitor across all locations 24/7, or the ability to proactively resolve issues, companies must adapt to...
"We focus on composable infrastructure. Composable infrastructure has been named by companies like Gartner as the evolution of the IT infrastructure where everything is now driven by software," explained Bruno Andrade, CEO and Founder of HTBase, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
Hardware virtualization and cloud computing allowed us to increase resource utilization and increase our flexibility to respond to business demand. Docker Containers are the next quantum leap - Are they?! Databases always represented an additional set of challenges unique to running workloads requiring a maximum of I/O, network, CPU resources combined with data locality.
For organizations that have amassed large sums of software complexity, taking a microservices approach is the first step toward DevOps and continuous improvement / development. Integrating system-level analysis with microservices makes it easier to change and add functionality to applications at any time without the increase of risk. Before you start big transformation projects or a cloud migration, make sure these changes won’t take down your entire organization.
Cloud promises the agility required by today’s digital businesses. As organizations adopt cloud based infrastructures and services, their IT resources become increasingly dynamic and hybrid in nature. Managing these require modern IT operations and tools. In his session at 20th Cloud Expo, Raj Sundaram, Senior Principal Product Manager at CA Technologies, will discuss how to modernize your IT operations in order to proactively manage your hybrid cloud and IT environments. He will be sharing bes...
Artificial intelligence, machine learning, neural networks. We’re in the midst of a wave of excitement around AI such as hasn’t been seen for a few decades. But those previous periods of inflated expectations led to troughs of disappointment. Will this time be different? Most likely. Applications of AI such as predictive analytics are already decreasing costs and improving reliability of industrial machinery. Furthermore, the funding and research going into AI now comes from a wide range of com...
In this presentation, Striim CTO and founder Steve Wilkes will discuss practical strategies for counteracting fraud and cyberattacks by leveraging real-time streaming analytics. In his session at @ThingsExpo, Steve Wilkes, Founder and Chief Technology Officer at Striim, will provide a detailed look into leveraging streaming data management to correlate events in real time, and identify potential breaches across IoT and non-IoT systems throughout the enterprise. Strategies for processing massive ...