[archlinux][hardware] 查看SSD的使用寿命

因为最近把16GB的SSD做成了HDD的cache,所以比较关系寿命问题。

使用smartctl工具。

参考:https://www.v2ex.com/t/261373

linux 下面只有 smartmontools 这一个工具,而且只对像三丧和 intel 这样的大厂支持良好,其余的厂家文档不全或故意不公开接口,第三方工具就没办法了。

其中最后一个最重要和直观 “ Percentage Used Endurance Indicator ” ,单位是百分比,新的是 0%

我现在的寿命是1%, 持续观察一阵。

/home/tong/bin [tong@T7] [:]
> sudo smartctl -l devstat /dev/sdb
smartctl 6.5 -- r4318 [x86_64-linux-4.8.--ARCH] (local build)
Copyright (C) -, Bruce Allen, Christian Franke, www.smartmontools.org Device Statistics (GP Log 0x04)
Page Offset Size Value Flags Description
0x05 ===== = = === == Temperature Statistics (rev ) ==
0x05 0x008 --- Current Temperature
0x05 0x010 - --- Average Short Term Temperature
0x05 0x018 - --- Average Long Term Temperature
0x05 0x020 --- Highest Temperature
0x05 0x028 --- Lowest Temperature
0x05 0x030 --- Highest Average Short Term Temperature
0x05 0x038 --- Lowest Average Short Term Temperature
0x05 0x040 - --- Highest Average Long Term Temperature
0x05 0x048 - --- Lowest Average Long Term Temperature
0x05 0x050 --- Time in Over-Temperature
0x05 0x058 --- Specified Maximum Operating Temperature
0x05 0x060 --- Time in Under-Temperature
0x05 0x068 --- Specified Minimum Operating Temperature
0x07 ===== = = === == Solid State Device Statistics (rev ) ==
0x07 0x008 1 N-- Percentage Used Endurance Indicator
|||_ C monitored condition met
||__ D supports DSN
|___ N normalized value /home/tong/bin [tong@T7] [:]
>

百合同样做cache,在一年之后便坏掉了的SSD,目前值为161 。。。

上一篇:bootstrap实现 手机端滑动效果,滑动到下一页,jgestures.js插件


下一篇:利用JS模拟排队系统