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
"Digital transformation - what we knew about it in the past has been redefined. Automation is going to play such a huge role in that because the culture, the technology, and the business operations are being shifted now," stated Brian Boeggeman, VP of Alliances & Partnerships at Ayehu, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
The past few years have brought a sea change in the way applications are architected, developed, and consumed—increasing both the complexity of testing and the business impact of software failures. How can software testing professionals keep pace with modern application delivery, given the trends that impact both architectures (cloud, microservices, and APIs) and processes (DevOps, agile, and continuous delivery)? This is where continuous testing comes in. D
"Evatronix provides design services to companies that need to integrate the IoT technology in their products but they don't necessarily have the expertise, knowledge and design team to do so," explained Adam Morawiec, VP of Business Development at Evatronix, in this SYS-CON.tv interview at @ThingsExpo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
"WineSOFT is a software company making proxy server software, which is widely used in the telecommunication industry or the content delivery networks or e-commerce," explained Jonathan Ahn, COO of WineSOFT, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
Smart cities have the potential to change our lives at so many levels for citizens: less pollution, reduced parking obstacles, better health, education and more energy savings. Real-time data streaming and the Internet of Things (IoT) possess the power to turn this vision into a reality. However, most organizations today are building their data infrastructure to focus solely on addressing immediate business needs vs. a platform capable of quickly adapting emerging technologies to address future ...
Mobile device usage has increased exponentially during the past several years, as consumers rely on handhelds for everything from news and weather to banking and purchases. What can we expect in the next few years? The way in which we interact with our devices will fundamentally change, as businesses leverage Artificial Intelligence. We already see this taking shape as businesses leverage AI for cost savings and customer responsiveness. This trend will continue, as AI is used for more sophistica...
There is a huge demand for responsive, real-time mobile and web experiences, but current architectural patterns do not easily accommodate applications that respond to events in real time. Common solutions using message queues or HTTP long-polling quickly lead to resiliency, scalability and development velocity challenges. In his session at 21st Cloud Expo, Ryland Degnan, a Senior Software Engineer on the Netflix Edge Platform team, will discuss how by leveraging a reactive stream-based protocol,...
In his Opening Keynote at 21st Cloud Expo, John Considine, General Manager of IBM Cloud Infrastructure, led attendees through the exciting evolution of the cloud. He looked at this major disruption from the perspective of technology, business models, and what this means for enterprises of all sizes. John Considine is General Manager of Cloud Infrastructure Services at IBM. In that role he is responsible for leading IBM’s public cloud infrastructure including strategy, development, and offering m...
Sanjeev Sharma Joins June 5-7, 2018 @DevOpsSummit at @Cloud Expo New York Faculty. Sanjeev Sharma is an internationally known DevOps and Cloud Transformation thought leader, technology executive, and author. Sanjeev's industry experience includes tenures as CTO, Technical Sales leader, and Cloud Architect leader. As an IBM Distinguished Engineer, Sanjeev is recognized at the highest levels of IBM's core of technical leaders.
Product connectivity goes hand and hand these days with increased use of personal data. New IoT devices are becoming more personalized than ever before. In his session at 22nd Cloud Expo | DXWorld Expo, Nicolas Fierro, CEO of MIMIR Blockchain Solutions, will discuss how in order to protect your data and privacy, IoT applications need to embrace Blockchain technology for a new level of product security never before seen - or needed.
The 22nd International Cloud Expo | 1st DXWorld Expo has announced that its Call for Papers is open. Cloud Expo | DXWorld Expo, to be held June 5-7, 2018, at the Javits Center in New York, NY, brings together Cloud Computing, Digital Transformation, Big Data, Internet of Things, DevOps, Machine Learning and WebRTC to one location. With cloud computing driving a higher percentage of enterprise IT budgets every year, it becomes increasingly important to plant your flag in this fast-expanding busin...
Digital transformation is about embracing digital technologies into a company's culture to better connect with its customers, automate processes, create better tools, enter new markets, etc. Such a transformation requires continuous orchestration across teams and an environment based on open collaboration and daily experiments. In his session at 21st Cloud Expo, Alex Casalboni, Technical (Cloud) Evangelist at Cloud Academy, explored and discussed the most urgent unsolved challenges to achieve f...
SYS-CON Events announced today that Synametrics Technologies will exhibit at SYS-CON's 22nd International Cloud Expo®, which will take place on June 5-7, 2018, at the Javits Center in New York, NY. Synametrics Technologies is a privately held company based in Plainsboro, New Jersey that has been providing solutions for the developer community since 1997. Based on the success of its initial product offerings such as WinSQL, Xeams, SynaMan and Syncrify, Synametrics continues to create and hone inn...
Digital Transformation (DX) is not a "one-size-fits all" strategy. Each organization needs to develop its own unique, long-term DX plan. It must do so by realizing that we now live in a data-driven age, and that technologies such as Cloud Computing, Big Data, the IoT, Cognitive Computing, and Blockchain are only tools. In her general session at 21st Cloud Expo, Rebecca Wanta explained how the strategy must focus on DX and include a commitment from top management to create great IT jobs, monitor ...
In a recent survey, Sumo Logic surveyed 1,500 customers who employ cloud services such as Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platform (GCP). According to the survey, a quarter of the respondents have already deployed Docker containers and nearly as many (23 percent) are employing the AWS Lambda serverless computing framework. It’s clear: serverless is here to stay. The adoption does come with some needed changes, within both application development and operations. Tha...