Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: jak zjistit "total write data"  (Přečteno 2307 krát)

DanielK

  • Aktivní člen
  • *
  • Příspěvků: 127
jak zjistit "total write data"
« kdy: 16 Září 2018, 16:47:55 »
Jen tak ze zvědavosti by mě zajímalo, kolik jsem celkově za dobu od koupi SSD disku (6 let) zapsal dat, existuje nějaký jednoduchý příkaz či nástroj jak to zjistit?

juwa2

  • Závislák
  • ***
  • Příspěvků: 4935
Re:jak zjistit "total write data"
« Odpověď #1 kdy: 16 Září 2018, 17:20:06 »
Utilita výrobce disku. Ale drtivá většina jich běží pod win nebo z boot media. Můžeš nabootovat třeba ubcd kde v sekci hdd/diagnosis se můžeš "vyřádit".
Pro linux existuje http://wiki.ubuntu.cz/smartmontools případně GUI gsmartcontrol
Kód: [Vybrat]
sudo apt-get install gsmartcontrol
Nejpodrobnější výpis získáš příkazem:
Kód: [Vybrat]
sudo smartctl --xall /dev/sdX
(za "X" dosaď písmeno disku)
------------------------
Některé utility udávají životnost disku, např. 50%  Tato hodnota se vztahuje k TBW udávanému výrobcem ve specifikaci. Z těchto dvou údajů pak snadno spočítáš kolik dat bylo zapsáno.
« Poslední změna: 16 Září 2018, 17:33:06 od juwa2 »

DanielK

  • Aktivní člen
  • *
  • Příspěvků: 127
Re:jak zjistit "total write data"
« Odpověď #2 kdy: 16 Září 2018, 17:44:59 »
246 Total_Host_Sector_Write -O--CK   100   100   ---    -    28993173773
To asi není to číslo které hledám, že?

Kód: [Vybrat]
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.15.0-33-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Crucial/Micron RealSSD C300/M500
Device Model:     Crucial_CT120M500SSD1
Serial Number:    140109609C54
LU WWN Device Id: 5 00a075 109609c54
Firmware Version: MU03
User Capacity:    120 034 123 776 bytes [120 GB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    Solid State Device
Form Factor:      2.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 6
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sun Sep 16 17:35:53 2018 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM level is:     254 (maximum performance)
Rd look-ahead is: Enabled
Write cache is:   Enabled
ATA Security is:  Unavailable
Wt Cache Reorder: Enabled

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

General SMART Values:
Offline data collection status:  (0x80) Offline data collection activity
was never started.
Auto Offline Data Collection: Enabled.
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: (  555) 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: (   2) minutes.
Extended self-test routine
recommended polling time: (   9) minutes.
Conveyance self-test routine
recommended polling time: (   3) minutes.
SCT capabilities:        (0x0035) SCT Status supported.
SCT Feature Control supported.
SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     POSR-K   100   100   000    -    0
  5 Reallocated_Sector_Ct   PO--CK   100   100   000    -    0
  9 Power_On_Hours          -O--CK   100   100   000    -    16976
 12 Power_Cycle_Count       -O--CK   100   100   000    -    6787
171 Program_Fail_Count      -O--CK   100   100   000    -    0
172 Erase_Fail_Count        -O--CK   100   100   000    -    0
173 Wear_Leveling_Count     -O--CK   063   063   000    -    1123
174 Unexpect_Power_Loss_Ct  -O--CK   100   100   000    -    425
180 Unused_Rsvd_Blk_Cnt_Tot PO--CK   000   000   000    -    1990
183 SATA_Iface_Downshift    -O--CK   100   100   000    -    0
184 End-to-End_Error        -O--CK   100   100   000    -    0
187 Reported_Uncorrect      -O--CK   100   100   000    -    0
194 Temperature_Celsius     -O---K   068   049   000    -    32 (Min/Max -10/51)
196 Reallocated_Event_Count -O--CK   100   100   000    -    16
197 Current_Pending_Sector  -O--CK   100   100   000    -    0
198 Offline_Uncorrectable   ----CK   100   100   000    -    0
199 UDMA_CRC_Error_Count    -O--CK   100   100   000    -    0
202 Percent_Lifetime_Used   P---CK   063   063   000    -    37
206 Write_Error_Rate        -OSR--   100   100   000    -    0
210 Success_RAIN_Recov_Cnt  -O--CK   100   100   000    -    0
246 Total_Host_Sector_Write -O--CK   100   100   ---    -    28993173773
247 Host_Program_Page_Count -O--CK   100   100   ---    -    924190309
248 Bckgnd_Program_Page_Cnt -O--CK   100   100   ---    -    3606888420
                            ||||||_ K auto-keep
                            |||||__ C event count
                            ||||___ R error rate
                            |||____ S speed/performance
                            ||_____ O updated online
                            |______ P prefailure warning

General Purpose Log Directory Version 1
SMART           Log Directory Version 1 [multi-sector log support]
Address    Access  R/W   Size  Description
0x00       GPL,SL  R/O      1  Log Directory
0x01           SL  R/O      1  Summary SMART error log
0x02           SL  R/O     51  Comprehensive SMART error log
0x03       GPL     R/O  16383  Ext. Comprehensive SMART error log
0x04       GPL,SL  R/O    255  Device Statistics log
0x06           SL  R/O      1  SMART self-test log
0x07       GPL     R/O      1  Extended self-test log
0x09           SL  R/W      1  Selective self-test log
0x10       GPL     R/O      1  SATA NCQ Queued Error log
0x11       GPL     R/O      1  SATA Phy Event Counters log
0x13       GPL     R/O      1  SATA NCQ Send and Receive log
0x24       GPL     R/O    429  Current Device Internal Status Data log
0x25       GPL     R/O    145  Saved Device Internal Status Data log
0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log
0xa0       GPL     VS    2000  Device vendor specific log
0xa0       SL      VS     208  Device vendor specific log
0xa1-0xbf  GPL,SL  VS       1  Device vendor specific log
0xc0       GPL,SL  VS      80  Device vendor specific log
0xc1-0xdf  GPL,SL  VS       1  Device vendor specific log
0xe0       GPL,SL  R/W      1  SCT Command/Status
0xe1       GPL,SL  R/W      1  SCT Data Transfer

SMART Extended Comprehensive Error Log Version: 1 (16383 sectors)
No Errors Logged

SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Vendor (0xff)       Completed without error       00%     16968         -
# 2  Vendor (0xff)       Completed without error       00%     16946         -
# 3  Vendor (0xff)       Completed without error       00%     16916         -
# 4  Vendor (0xff)       Completed without error       00%     16911         -
# 5  Vendor (0xff)       Completed without error       00%     16893         -
# 6  Vendor (0xff)       Completed without error       00%     16889         -
# 7  Vendor (0xff)       Completed without error       00%     16882         -
# 8  Vendor (0xff)       Completed without error       00%     16872         -
# 9  Vendor (0xff)       Completed without error       00%     16834         -
#10  Vendor (0xff)       Completed without error       00%     16827         -
#11  Vendor (0xff)       Completed without error       00%     16820         -
#12  Vendor (0xff)       Completed without error       00%     16766         -
#13  Vendor (0xff)       Completed without error       00%     16505         -
#14  Vendor (0xff)       Completed without error       00%     16477         -
#15  Vendor (0xff)       Completed without error       00%     16461         -
#16  Vendor (0xff)       Completed without error       00%     16455         -
#17  Vendor (0xff)       Completed without error       00%     16418         -
#18  Vendor (0xff)       Completed without error       00%     16404         -
#19  Vendor (0xff)       Completed without error       00%     16299         -

SMART Selective self-test log data structure revision number 1
 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.

SCT Status Version:                  3
SCT Version (vendor specific):       1 (0x0001)
SCT Support Level:                   0
Device State:                        Active (0)
Current Temperature:                    32 Celsius
Power Cycle Min/Max Temperature:     32/32 Celsius
Lifetime    Min/Max Temperature:     -10/51 Celsius
Under/Over Temperature Limit Count:   0/0

SCT Temperature History Version:     2
Temperature Sampling Period:         1 minute
Temperature Logging Interval:        1 minute
Min/Max recommended Temperature:      0/70 Celsius
Min/Max Temperature Limit:           -5/75 Celsius
Temperature History Size (Index):    478 (126)

Index    Estimated Time   Temperature Celsius
 127    2018-09-16 09:38    42  ***********************
 128    2018-09-16 09:39    42  ***********************
 129    2018-09-16 09:40    42  ***********************
 130    2018-09-16 09:41    41  **********************
 ...    ..( 15 skipped).    ..  **********************
 146    2018-09-16 09:57    41  **********************
 147    2018-09-16 09:58    42  ***********************
 ...    ..( 13 skipped).    ..  ***********************
 161    2018-09-16 10:12    42  ***********************
 162    2018-09-16 10:13    41  **********************
 ...    ..(  5 skipped).    ..  **********************
 168    2018-09-16 10:19    41  **********************
 169    2018-09-16 10:20    43  ************************
 170    2018-09-16 10:21    42  ***********************
 ...    ..( 17 skipped).    ..  ***********************
 188    2018-09-16 10:39    42  ***********************
 189    2018-09-16 10:40    43  ************************
 ...    ..( 12 skipped).    ..  ************************
 202    2018-09-16 10:53    43  ************************
 203    2018-09-16 10:54    42  ***********************
 ...    ..( 10 skipped).    ..  ***********************
 214    2018-09-16 11:05    42  ***********************
 215    2018-09-16 11:06    43  ************************
 216    2018-09-16 11:07    42  ***********************
 ...    ..(109 skipped).    ..  ***********************
 326    2018-09-16 12:57    42  ***********************
 327    2018-09-16 12:58     ?  -
 328    2018-09-16 12:59    27  ********
 329    2018-09-16 13:00    28  *********
 330    2018-09-16 13:01    29  **********
 331    2018-09-16 13:02    30  ***********
 332    2018-09-16 13:03    31  ************
 333    2018-09-16 13:04    32  *************
 334    2018-09-16 13:05    32  *************
 335    2018-09-16 13:06    33  **************
 336    2018-09-16 13:07    33  **************
 337    2018-09-16 13:08    34  ***************
 338    2018-09-16 13:09    34  ***************
 339    2018-09-16 13:10    35  ****************
 340    2018-09-16 13:11    35  ****************
 341    2018-09-16 13:12    35  ****************
 342    2018-09-16 13:13    36  *****************
 ...    ..(  3 skipped).    ..  *****************
 346    2018-09-16 13:17    36  *****************
 347    2018-09-16 13:18    37  ******************
 ...    ..(  6 skipped).    ..  ******************
 354    2018-09-16 13:25    37  ******************
 355    2018-09-16 13:26    38  *******************
 ...    ..( 39 skipped).    ..  *******************
 395    2018-09-16 14:06    38  *******************
 396    2018-09-16 14:07    39  ********************
 ...    ..( 15 skipped).    ..  ********************
 412    2018-09-16 14:23    39  ********************
 413    2018-09-16 14:24    38  *******************
 ...    ..(  4 skipped).    ..  *******************
 418    2018-09-16 14:29    38  *******************
 419    2018-09-16 14:30    39  ********************
 420    2018-09-16 14:31    39  ********************
 421    2018-09-16 14:32    39  ********************
 422    2018-09-16 14:33    40  *********************
 ...    ..(  2 skipped).    ..  *********************
 425    2018-09-16 14:36    40  *********************
 426    2018-09-16 14:37    39  ********************
 ...    ..(  9 skipped).    ..  ********************
 436    2018-09-16 14:47    39  ********************
 437    2018-09-16 14:48     ?  -
 438    2018-09-16 14:49    26  *******
 439    2018-09-16 14:50    27  ********
 440    2018-09-16 14:51    28  *********
 441    2018-09-16 14:52    29  **********
 442    2018-09-16 14:53    30  ***********
 443    2018-09-16 14:54    31  ************
 444    2018-09-16 14:55    32  *************
 445    2018-09-16 14:56    33  **************
 446    2018-09-16 14:57    34  ***************
 447    2018-09-16 14:58     ?  -
 448    2018-09-16 14:59    30  ***********
 449    2018-09-16 15:00    32  *************
 450    2018-09-16 15:01    33  **************
 451    2018-09-16 15:02    34  ***************
 452    2018-09-16 15:03    35  ****************
 453    2018-09-16 15:04    36  *****************
 454    2018-09-16 15:05    36  *****************
 455    2018-09-16 15:06    37  ******************
 456    2018-09-16 15:07    38  *******************
 457    2018-09-16 15:08    38  *******************
 458    2018-09-16 15:09    39  ********************
 459    2018-09-16 15:10    40  *********************
 ...    ..(  4 skipped).    ..  *********************
 464    2018-09-16 15:15    40  *********************
 465    2018-09-16 15:16    41  **********************
 ...    ..(  9 skipped).    ..  **********************
 475    2018-09-16 15:26    41  **********************
 476    2018-09-16 15:27     ?  -
 477    2018-09-16 15:28    32  *************
   0    2018-09-16 15:29    41  **********************
 ...    ..(  5 skipped).    ..  **********************
   6    2018-09-16 15:35    41  **********************
   7    2018-09-16 15:36    42  ***********************
   8    2018-09-16 15:37    42  ***********************
   9    2018-09-16 15:38    42  ***********************
  10    2018-09-16 15:39    41  **********************
 ...    ..( 17 skipped).    ..  **********************
  28    2018-09-16 15:57    41  **********************
  29    2018-09-16 15:58    42  ***********************
 ...    ..( 11 skipped).    ..  ***********************
  41    2018-09-16 16:10    42  ***********************
  42    2018-09-16 16:11    41  **********************
 ...    ..( 24 skipped).    ..  **********************
  67    2018-09-16 16:36    41  **********************
  68    2018-09-16 16:37    42  ***********************
  69    2018-09-16 16:38    43  ************************
  70    2018-09-16 16:39    42  ***********************
 ...    ..(  8 skipped).    ..  ***********************
  79    2018-09-16 16:48    42  ***********************
  80    2018-09-16 16:49    41  **********************
  81    2018-09-16 16:50    42  ***********************
 ...    ..( 12 skipped).    ..  ***********************
  94    2018-09-16 17:03    42  ***********************
  95    2018-09-16 17:04    41  **********************
 ...    ..( 16 skipped).    ..  **********************
 112    2018-09-16 17:21    41  **********************
 113    2018-09-16 17:22    42  ***********************
 ...    ..( 12 skipped).    ..  ***********************
 126    2018-09-16 17:35    42  ***********************

SCT Error Recovery Control command not supported

Device Statistics (GP Log 0x04)
Page  Offset Size        Value Flags Description
0x01  =====  =               =  ===  == General Statistics (rev 2) ==
0x01  0x008  4            6787  ---  Lifetime Power-On Resets
0x01  0x010  4           16976  ---  Power-on Hours
0x01  0x018  6     28993173773  ---  Logical Sectors Written
0x01  0x020  6       278628556  ---  Number of Write Commands
0x01  0x028  6     17671286910  ---  Logical Sectors Read
0x01  0x030  6       481216428  ---  Number of Read Commands
0x04  =====  =               =  ===  == General Errors Statistics (rev 1) ==
0x04  0x008  4               0  ---  Number of Reported Uncorrectable Errors
0x04  0x010  4            6893  ---  Resets Between Cmd Acceptance and Completion
0x05  =====  =               =  ===  == Temperature Statistics (rev 1) ==
0x05  0x008  1              32  ---  Current Temperature
0x05  0x010  1              39  ---  Average Short Term Temperature
0x05  0x018  1              40  ---  Average Long Term Temperature
0x05  0x020  1              51  ---  Highest Temperature
0x05  0x028  1             -10  ---  Lowest Temperature
0x05  0x030  1              47  ---  Highest Average Short Term Temperature
0x05  0x038  1              25  ---  Lowest Average Short Term Temperature
0x05  0x040  1              44  ---  Highest Average Long Term Temperature
0x05  0x048  1              31  ---  Lowest Average Long Term Temperature
0x05  0x050  4               -  ---  Time in Over-Temperature
0x05  0x058  1              70  ---  Specified Maximum Operating Temperature
0x05  0x060  4               1  ---  Time in Under-Temperature
0x05  0x068  1               0  ---  Specified Minimum Operating Temperature
0x06  =====  =               =  ===  == Transport Statistics (rev 1) ==
0x06  0x008  4               0  ---  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               4  N--  Percentage Used Endurance Indicator
                                |||_ C monitored condition met
                                ||__ D supports DSN
                                |___ N normalized value

SATA Phy Event Counters (GP Log 0x11)
ID      Size     Value  Description
0x0001  4            0  Command failed due to ICRC error
0x000a  4            4  Device-to-host register FISes sent due to a COMRESET

juwa2

  • Závislák
  • ***
  • Příspěvků: 4935
Re:jak zjistit "total write data"
« Odpověď #3 kdy: 16 Září 2018, 18:02:08 »
0x01  0x018  6     28993173773  ---  Logical Sectors Written
0x01  0x028  6     17671286910  ---  Logical Sectors Read

a jelikož má jeden logický sektor 512 bytes,  Zbytek už si snad dopočítáš sám. Doufám, že neshoříš na přepočtu jednotek...    http://extraconversion.com/data-storage/bytes/bytes-to-terabytes.html
Ale jelikož s tím spousta lidí zápasí, raději ti to spočtu sám viz obrázek. 
« Poslední změna: 16 Září 2018, 18:19:40 od juwa2 »

DanielK

  • Aktivní člen
  • *
  • Příspěvků: 127
Re:jak zjistit "total write data"
« Odpověď #4 kdy: 16 Září 2018, 21:06:16 »
Děkuji. Proč je přepočet do TiB namísto TB? 

Nějaký zdorj uvádí životnost M500 je 72TB takže po 6 ti letech mám ještě cca 80% životnosti SSD, to se mi zdá moc pěkný.

Trochu mě děsí crystalidisk info, který říká, že po necelém měsíci používání "Samsung mzvlw256"  mám zapsáno "total host writes" 832GB dat, to se mi zdá docela dost, když vezmu žě jsem 1x reinstaloval windows10 a 3x instaloval Ubuntu.

juwa2

  • Závislák
  • ***
  • Příspěvků: 4935
Re:jak zjistit "total write data"
« Odpověď #5 kdy: 17 Září 2018, 11:36:05 »
Děkuji. Proč je přepočet do TiB namísto TB? 

Nějaký zdorj uvádí životnost M500 je 72TB takže po 6 ti letech mám ještě cca 80% životnosti SSD, to se mi zdá moc pěkný.

Trochu mě děsí crystalidisk info, který říká, že po necelém měsíci používání "Samsung mzvlw256"  mám zapsáno "total host writes" 832GB dat, to se mi zdá docela dost, když vezmu žě jsem 1x reinstaloval windows10 a 3x instaloval Ubuntu.

Je všeobecně známo, že Windows počítají data správně v GiB (TiB) ale nesprávně to označují jako GB (TB). Takže v "tento počítač" vidíš sice napsané GB, ale ve skutečnosti to jsou GiB...
V Ubuntu to každá aplikace udává jinak (některé v GiB - třeba GParted, jiné v GB - třeba Sledování systému), ale označené je to zpravidla správně.
Jinak přepočet je 1GB = 0.931 GiB  takže údaj v GB je vždy větší.
-----------------------------------------------------------------------------------------
832GB za měsíc je dost, průměr bývá cca třetinový....

macu

  • Stálý člen
  • **
  • Příspěvků: 1214
Re:jak zjistit "total write data"
« Odpověď #6 kdy: 17 Září 2018, 12:05:20 »
jen doplním juwa2 odkazem na wiki (i když určitě googlit umíš  ;)  )

https://en.wikipedia.org/wiki/Mebibyte
PC: Intel i5-6600K, 16 GB DDR4 RAM, Intel 530HD, ASUS Z170 Pro Gaming, , 2TB Toshiba HDD Sata III DT01ACA200, Ubuntu 23.10 64bit, Gnome Shell 3.45
Ntb: Toshiba L850-U12 - Intel i3 , 8 GB DDR3 RAM, Ubuntu 22.10 64bit, Gnome Shell 3.43

 

Provoz zaštiťuje spolek OpenAlt.