Wonder if your NVME SSD is reaching retirement age? Follow these simple steps to get an idea.
Using the nvme command, obtain smart-log information. Here I’m only interested in the read and write count.
# With the nvme command, multiply the results by 512*1000. ❯ nvme smart-log /dev/nvme0 | egrep ^data_ data_units_read : 40,119,913 data_units_written : 82,438,290 # With smartctl, it's calculated automatically ❯ smartctl -a /dev/nvme0 | grep ^Data Data Units Read: 40,119,910 [20.5 TB] Data Units Written: 82,438,264 [42.2 TB]
So my disk has a read count of 20T and write count of 42T. With these numbers, I can then cross check with the manufacturer specification. My disk is rated at 300 TBW (terrabytes written).

With that, my disk still got 87% of its life. However I notice it is not performing as good as when it was new.