thomas-krenn / TKperf

Performance test tool for SSDs, HDDs and RAID devices
https://www.thomas-krenn.com/en/wiki/TKperf
GNU General Public License v3.0
50 stars 23 forks source link

Query SMART attributes via smartcrl before and after a test run #4

Open tk-wfischer opened 7 years ago

tk-wfischer commented 7 years ago

As a test run generates a lot of writes to an SSD, it would be interesting to collect the current state of the SMART attributes before and after a test run.

The following output shows the differences between the SMART attributes before and after a test run of an RAID1 (SMART attributes are from the first of the two SSDs in the RAID):

$ diff ssd-1-20170104-1515h.txt ssd-1-20170105-0904h.txt
17c17
< Local Time is:    Wed Jan  4 16:14:37 2017 CET
---
> Local Time is:    Thu Jan  5 10:03:52 2017 CET
64c64
<   9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       2300
---
>   9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       2317
70c70
< 175 Power_Loss_Cap_Test     0x0033   100   100   010    Pre-fail  Always       -       7230 (6 34)
---
> 175 Power_Loss_Cap_Test     0x0033   100   100   010    Pre-fail  Always       -       7230 (6 1103)
74c74
< 190 Temperature_Case        0x0022   073   072   000    Old_age   Always       -       27 (Min/Max 27/28)
---
> 190 Temperature_Case        0x0022   073   055   000    Old_age   Always       -       27 (Min/Max 27/45)
79c79
< 225 Host_Writes_32MiB       0x0032   100   100   000    Old_age   Always       -       513418
---
> 225 Host_Writes_32MiB       0x0032   100   100   000    Old_age   Always       -       776228
86,88c86,88
< 241 Host_Writes_32MiB       0x0032   100   100   000    Old_age   Always       -       513418
< 242 Host_Reads_32MiB        0x0032   100   100   000    Old_age   Always       -       167150
< 243 NAND_Writes_32MiB       0x0032   100   100   000    Old_age   Always       -       771842
---
> 241 Host_Writes_32MiB       0x0032   100   100   000    Old_age   Always       -       776228
> 242 Host_Reads_32MiB        0x0032   100   100   000    Old_age   Always       -       253375
> 243 NAND_Writes_32MiB       0x0032   100   100   000    Old_age   Always       -       1200720
RHMi commented 5 years ago

This sounds very reasonable for me to check SMART data between measurements. Wich tool was used to get the SMART data, if SSD's are attached to RAID Controller (i.e. Megaraid)?