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.

Leave a comment ?

13 Comments.

  1. Alexandr_from_Russia

    Thank you bro!

  2. Intel SSD
    The raw value of this attribute reports the total number of sectors written by the host system. The raw value is increased by 1 for every 65,536 sectors (32MB) written by the host.

    https://www.intel.com/content/dam/support/us/en/documents/solid-state-drives/Intel_SSD_Smart_Attrib_for_SATA.PDF

  3. Hi
    Intel counts another way
    Total LBAs Written - The raw value of this attribute reports the total number of sectors written by the host system. The raw value is increased by 1 for every 65,536 sectors (32MB) written by the host.

    https://www.intel.com/content/dam/support/us/en/documents/solid-state-drives/Intel_SSD_Smart_Attrib_for_SATA.PDF

  4. Hi. I have a question. The information for Kingston A400 says that "Total_LBAs_Written means Lifetime write from host (each GB)" Do I have to read the information as GB or the result from the calculator. Thanks.

  5. Thank you for all the information. If smartctl reports a different logical and physical sector size, which is the correct one to use ?
    Thanks

  6. My drive reports:

    Sector Sizes: 512 bytes logical, 4096 bytes physical

    Which sector size do I use for calculation?

    Thanks

  7. Sector Sizes: 512 bytes logical, 4096 bytes physical
    Which sector size do I use for calculation?

    ++++

  8. Crucial MX SSD drives have SMART attribute 246 as Total_LBAs_Written.

  9. I'm confused why is total lBA writes lower shouldn't they be higher then host writes because of Garbage collection and wear leveling moving data to different pages/blocks

    dont understand how can Gb be same if TB is different

    Total LBAs Written 40822937188
    site total LBA written

    Total Bytes Written (GB)
    19466 GB
    Total Bytes Written (TB)
    19.01 TB

    crystal disk host writes

    19466 GB
    190.10TB

  10. It is ambiguous, I have 2 ssd and one HP/Seagate is XXXX Gb another is raw*512/1024^3!!

  11. what do you mean

  12. FWIW, the "Total LBAs written" for a Sandisk Ultra 3d SSD (aka WD Blue SSD) is actually the pre-calculated GB written number.

    This can be confirmed in Linux by running smartctl /dev/sda -l devstat, and plugging in the 'Logical Sectors Written' number into the above calculator under Total LBAs written and comparing the 'GB written' to the Total_LBAs_Written value you see after running smartctl /dev/sda --all. i.e. They should be the same.

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.