Use this when estimating SSD life from total writes.
TBW
TBW (terabytes written) is an SSD's endurance rating: the total data that can be written over its warranty, such as 600 TBW. Compare it with your daily write volume to estimate life.
1. TBW = total terabytes written rating.
2. Compare actual writes to rating.
3. Write amplification uses more NAND writes than host writes.
4. Plan replacement.
5. Warranty often tied to TBW.
host writes → NAND writes → TBW consumption
Context & applicabilityCommon mistakes · platform/version boundaries
- Comparing TBW across drives of different capacity without normalising.
- Forgetting write amplification from RAID parity, ZFS and databases.
- Treating TBW as a failure date — it is a warranty limit; drives often last longer, but monitor wear.
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- TBW is total writes over warranty.
- Compare with daily writes.
- Wear indicators show remaining life.
nvme smart-log /dev/nvme0 | grep data_units_written— written (×512,000 bytes)smartctl -A /dev/sdX | grep -i -e LBAs_Written -e Host_Writes— SATA writesvendor datasheet— rated TBW
ReferenceHow it works1 section · depth on demand
Using TBW
Compare TBW with actual writes:
- NVMe:
nvme smart-log /dev/nvme0→data_units_written× 512 000 bytes. - SATA:
smartctl -A→Total_LBAs_Written× sector size.
Example: a 1 TB drive rated 600 TBW written at 100 GB/day lasts ~16 years by rating. TBW = DWPD × capacity × 365 × warranty years.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
TBW is the endurance rating; the drive reports what it has consumed
TBW (terabytes written) is the vendor's warranted write endurance. DWPD (drive writes per day) expresses the same rating relative to capacity over the warranty period:
TBW = DWPD × capacity (TB) × 365 × warranty years
Example: 1 DWPD × 1.92 TB × 365 × 5 ≈ 3500 TBW
Reading consumption on NVMe
nvme-smart-log(1) returns the SMART/Health log, in readable or JSON form.
# nvme smart-log /dev/nvme0 | grep -E 'percentage_used|data_units_written|available_spare'
available_spare : 100%
percentage_used : 12%
data_units_written : 412,733,019
Host writes ≈ data_units_written × 512 000 bytes ≈ 211 TB in this example. percentage_used is the drive's own estimate of rated life consumed.
Planning with it
| Step | Example |
|---|---|
Measure daily writes (data_units_written delta over 7 days) | 0.8 TB/day |
| Remaining rated endurance | 3500 − 211 ≈ 3290 TB |
| Remaining at that rate | ≈ 4100 days (~11 years) |
What drives writes up
| Cause | Mitigation |
|---|---|
| Write amplification from small random writes | Leave free space (over-provisioning), enable TRIM |
| Logging, swap, temp data on SSD | Rotate logs, size swap sensibly |
| ZFS/Ceph journals or databases | Use drives rated for higher DWPD |
| Rebuilds and rebalances | Count them in the write budget |
When percentage_used passes 100 % the drive often keeps working, but it is beyond its rating. Plan replacement before that point for important data.
Illustrative example (not a system capture).
Worked example
TBW (terabytes written) is the endurance the vendor warrants: how much host data can be written over the warranty period. Example: a 3.84 TB drive rated 1 DWPD for 5 years ≈ 3.84 × 365 × 5 ≈ 7 000 TBW.
smartctl -a /dev/nvme0 | grep -E 'Data Units Written|Percentage Used'
# Data Units Written × 512 000 bytes = bytes written
nvme smart-log /dev/nvme0 | grep -E 'data_units_written|percentage_used'
Compare actual writes per day with the rating: a drive writing 1 TB/day with 7 000 TBW lasts ~19 years by endurance; one writing 10 TB/day lasts under 2.
ReferenceConfiguration & state1 section · depth on demand
Converting TBW and DWPD
TBW = DWPD × capacity (TB) × 365 × warranty years.
Example: 3.84 TB drive, 1 DWPD, 5-year warranty → 1 × 3.84 × 365 × 5 ≈ 7,000 TBW. Compare with measured writes: smartctl -a shows Data Units Written (NVMe, each unit = 512,000 bytes) or Total_LBAs_Written (SATA).
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Physical Storage Media → SSD → TBW. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://nvmexpress.org/specifications/ · confidence 94%