Skip to main content

SSD Total Bytes Written (TBW) Calculator


Solid-State-Drives are getting more and more common. A problem that comes with SSDs is their limited cell lifetime. Depending on their manufacturing technique, each cell can be overwritten from 1.000 times in consumer TLC SSDs to up to 100.000 times in enterprise SLC based SSDs.

The value to keep an eye on is the guaranteed TBW (Total Bytes Written or Terabytes Written) which is typically provided by the vendor in their specifications. This value describes how many Terabytes can be written to the device until the warranty expires. The TBW value can be readout with S.M.A.R.T. in the Total_LBAs_Written field. The value is in LBAs which has to be multiplied with the sector size:

SSD Total Bytes Written Calculator

Calculates total bytes written based on S.M.A.R.T Attribute 241/Total_LBAs_Written










On common Linux Systems you can determine "Total LBAs Written" and "Sector Size" with smartctl:

~# smartctl /dev/ada0 --all |grep "Sector Size"
Sector Size: 512 bytes logical/physical
~# smartctl /dev/ada0 --all | grep Total_LBAs_Written
241 Total_LBAs_Written 0x0032 099 099 000 Old_age Always - 25351376107

Smartctl is not available on ESXi hosts by default, but the Linux compatible precompiled versions should work with ESXi (use the latest x86_64 build). Just copy it to your ESXi host, make it executable and run it as explained here.

</div>
</div>
<div class="header-menu-sidebar-overlay hfg-ov hfg-pe" onclick="if('undefined' !== typeof toggleAriaClick ) { toggleAriaClick() }"></div>
</div>
</header>

<style>.is-menu-sidebar .header-menu-sidebar { visibility: visible; }.is-menu-sidebar.menu_sidebar_slide_left .header-menu-sidebar { transform: translate3d(0, 0, 0); left: 0; }.is-menu-sidebar.menu_sidebar_slide_right .header-menu-sidebar { transform: translate3d(0, 0, 0); right: 0; }.is-menu-sidebar.menu_sidebar_pull_right .header-menu-sidebar, .is-menu-sidebar.menu_sidebar_pull_left .header-menu-sidebar { transform: translateX(0); }.is-menu-sidebar.menu_sidebar_dropdown .header-menu-sidebar { height: auto; }.is-menu-sidebar.menu_sidebar_dropdown .header-menu-sidebar-inner { max-height: 400px; padding: 20px 0; }.is-menu-sidebar.menu_sidebar_full_canvas .header-menu-sidebar { opacity: 1; }.header-menu-sidebar .menu-item-nav-search:not(.floating) { pointer-events: none; }.header-menu-sidebar .menu-item-nav-search .is-menu-sidebar { pointer-events: unset; }.nav-ul li:focus-within .wrap.active + .sub-menu { opacity: 1; visibility: visible; }.nav-ul li.neve-mega-menu:focus-within .wrap.active + .sub-menu { display: grid; }.nav-ul li > .wrap { display: flex; align-items: center; position: relative; padding: 0 4px; }.nav-ul:not(.menu-mobile):not(.neve-mega-menu) > li > .wrap > a { padding-top: 1px }</style><style>.header-menu-sidebar .nav-ul li .wrap { padding: 0 4px; }.header-menu-sidebar .nav-ul li .wrap a { flex-grow: 1; display: flex; }.header-menu-sidebar .nav-ul li .wrap a .dd-title { width: var(--wrapdropdownwidth); }.header-menu-sidebar .nav-ul li .wrap button { border: 0; z-index: 1; background: 0; }.header-menu-sidebar .nav-ul li:not([class*=block]):not(.menu-item-has-children) > .wrap > a { padding-right: calc(1em + (18px*2)); text-wrap: wrap; white-space: normal;}.header-menu-sidebar .nav-ul li.menu-item-has-children:not([class*=block]) > .wrap > a { margin-right: calc(-1em - (18px*2)); padding-right: 46px;}</style>

 
<main id="content" class="neve-main">

<div class="container single-post-container">
<div class="row">
<article id="post-18796"
class="nv-single-post-wrap col post-18796 post type-post status-publish format-standard hentry category-virtualization tag-calculator tag-ssd">
<div class="entry-header" ><div class="nv-title-meta-wrap"><h1 class="title entry-title">SSD Total Bytes Written (TBW) Calculator</h1><ul class="nv-meta-list"><li class="meta author vcard "><span class="author-name fn">by <a href="https://www.virten.net/author/admin/" title="Posts by Florian Grehl" rel="author">Florian Grehl</a></span></li><li class="meta date posted-on "><time class="entry-date published" datetime="2016-12-28T18:27:19+01:00" content="2016-12-28">December 28, 2016</time><time class="updated" datetime="2020-09-30T17:27:17+02:00">September 30, 2020</time></li><li class="meta comments last"><a href="https://www.virten.net/2016/12/ssd-total-bytes-written-calculator/#comments">19 Comments</a></li></ul></div></div><div class="nv-content-wrap entry-content"><p>Solid-State-Drives are getting more and more common. A problem that comes with SSDs is their limited cell lifetime. Depending on their manufacturing technique, each cell can be overwritten from 1.000 times in consumer TLC SSDs to up to 100.000 times in enterprise SLC based SSDs.</p>
<p>The value to keep an eye on is the guaranteed <strong>TBW</strong> (Total Bytes Written or Terabytes Written) which is typically provided by the vendor in their specifications. This value describes how many Terabytes can be written to the device until the warranty expires. The TBW value can be readout with S.M.A.R.T. in the <strong>Total_LBAs_Written</strong> field. The value is in LBAs which has to be multiplied with the sector size:<span id="more-18796"></span></p>
<style>@media (max-width:480px){#cp_calculatedfieldsf_pform_2{min-height:5253px;}}@media (max-width:768px){#cp_calculatedfieldsf_pform_2{min-height:797px;}}@media (max-width:1024px){#cp_calculatedfieldsf_pform_2{min-height:1391px;}}@media (min-width:1024px){#cp_calculatedfieldsf_pform_2{min-height:847px;}}</style><form name="cp_calculatedfieldsf_pform_2" id="cp_calculatedfieldsf_pform_2" action="https://www.virten.net/2016/12/ssd-total-bytes-written-calculator/" method="post" enctype="multipart/form-data" onsubmit="return fbuilderjQuery.fbuilder.doValidate(this);" class="cff-form no-prefetch cff-form-12" data-nonce="4d963cec2b">
<input type="hidden" name="cp_calculatedfieldsf_pform_psequence" value="_2" />
<input type="hidden" name="cp_calculatedfieldsf_id" value="12" />
<input type="hidden" name="cp_ref_page" value="https://www.virten.net" />
<pre style="display:none !important;"><script type="text/javascript">form_structure_2=[[{"form_identifier":"","name":"fieldname2","shortlabel":"","index":0,"ftype":"fnumber","userhelp":"","userhelpTooltip":false,"csslayout":"","title":"Total LBAs Written","predefined":"0","predefinedClick":false,"required":false,"size":"small","thousandSeparator":"","decimalSymbol":".","min":"","max":"","dformat":"digits","formats":["digits","number"],"fBuild":{},"parent":""},{"form_identifier":"","name":"fieldname4","shortlabel":"","index":1,"ftype":"fdropdown","userhelp":"","userhelpTooltip":false,"csslayout":"","title":"Sector Size","size":"small","required":false,"choiceSelected":"512 bytes - 512 bytes","showDep":false,"choices":["512 bytes","4096 bytes"],"choicesVal":["512","4096"],"choicesDep":[[],[]],"fBuild":{},"parent":""},{"form_identifier":"","name":"separator1","shortlabel":"","index":2,"ftype":"fSectionBreak","userhelp":"","userhelpTooltip":false,"csslayout":"","title":"The field below will show the calculated number of Total Bytes Written in MB, GB and TB.","fBuild":{},"parent":""},{"form_identifier":"","name":"fieldname1","shortlabel":"","index":3,"ftype":"fCalculated","userhelp":"","userhelpTooltip":false,"csslayout":"","title":"Total Bytes Written (MB)","predefined":"","required":false,"size":"small","toolbar":"default|mathematical","eq":"PREC((fieldname2*fieldname4)\/1024\/1024,0)","suffix":" MB","prefix":"","decimalsymbol":".","groupingsymbol":"","dependencies":[{"rule":"","complex":false,"fields":[""]}],"readonly":true,"hidefield":false,"fBuild":{},"parent":""},{"form_identifier":"","name":"fieldname5","shortlabel":"","index":4,"ftype":"fCalculated","userhelp":"","userhelpTooltip":false,"csslayout":"","title":"Total Bytes Written (GB)","predefined":"","required":false,"size":"small","toolbar":"default|mathematical","eq":"PREC((fieldname2*fieldname4)\/1024\/1024\/1024,0)","suffix":" GB","prefix":"","decimalsymbol":".","groupingsymbol":"","dependencies":[{"rule":"","complex":false,"fields":[""]}],"readonly":true,"hidefield":false,"fBuild":{},"parent":""},{"form_identifier":"","name":"fieldname6","shortlabel":"","index":5,"ftype":"fCalculated","userhelp":"","userhelpTooltip":false,"csslayout":"","title":"Total Bytes Written (TB)","predefined":"","required":false,"size":"small","toolbar":"default|mathematical","eq":"PREC((fieldname2*fieldname4)\/1024\/1024\/1024\/1024,2)","suffix":" TB","prefix":"","decimalsymbol":".","groupingsymbol":"","dependencies":[{"rule":"","complex":false,"fields":[""]}],"readonly":true,"hidefield":false,"fBuild":{},"parent":""},{"form_identifier":"","name":"fieldname7","shortlabel":"","index":6,"ftype":"fSectionBreak","userhelp":"","userhelpTooltip":false,"csslayout":"","title":"","fBuild":{},"parent":""}],{"0":{"title":"SSD Total Bytes Written Calculator","description":"Calculates total bytes written based on S.M.A.R.T Attribute 241\/Total_LBAs_Written","formlayout":"top_aligned","formtemplate":"","evalequations":1,"autocomplete":1},"formid":"cp_calculatedfieldsf_pform_2"}];</script></pre>
<div id="fbuilder">
<div id="fbuilder_2">
<div id="formheader_2"></div>
<div id="fieldlist_2"></div>
<div class="clearer"></div>
</div>
</div>
<div id="cp_subbtn_2" class="cp_subbtn" style="display:none;"></div><div class="clearer"></div>
<input type="hidden" id="_cpcff_public_nonce" name="_cpcff_public_nonce" value="a8de8ac18b" /><input type="hidden" name="_wp_http_referer" value="/2016/12/ssd-total-bytes-written-calculator/" /></form>
 
<p>On common Linux Systems you can determine "Total LBAs Written" and "Sector Size" with smartctl:</p>
<pre>~# smartctl /dev/ada0 --all |grep "Sector Size"
Sector Size: <span style="color: #ff0000;"><strong>512 bytes</strong></span> logical/physical
~# smartctl /dev/ada0 --all | grep Total_LBAs_Written
241 Total_LBAs_Written 0x0032 099 099 000 Old_age Always - <span style="color: #ff0000;"><strong>25351376107</strong></span></pre>
<p>Smartctl is not available on ESXi hosts by default, but the <a href="http://builds.smartmontools.org/">Linux compatible precompiled versions</a> should work with ESXi (use the latest x86_64 build). Just copy it to your ESXi host, make it executable and run it as explained <a href="http://www.virten.net/2016/05/determine-tbw-from-ssds-with-s-m-a-r-t-values-in-esxi-smartctl/">here</a>.</p>


SSD Total Bytes Written (TBW) Calculator

Solid-State-Drives are getting more and more common. A problem that comes with SSDs is their limited cell lifetime. Depending on their manufacturing technique, each cell can be overwritten from 1.000 times in consumer TLC SSDs to up to 100.000 times in enterprise SLC based SSDs.

The value to keep an eye on is the guaranteed TBW (Total Bytes Written or Terabytes Written) which is typically provided by the vendor in their specifications. This value describes how many Terabytes can be written to the device until the warranty expires. The TBW value can be readout with S.M.A.R.T. in the Total_LBAs_Written field. The value is in LBAs which has to be multiplied with the sector size:




On common Linux Systems you can determine "Total LBAs Written" and "Sector Size" with smartctl:

~# smartctl /dev/ada0 --all |grep "Sector Size"
Sector Size: 512 bytes logical/physical
~# smartctl /dev/ada0 --all | grep Total_LBAs_Written
241 Total_LBAs_Written 0x0032 099 099 000 Old_age Always - 25351376107

Smartctl is not available on ESXi hosts by default, but the Linux compatible precompiled versions should work with ESXi (use the latest x86_64 build). Just copy it to your ESXi host, make it executable and run it as explained here.