total data written to EXT4 on NVMe in Linux

Post Reply
zemerdon
Site Admin
Posts: 255
Joined: Mon Jan 23, 2023 8:13 pm

total data written to EXT4 on NVMe in Linux

Post by zemerdon »

Code: Select all

zemerdon@NAS:~$ cat nvme_tbw.sh 
echo "*** $(date -R) ***" 
tbw=$(cat /sys/fs/ext4/nvme0n1p2/lifetime_write_kbytes)
TB=1000000000
echo "TB written to Samsung 980 PRO NVMe 1TB:"
calc $tbw / $TB
zemerdon@NAS:~$ ./nvme_tbw.sh
*** Fri, 05 Jan 2024 11:27:55 +1000 ***
TB written to Samsung 980 PRO NVMe 1TB:
19.507116717
Post Reply