Gett SSD params

Пользователям Windows намного больше повезло в плане различных утилит для получения различной информации о “железе”, в Linux хоть и не всё так красиво выглядит но утилиток тоже хватает, правда в большенстве случаев консольных :)

Захотелось посмотреть чем живёт мой SSD диск KINGSTON SVP200S37A120G под CentOS7, включен ли TRIM и другие плюшки.

С просмотром S.M.A.R.T. параметров проблем не возникнет в большинстве дистрибьютивов Linux так-как скорее всего уже предустановленн пакет smartmontools и в его комплекте имеется утилита smartctl и она вполне справляется со своими задачами (в некоторых случаях придётся заглянуть в документацию на диск и посмотреть список ID и их описание).

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[sysalex@notebook etc]# smartctl --all /dev/sda
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-123.20.1.el7.x86_64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     SandForce Driven SSDs
Device Model:     KINGSTON SVP200S37A120G
Serial Number:    50026B722B023893
LU WWN Device Id: 5 0026b7 22b023893
Firmware Version: 507KC4
User Capacity:    120 034 123 776 bytes [120 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS, ACS-2 T13/2015-D revision 3
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Wed Mar 18 17:12:17 2015 EET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                  was never started.
                  Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                  without error or no self-test has ever
                  been run.
Total time to complete Offline
data collection:      (    0) seconds.
Offline data collection
capabilities:              (0x7b) SMART execute Offline immediate.
                  Auto Offline data collection on/off support.
                  Suspend Offline collection upon new
                  command.
                  Offline surface scan supported.
                  Self-test supported.
                  Conveyance Self-test supported.
                  Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                  power-saving mode.
                  Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                  General Purpose Logging supported.
Short self-test routine
recommended polling time:      (   1) minutes.
Extended self-test routine
recommended polling time:      (  48) minutes.
Conveyance self-test routine
recommended polling time:      (   2) minutes.
SCT capabilities:            (0x0021)   SCT Status supported.
                  SCT Data Table supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   120   120   050    Pre-fail  Always       -       0/0
  5 Retired_Block_Count     0x0033   100   100   003    Pre-fail  Always       -       0
  9 Power_On_Hours_and_Msec 0x0032   099   099   000    Old_age   Always       -       1137h+22m+47.750s
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       133
171 Program_Fail_Count      0x0032   000   000   000    Old_age   Always       -       0
172 Erase_Fail_Count        0x0032   000   000   000    Old_age   Always       -       0
174 Unexpect_Power_Loss_Ct  0x0030   000   000   000    Old_age   Offline      -       105
177 Wear_Range_Delta        0x0000   000   000   000    Old_age   Offline      -       1
181 Program_Fail_Count      0x0032   000   000   000    Old_age   Always       -       0
182 Erase_Fail_Count        0x0032   000   000   000    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
194 Temperature_Celsius     0x0022   035   075   000    Old_age   Always       -       35 (Min/Max 13/75)
195 ECC_Uncorr_Error_Count  0x001c   100   100   000    Old_age   Offline      -       0/0
196 Reallocated_Event_Count 0x0033   100   100   003    Pre-fail  Always       -       0
201 Unc_Soft_Read_Err_Rate  0x001c   100   100   000    Old_age   Offline      -       0/0
204 Soft_ECC_Correct_Rate   0x001c   100   100   000    Old_age   Offline      -       0/0
230 Life_Curve_Status       0x0013   100   100   000    Pre-fail  Always       -       100
231 SSD_Life_Left           0x0013   100   100   010    Pre-fail  Always       -       0
233 SandForce_Internal      0x0000   000   000   000    Old_age   Offline      -       885
234 SandForce_Internal      0x0032   000   000   000    Old_age   Always       -       805
241 Lifetime_Writes_GiB     0x0032   000   000   000    Old_age   Always       -       805
242 Lifetime_Reads_GiB      0x0032   000   000   000    Old_age   Always       -       621

SMART Error Log not supported

SMART Self-test Log not supported

SMART Selective self-test log data structure revision number 0
Note: revision number not 1 implies that no selective self-test has ever been run
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

Вот и получили более чем исчерпывающую информацию о установленном диске.
Фактически из всей простыни нас интересует “шапка” и атрибут Life_Curve_Status - некий процент жизненной силы у диска и если он уменьшится то атрибут SSD_Life_Left должен увеличится на то-же число .
В шапке отлично видно модель, версию прошивки и в моём случае обидную строчку

1
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)

Что извещает о печальном - на ноуте SATA 3Gb/s и половина прелести от SSD теряется :)

В свою очередь, smartctl отображает далеко не всю информацию о диске и для получения списка поддерживаемых диском “плюшек” необходимо воспользоватся другой утилитой hdparm (yum install hdparm)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[sysalex@notebook etc]# hdparm -I /dev/sda

/dev/sda:

ATA device, with non-removable media
  Model Number:       KINGSTON SVP200S37A120G
  Serial Number:      50026B722B023893
  Firmware Revision:  507KC4
  Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
Standards:
  Used: unknown (minor revision code 0x0110)
  Supported: 8 7 6 5
  Likely used: 8
Configuration:
  Logical     max current
  cylinders   16383   16383
  heads       16  16
  sectors/track   63  63
  --
  CHS current addressable sectors:   16514064
  LBA    user addressable sectors:  234441648
  LBA48  user addressable sectors:  234441648
  Logical  Sector size:                   512 bytes
  Physical Sector size:                   512 bytes
  Logical Sector-0 offset:                  0 bytes
  device size with M = 1024*1024:      114473 MBytes
  device size with M = 1000*1000:      120034 MBytes (120 GB)
  cache/buffer size  = unknown
  Nominal Media Rotation Rate: Solid State Device
Capabilities:
  LBA, IORDY(can be disabled)
  Queue depth: 32
  Standby timer values: spec'd by Standard, no device specific minimum
  R/W multiple sector transfer: Max = 16   Current = 16
  Advanced power management level: 254
  DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
       Cycle time: min=120ns recommended=120ns
  PIO: pio0 pio1 pio2 pio3 pio4
       Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
  Enabled Supported:
     *    SMART feature set
         Security Mode feature set
     *    Power Management feature set
     *    Write cache
          Look-ahead
     *    Host Protected Area feature set
     *    WRITE_BUFFER command
     *    READ_BUFFER command
     *    NOP cmd
     *    DOWNLOAD_MICROCODE
     *    Advanced Power Management feature set
         Power-Up In Standby feature set
     *    SET_FEATURES required to spinup after power up
     *    48-bit Address feature set
     *    Mandatory FLUSH_CACHE
     *    FLUSH_CACHE_EXT
     *    SMART error logging
     *    SMART self-test
     *    General Purpose Logging feature set
     *    WRITE_{DMA|MULTIPLE}_FUA_EXT
     *    64-bit World wide name
     *    IDLE_IMMEDIATE with UNLOAD
          Write-Read-Verify feature set
     *    {READ,WRITE}_DMA_EXT_GPL commands
     *    Segmented DOWNLOAD_MICROCODE
     *    Gen1 signaling speed (1.5Gb/s)
     *    Gen2 signaling speed (3.0Gb/s)
     *    Gen3 signaling speed (6.0Gb/s)
     *    Native Command Queueing (NCQ)
     *    Host-initiated interface power management
     *    Phy event counters
     *    unknown 76[14]
     *    unknown 76[15]
     *    DMA Setup Auto-Activate optimization
          Device-initiated interface power management
     *    Software settings preservation
     *    SMART Command Transport (SCT) feature set
     *    SCT Data Tables (AC5)
     *    SET MAX SETPASSWORD/UNLOCK DMA commands
     *    Data Set Management TRIM supported (limit 1 block)
     *    Deterministic read data after TRIM
Security:
  Master password revision code = 65534
      supported
  not enabled
  not locked
      frozen
  not expired: security count
      supported: enhanced erase
  2min for SECURITY ERASE UNIT. 2min for ENHANCED SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 50026b722b023893
  NAA     : 5
  IEEE OUI    : 0026b7
  Unique ID   : 22b023893
Checksum: correct

Тут мы уже видим полный список поддерживаемых плюшек и то что вообще наш диск умеет.

Может что-то упустил? Комментарии приветствуются.

Комментарии