AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / unix / 问题 / 780349
Accepted
Jack G
Jack G
Asked: 2024-07-18 09:33:42 +0800 CST2024-07-18 09:33:42 +0800 CST 2024-07-18 09:33:42 +0800 CST

smartctl 谎称 NVME 的使用寿命约为 2800TBW?我的 NVME 的实际使用寿命是多少?

  • 772

smartctl -x在我的三星 SSD 860 EVO M.2 2TB 上显示:

Device Statistics (GP Log 0x04)
Page  Offset Size        Value Flags Description
0x01  =====  =               =  ===  == General Statistics (rev 1) ==
0x01  0x008  4            1132  ---  Lifetime Power-On Resets
0x01  0x010  4            6584  ---  Power-on Hours
0x01  0x018  6     59675855461  ---  Logical Sectors Written
0x01  0x020  6      1711777462  ---  Number of Write Commands
0x01  0x028  6     51882440157  ---  Logical Sectors Read
0x01  0x030  6      1869976194  ---  Number of Read Commands
0x01  0x038  6          293000  ---  Date and Time TimeStamp
0x04  =====  =               =  ===  == General Errors Statistics (rev 1) ==
0x04  0x008  4               0  ---  Number of Reported Uncorrectable Errors
0x04  0x010  4              97  ---  Resets Between Cmd Acceptance and Completion
0x05  =====  =               =  ===  == Temperature Statistics (rev 1) ==
0x05  0x008  1              40  ---  Current Temperature
0x05  0x020  1              64  ---  Highest Temperature
0x05  0x028  1              18  ---  Lowest Temperature
0x05  0x058  1              70  ---  Specified Maximum Operating Temperature
0x06  =====  =               =  ===  == Transport Statistics (rev 1) ==
0x06  0x008  4           20530  ---  Number of Hardware Resets
0x06  0x010  4               0  ---  Number of ASR Events
0x06  0x018  4               0  ---  Number of Interface CRC Errors
0x07  =====  =               =  ===  == Solid State Device Statistics (rev 1) ==
0x07  0x008  1               1  N--  Percentage Used Endurance Indicator
                                |||_ C monitored condition met
                                ||__ D supports DSN
                                |___ N normalized value

28TB 的容量听起来有点低,因为我已经拥有这款 NVME 一年了,但这是可以接受的。然而,使用百分比耐久度指标仅为 1%。这意味着这款设备中仍有大约 100 倍或 2800TBW 的剩余容量,这是额定容量 1200TBW 的两倍多,所以这不可能是舍入误差。

smartctl 撒谎了吗?(并不是说它会撒谎;我的意思是,我的 NVME 是否在对 smartctl 撒谎,smartctl 是否误解了我的 NVME,等等?)我如何才能确定我的 NVME 中剩余的实际 TBW 寿命?

smartctl
  • 2 2 个回答
  • 859 Views

2 个回答

  • Voted
  1. Best Answer
    ron
    2024-07-18T10:19:53+08:002024-07-18T10:19:53+08:00

    我不知道有什么具体的数字可以可靠地作为基于写入的位数的 SSD 寿命的 100% 标记。不确定这是否真的有效,除非固件中的 if 语句逻辑炸弹让你购买新的。

    我之前问过这个问题,我认为根据处理的 GB 数来判断SSD 的使用寿命更好,这取决于 SSD 的使用频率。我帖子中的一张图片显示了你没有包含在你帖子中的输出

    如何在 Linux 中生成写入磁盘(SSD)的总字节数(TBW、DWPD)的每日报告

    必须等到明天,那时我才能检查已经使用了 3 年的 SSD 的耐久性数字显示多少...这里是 smartctl 输出,供参考,它是 24/7 开启的 raid5 的一部分的磁盘:

    smartctl --xall -d megaraid,7 /dev/sdb
    smartctl 7.1 2019-12-30 r5022 [x86_64-linux-4.18.0-553.8.1.el8_10.x86_64] (local build)
    Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
    
    === START OF INFORMATION SECTION ===
    Vendor:               TOSHIBA
    Product:              KPM5WRUG3T84
    Revision:             B326
    Compliance:           SPC-4
    User Capacity:        3,840,755,982,336 bytes [3.84 TB]
    Logical block size:   512 bytes
    Physical block size:  4096 bytes
    LU is resource provisioned, LBPRZ=1
    Rotation Rate:        Solid State Device
    Form Factor:          2.5 inches
    Logical Unit id:      0x58ce38ee209a61b5
    Serial number:        EDKH
    Device type:          disk
    Transport protocol:   SAS (SPL-3)
    Local Time is:        Thu Jul 18 09:27:38 2024 EDT
    SMART support is:     Available - device has SMART capability.
    SMART support is:     Enabled
    Temperature Warning:  Enabled
    Read Cache is:        Enabled
    Writeback Cache is:   Enabled
    
    === START OF READ SMART DATA SECTION ===
    SMART Health Status: OK
    
    Percentage used endurance indicator: 8%
    Current Drive Temperature:     25 C
    Drive Trip Temperature:        70 C
    
    Manufactured in week 24 of year 2019
    Elements in grown defect list: 0
    
    Error counter log:
               Errors Corrected by           Total   Correction     Gigabytes    Total
                   ECC          rereads/    errors   algorithm      processed    uncorrected
               fast | delayed   rewrites  corrected  invocations   [10^9 bytes]  errors
    read:          0        8         8         8          8     737163.705           0
    write:         0        0         0         0          0      33273.244           0
    verify:        0        8         8         8          8     691461.664           0
    
    Non-medium error count:      114
    
    SMART Self-test log
    Num  Test              Status                 segment  LifeTime  LBA_first_err [SK ASC ASQ]
         Description                              number   (hours)
    # 1  Background long   Completed                   -      22                 - [-   -    -]
    # 2  Background short  Completed                   -      22                 - [-   -    -]
    
    Long (extended) Self-test duration: 300 seconds [5.0 minutes]
    
    Background scan results log
      Status: no scans active
        Accumulated power on time, hours:minutes 29843:58 [1790638 minutes]
        Number of background scans performed: 0,  scan progress: 0.00%
        Number of background medium scans performed: 0
    

    约 3.3 TB 写入时间超过 1243 天,耐久性指标显示为 8%。 对于工作环境中全天候运行的 raid-5 数据卷的一部分磁盘。

    • 5
  2. TooTea
    2024-07-18T19:48:57+08:002024-07-18T19:48:57+08:00

    数字看起来似乎是合理的。smartctl当然不是说谎,它只是打印驱动器固件报告的内容。

    请注意,Percentage Used Endurance Indicator始终是整数,并且完全有可能是通过简单截断小数部分而不是正确舍入而产生的。因此,您的驱动器当前使用率为 1.99%,几乎与额定耐用性完全匹配。

    然而,更重要的是,额定寿命只是一个粗略的估计(没有人能够很好地预测未来),如果制造商不错,那么很可能是低估了。(没有人介意驱动器在额定寿命之后很长时间内出现故障,但在达到额定耐久性之前出现严重故障可能会引起负面报道。)

    无论如何,实际上不可能以任何准确度推断出 1% 的使用情况与总使用寿命。是的,与制造商在编写数据表时估计的相比,固件肯定更了解实际损坏的扇区数。但是,磨损程度可能非常非线性,因此您可以看到驱动器从“使用 50%”到完全损坏所用的时间比同一驱动器经历前 5% 所用的时间要短得多。因此,只需将其解释为任意比例,其中“1%”表示“全新”,“80%”表示“很快需要更换”。

    • 4

相关问题

  • SMART 测试在之前的测试失败后没有失败地完成,没有重新分配任何扇区?

  • smartctl 报告整体健康测试通过但测试失败?

  • 是否可以将 Debian 9 的 SMART Monitoring 放入 Slack?

  • 无法启用对外部硬盘驱动器的 SMART 支持

  • smartmontools - 自动测试是否与运行简短测试相同?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve