{"id":848,"date":"2023-04-05T08:00:00","date_gmt":"2023-04-04T23:00:00","guid":{"rendered":"https:\/\/www.hagisol.com\/techblog\/?p=848"},"modified":"2023-04-05T08:03:18","modified_gmt":"2023-04-04T23:03:18","slug":"post-848","status":"publish","type":"post","link":"https:\/\/www.hagisol.com\/techblog\/?p=848","title":{"rendered":"How to choose an SSD (3\/5): Usage that shortens its life1"},"content":{"rendered":"\n<div class=\"is-layout-flex wp-block-buttons\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-50\"><a class=\"wp-block-button__link has-white-color has-vivid-cyan-blue-background-color has-text-color has-background wp-element-button\" href=\"https:\/\/www.hagisol.com\/form\/contact.php\">Click here to contact us<\/a><\/div>\n<\/div>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/www.hagisol.com\/techblog\/wp-content\/uploads\/2022\/05\/AdobeStock_227086649-1024x683.jpeg\" alt=\"\" class=\"wp-image-853\"\/><\/figure>\n\n\n\n<h2 id=\"outline__1\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">Products related to this article<\/mark><\/h2>\n\n\n\n<ul>\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/www.hagisol.com\/products\/storage\" target=\"_blank\">Industrial Flash Storage Products<\/a><\/li>\n<\/ul>\n\n\n\n<p>\u3000\uff0a<a href=\"https:\/\/qiita.com\/ken-yossy\/items\/094533052380e9d3f96c\" data-type=\"URL\" data-id=\"https:\/\/qiita.com\/ken-yossy\/items\/094533052380e9d3f96c\">This article is a revised version of the article posted to Qiita in November 2019.<\/a><\/p>\n\n\n\n<h2 id=\"outline__2\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">Introduction<\/mark><\/h2>\n\n\n\n<p>\u3000<a rel=\"noreferrer noopener\" href=\"https:\/\/www.hagisol.com\/techblog\/?p=534\" target=\"_blank\">In the previous article<\/a>, we explained that <strong>TBW indicates only the data newly written from the host, while the estimated lifetime indicates all the data written to the NAND flash memory in the SSD<\/strong>.<\/p>\n\n\n\n<p>\u3000If factors other than TBW that consume the life of the NAND flash memory becomes larger, as a result,  TBW numbers will get smaller.<\/p>\n\n\n\n<p>\u3000The size of the above factors depends greatly on the characteristics of the product, so it is not always possible to say that &#8220;large = bad&#8221;. However, it is possible to prevent excessive increase in the size of the product by devising how to use it.<\/p>\n\n\n\n<p>\u3000Thus, from this article, we will explain the bad way that shortens the life of SSDs (i.e., diminishing TBW) . <\/p>\n\n\n\n<p>\u3000By avoiding the usage described in this article, you can maximize TBW and take full advantage of the life of your SSD.<\/p>\n\n\n\n<h2 id=\"outline__3\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">Summary<\/mark><\/h2>\n\n\n\n<ul>\n<li>Do not use without enough capacity<\/li>\n<\/ul>\n\n\n\n<ul>\n<li>Random writes to a large LBA space should be avoided<\/li>\n<\/ul>\n\n\n\n<ul>\n<li>Continuously reading the same data is also a problem<\/li>\n<\/ul>\n\n\n\n<h2 id=\"outline__4\"><a href=\"https:\/\/qiita.com\/ken-yossy\/items\/094533052380e9d3f96c#%E5%AE%B9%E9%87%8F%E3%81%84%E3%81%A3%E3%81%B1%E3%81%84%E3%81%84%E3%81%A3%E3%81%B1%E3%81%84%E3%81%A7%E4%BD%BF%E3%81%86%E3%81%AE%E3%81%AF%E5%AF%BF%E5%91%BD%E7%9A%84%E3%81%AB%E3%82%82%E6%80%A7%E8%83%BD%E7%9A%84%E3%81%AB%E3%82%82%E3%83%80%E3%83%A1\"><\/a><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">No room for capacity is not good!<\/mark><\/h2>\n\n\n\n<p><strong>\uff1cPoint: If it is used with sufficient capacity, it enables to keep stable performance of SSD.\uff1e<\/strong><\/p>\n\n\n\n<p>\u3000NAND flash memory cannot write data unless it is erased block by block. Therefore, SSDs reuse blocks to create writeable blocks before those blocks run out, thereby maintaining storage functionality.<\/p>\n\n\n\n<p>\u3000<a href=\"https:\/\/www.hagisol.com\/techblog\/?p=373\" data-type=\"URL\" data-id=\"https:\/\/www.hagisol.com\/techblog\/?p=373\">Garbage collection (GC)<\/a> is the process of sorting out valid and invalid data in a block and copying only the valid data to another block for the purpose of reusing.<\/p>\n\n\n\n<p>\u3000Under certain assumptions, when comparing the case where the effective data volume is 50% of the SSD capacity with the case where the effective data volume is 80% of the SSD capacity, the latter consumes 3.2 times more lifetime during GC! (<a href=\"https:\/\/qiita.com\/ken-yossy\/items\/094533052380e9d3f96c\" data-type=\"URL\" data-id=\"https:\/\/qiita.com\/ken-yossy\/items\/094533052380e9d3f96c\">See Qiita article for details<\/a>).<\/p>\n\n\n\n<p>\u3000For this reason, <strong>SSDs should be used with ample capacity.<\/strong> And <strong>the easiest way to make room for capacity is to select larger capacity.<\/strong><\/p>\n\n\n\n<p>\u3000For example, even if the size of the data expected to be stored about 100 GB, choosing a 256 GB SSD instead of a 128 GB SSD is a much gentler usage.<\/p>\n\n\n\n<h2 id=\"outline__5\"><a href=\"https:\/\/qiita.com\/ken-yossy\/items\/094533052380e9d3f96c#%E5%BA%83%E3%81%84lba%E7%A9%BA%E9%96%93%E3%81%AB%E3%83%A9%E3%83%B3%E3%83%80%E3%83%A0%E3%83%A9%E3%82%A4%E3%83%88%E3%81%97%E7%B6%9A%E3%81%91%E3%82%8B%E3%81%AE%E3%81%AF%E3%83%80%E3%83%A1\"><\/a><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">No random writes to a large LBA space!<\/mark><\/h2>\n\n\n\n<p><strong>\uff1cPoints: Much higher performance than HDD, but not good random writes\uff1e<\/strong><\/p>\n\n\n\n<p>\u3000Compared to the days when the performance degradation known as &#8220;petit freeze&#8221; was observed, SSD random write performance, especially for small size (e.g., 4 KB) random writes, is now very high.<\/p>\n\n\n\n<p>\u3000One of the reasons for this is the difference in the method used to manage the correspondence between the address (Logical Block Address: LBA) specified by the host for reading and writing data and the location of the NAND flash memory where the latest data (LBA) is recorded.<\/p>\n\n\n\n<p>\u3000The management method used for most SSDs in recent years, including our SSDs, is called &#8220;page mapping&#8221; or &#8220;page-level mapping<sup>[1][2][3]<\/sup>.<\/p>\n\n\n\n<p>\u3000This page-mapping scheme enables small-sized writes to be efficiently recorded and managed in NAND flash memory, especially improving random write performance. In addition, this method is compatible with the OS, especially the Windows access pattern[4], and performance in an actual environment has also been greatly improved.<\/p>\n\n\n\n<p>\u3000The previous management method is called &#8220;block mapping&#8221; or &#8220;block-level mapping&#8221; because it manages NAND flash memory in block (size) units. There is also a method called &#8220;hybrid mapping&#8221; that combines these two management methods.<\/p>\n\n\n\n<p>\u3000However, even with the page mapping method, the GC becomes inefficient if random writes are performed over a large area of LBA space. Also, under such circumstances, the bloated management information which is a disadvantage of the page mapping method, will affect the lifetime of the system.<\/p>\n\n\n\n<p>\u3000Efficiency deterioration in GC means an increase in copy size of the GC that is to say an increase in lifetime consumption, resulting in a larger decrease in TBW. In other words, <strong>random writes (especially small writes) over a large area of LBA space are not SSD-friendly.<\/strong><\/p>\n\n\n\n<p>\u3000On the other hand, sequential writes require little or no GC or can be performed relatively efficiently, resulting in less TBW depletion.<\/p>\n\n\n\n<h2 id=\"outline__6\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">Don&#8217;t let your devices keep reading the same data!<\/mark><\/h2>\n\n\n\n<p><strong>\uff1cPoint: Be careful with workloads that frequently read specific data.\uff1e<\/strong><\/p>\n\n\n\n<p>\u3000NAND flash memory has a function called <a href=\"https:\/\/www.hagisol.com\/techblog\/?p=877\" data-type=\"URL\" data-id=\"https:\/\/www.hagisol.com\/techblog\/?p=877\">Read Disturb.<\/a><\/p>\n\n\n\n<p>\u3000The increase in the number of errors due to this characteristic should be addressed. For example, by recording the number of readings and copying the data to another location when the threshold is exceeded. Our SSDs are equipped with <a href=\"https:\/\/www.hagisol.com\/technology\/#refresh\" data-type=\"URL\" data-id=\"https:\/\/www.hagisol.com\/technology\/#refresh\">refresh<\/a> as a countermeasure against this read disturbance.<\/p>\n\n\n\n<p>\u3000However, this process also causes data copy(writing to NAND flash memory) which increases lifetime consumption and reduces TBW.<\/p>\n\n\n\n<p>\u3000In other words, <strong>the use of SSDs to read the same data a lot of times in a short period is not NAND-friendly.<\/strong><\/p>\n\n\n\n<p>\u3000The frequency and number of reads for which this characteristic becomes a problem depends on the NAND flash memory and the management algorithm of the SSD.<\/p>\n\n\n\n<p>\u3000In our SSDs, the characteristics of the NAND flash memory used are confirmed through in-house experiments, and the number of read cycles to perform the above refresh and other parameters are set.<\/p>\n\n\n\n<h2 id=\"outline__7\"><a href=\"https:\/\/qiita.com\/ken-yossy\/items\/094533052380e9d3f96c#%E3%81%8A%E3%82%8F%E3%82%8A%E3%81%AB\"><\/a><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">Conclusion<\/mark><\/h2>\n\n\n\n<p>\u3000Lastly, this article summarizes the &#8220;not-so-gentle&#8221; use of SSDs from the perspective of its lifetime consumption.<\/p>\n\n\n\n<p>\u3000There are a wide range of using SSD which can affect its lifespan, however, we hope this will give a hand for you when selecting an SSD in the future.<\/p>\n\n\n\n<p>\u3000The next article in this series, we will continue explaining the &#8220;not-so-gentle&#8221; use of SSDs.<\/p>\n\n\n\n<h2 id=\"outline__8\"><a href=\"https:\/\/qiita.com\/ken-yossy\/items\/094533052380e9d3f96c#reference\"><\/a><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">References<\/mark><\/h2>\n\n\n\n<p>[1] Kim, et al.,&nbsp;<em>&#8220;A Space-efficient Flash Translate Layer for Compactflash Systems&#8221;<\/em>, IEEE Transactions on Consumer Electronics, vol. 48, no. 2, pp. 336-375, May, 2002<br>[2] Hu, el al.,&nbsp;<em>&#8220;Achieving page-mapping FTL performance at block-mapping FTL cost by hiding address translation&#8221;<\/em>, in proceedings of IEEE 26th Symposium on Mass Storage Systems and Technologies (MSST), May, 2010<br>[3]&nbsp;<em>&#8220;<a rel=\"noreferrer noopener\" href=\"https:\/\/accelazh.github.io\/ssd\/A-Summary-On-SSD-And-FTL\" target=\"_blank\">A Summary on SSD &amp; FTL<\/a>&#8220;<\/em> ,Viewed June 14, 2022<br>[4] Aso, Hanabusa, &#8220;SSD Mechanisms and Characteristics,&#8221;Design Wave Magazine, no. 132, page 36, October, 2008<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-small-font-size\">Trademarks of Other Companies<br>Although registered trademark marks are not indicated in the articles, company names and product names appearing in the articles are generally trademarks or registered trademarks of the respective companies.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-small-font-size\">About the article<br>The content of this article is information at the time of publication. Please note that the information is subject to change without notice.<\/p>\n\n\n\n<h2 id=\"outline__9\" class=\"has-vivid-cyan-blue-color has-text-color\">Contact Us<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"is-layout-flex wp-block-buttons\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-50\"><a class=\"wp-block-button__link has-white-color has-vivid-cyan-blue-background-color has-text-color has-background wp-element-button\" href=\"https:\/\/www.hagisol.com\/form\/contact.php\">Click here to contact us<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>To make the most of the life of SSDs, we will explain &#8220;how to avoid using them&#8221;. This is the first installment (two installments in total).<\/p>\n","protected":false},"author":4,"featured_media":853,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[23,24],"_links":{"self":[{"href":"https:\/\/www.hagisol.com\/techblog\/index.php?rest_route=\/wp\/v2\/posts\/848"}],"collection":[{"href":"https:\/\/www.hagisol.com\/techblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hagisol.com\/techblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hagisol.com\/techblog\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hagisol.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=848"}],"version-history":[{"count":49,"href":"https:\/\/www.hagisol.com\/techblog\/index.php?rest_route=\/wp\/v2\/posts\/848\/revisions"}],"predecessor-version":[{"id":1893,"href":"https:\/\/www.hagisol.com\/techblog\/index.php?rest_route=\/wp\/v2\/posts\/848\/revisions\/1893"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hagisol.com\/techblog\/index.php?rest_route=\/wp\/v2\/media\/853"}],"wp:attachment":[{"href":"https:\/\/www.hagisol.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=848"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hagisol.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=848"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hagisol.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}