Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Wymieniłem w swoim laptopie dysk na SSD (w zasadzie to dokupiłem drugi dysk xD) i napisałem kawałek artykułu na temat ogarniania mojego Debiana do pracy na takim nośniku. Jestem ciekaw jak inni użytkownicy podeszli do tego zagadnienia w przypadku swoich systemów, bo być może o czymś zapomniałem albo nie jestem świadomy i wypadałoby coś do tego artykułu jeszcze dodać albo zmienić.
Jeśli macie dyski SSD to moglibyście też podesłać raport SMART (smartctl -x /dev/sda), bo chciałbym rzucić na niego okiem i porównać kilka rzeczy.
Offline
morfik napisał(-a):
Jestem ciekaw jak inni użytkownicy podeszli do tego zagadnienia w przypadku swoich systemów, bo być może o czymś zapomniałem albo nie jestem świadomy i wypadałoby coś do tego artykułu jeszcze dodać albo zmienić.
Olałem, nic nie zrobiłem XD dla mnie to dyski robocze nie nadające się na magazyn danych więc pal je licho.
Smart dla sata:
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.6.4-1-liquorix-amd64] (local build) Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Device Model: SSDPR-CX400-01T-G2 Serial Number: G1E030247 Firmware Version: SBFM6E.5 User Capacity: 1 024 209 543 168 bytes [1,02 TB] Sector Size: 512 bytes logical/physical Rotation Rate: Solid State Device Form Factor: 2.5 inches TRIM Command: Available Device is: Not in smartctl database 7.3/5319 ATA Version is: ACS-4 (minor revision not indicated) SATA Version is: SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s) Local Time is: Sun Dec 10 22:41:23 2023 CET SMART support is: Available - device has SMART capability. SMART support is: Enabled AAM feature is: Unavailable APM feature is: Unavailable Rd look-ahead is: Enabled Write cache is: Enabled DSN feature is: Unavailable ATA Security is: Disabled, frozen [SEC2] Wt Cache Reorder: Unavailable === 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: (65535) seconds. Offline data collection capabilities: (0x79) SMART execute Offline immediate. No Auto Offline data collection 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: ( 30) minutes. Conveyance self-test routine recommended polling time: ( 6) minutes. 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 PO-R-- 100 100 050 - 0 9 Power_On_Hours -O--C- 100 100 000 - 1376 12 Power_Cycle_Count -O--C- 100 100 000 - 375 168 Unknown_Attribute -O--C- 100 100 000 - 0 170 Unknown_Attribute PO---- 100 100 000 - 232 173 Unknown_Attribute -O--C- 100 100 000 - 65538 192 Power-Off_Retract_Count -O--C- 100 100 000 - 23 194 Temperature_Celsius PO---K 067 067 000 - 33 (Min/Max 33/33) 218 Unknown_Attribute PO-R-- 100 100 050 - 0 231 Unknown_SSD_Attribute PO--C- 100 100 000 - 99 241 Total_LBAs_Written -O--C- 100 100 000 - 1632 ||||||_ 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 64 Ext. Comprehensive SMART error log 0x04 GPL,SL R/O 8 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 NCQ Command Error log 0x11 GPL R/O 1 SATA Phy Event Counters log 0x30 GPL,SL R/O 9 IDENTIFY DEVICE data log 0x80-0x9f GPL,SL R/W 16 Host vendor specific log SMART Extended Comprehensive Error Log Version: 1 (64 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 Short offline Completed without error 00% 1000 - # 2 Conveyance offline Completed without error 00% 999 - 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. SCT Commands not supported Device Statistics (GP Log 0x04) Page Offset Size Value Flags Description 0x01 ===== = = === == General Statistics (rev 1) == 0x01 0x008 4 375 --- Lifetime Power-On Resets 0x01 0x010 4 1376 --- Power-on Hours 0x01 0x018 6 3423390003 --- Logical Sectors Written 0x01 0x028 6 2657784494 --- Logical Sectors Read 0x04 ===== = = === == General Errors Statistics (rev 1) == 0x04 0x008 4 0 --- Number of Reported Uncorrectable Errors 0x05 ===== = = === == Temperature Statistics (rev 1) == 0x05 0x008 1 33 --- Current Temperature 0x05 0x020 1 33 --- Highest Temperature 0x05 0x028 1 33 --- Lowest Temperature 0x06 ===== = = === == Transport Statistics (rev 1) == 0x06 0x008 4 1052 --- Number of Hardware Resets 0x06 0x018 4 0 --- Number of Interface CRC Errors 0x07 ===== = = === == Solid State Device Statistics (rev 1) == 0x07 0x008 1 0 --- Percentage Used Endurance Indicator |||_ C monitored condition met ||__ D supports DSN |___ N normalized value Pending Defects log (GP Log 0x0c) not supported SATA Phy Event Counters (GP Log 0x11) ID Size Value Description 0x0001 2 0 Command failed due to ICRC error 0x0003 2 0 R_ERR response for device-to-host data FIS 0x0004 2 0 R_ERR response for host-to-device data FIS 0x0006 2 0 R_ERR response for device-to-host non-data FIS 0x0007 2 0 R_ERR response for host-to-device non-data FIS 0x0008 2 0 Device-to-host non-data FIS retries 0x0009 4 2 Transition from drive PhyRdy to drive PhyNRdy 0x000a 4 3 Device-to-host register FISes sent due to a COMRESET 0x000f 2 0 R_ERR response for host-to-device data FIS, CRC 0x0010 2 0 R_ERR response for host-to-device data FIS, non-CRC 0x0012 2 0 R_ERR response for host-to-device non-data FIS, CRC 0x0013 2 0 R_ERR response for host-to-device non-data FIS, non-CRC
A teraz nvme:
nvme list napisał(-a):
Node Generic SN Model Namespace Usage Format FW Rev
--------------------- --------------------- -------------------- ---------------------------------------- --------- -------------------------- ---------------- --------
/dev/nvme1n1 /dev/ng1n1 G2T004767 IRP-SSDPR-P44S-2K0-80 1 2,00 TB / 2,00 TB 512 B + 0 B EIFM31.6
/dev/nvme0n1 /dev/ng0n1 2143327F5963 Micron_2210_MTFDHBA512QFD 1 512,11 GB / 512,11 GB 512 B + 0 B P6MA007
nvme smart-log /dev/nvme0n1 napisał(-a):
Smart Log for NVME device:nvme0n1 namespace-id:ffffffff
critical_warning : 0
temperature : 40°C (313 Kelvin)
available_spare : 100%
available_spare_threshold : 5%
percentage_used : 2%
endurance group critical warning summary: 0
Data Units Read : 84���26729 (4,31 TB)
Data Units Written : 92���01352 (4,71 TB)
host_read_commands : 648���51396
host_write_commands : 710���66025
controller_busy_time : 1162
power_cycles : 440
power_on_hours : 767
unsafe_shutdowns : 4
media_errors : 0
num_err_log_entries : 550
Warning Temperature Time : 0
Critical Composite Temperature Time : 0
Temperature Sensor 1 : 40°C (313 Kelvin)
Thermal Management T1 Trans Count : 0
Thermal Management T2 Trans Count : 0
Thermal Management T1 Total Time : 0
Thermal Management T2 Total Time : 0
nvme smart-log /dev/nvme1n1 napisał(-a):
Smart Log for NVME device:nvme1n1 namespace-id:ffffffff
critical_warning : 0
temperature : 40°C (313 Kelvin)
available_spare : 100%
available_spare_threshold : 5%
percentage_used : 0%
endurance group critical warning summary: 0
Data Units Read : 12���94118 (662,59 GB)
Data Units Written : 35���23712 (1,80 TB)
host_read_commands : 90���39678
host_write_commands : 135���60597
controller_busy_time : 88
power_cycles : 91
power_on_hours : 336
unsafe_shutdowns : 3
media_errors : 0
num_err_log_entries : 101
Warning Temperature Time : 0
Critical Composite Temperature Time : 0
Thermal Management T1 Trans Count : 1
Thermal Management T2 Trans Count : 0
Thermal Management T1 Total Time : 217
Thermal Management T2 Total Time : 0
morfik napisał(-a):
Jeśli macie dyski SSD to moglibyście też podesłać raport SMART (smartctl -x /dev/sda), bo chciałbym rzucić na niego okiem i porównać kilka rzeczy.
Daj znać co porównujesz XD
Offline
Jedną rzecz będę musiał dopisać. Chodzi o tworzenie systemu plików z opcjami stride= i stripe-width=. Ale póki co jeszcze nie mam pojęcia jak ustalić punkt wyjścia dla tych parametrów, bo to się zmienia w zależności o modelu dysku. xD
Pavlo950 napisał(-a):
morfik napisał(-a):
Jeśli macie dyski SSD to moglibyście też podesłać raport SMART (smartctl -x /dev/sda), bo chciałbym rzucić na niego okiem i porównać kilka rzeczy.
Daj znać co porównujesz XD
Praktycznie całe wyjście ale już teraz mogę zauważyć, że nie tylko u mnie dysk raportuje tę dziwną temperaturę 33 stopni non stop. xD
Dziwny ten twój dysk: Unknown_Attribute Unknown_SSD_Attribute . xD
Ostatnio edytowany przez morfik (2023-12-11 00:25:22)
Offline
Jak używacie quiterss to lepiej sprawdźcie czy nie macie tam zaznaczonej opcji "Store a DB in memory". Tak przypadkiem zauważyłem, że to zapisuje setki MiB przy każdym zminimalizowaniu/zamknięciu okna do tray'a. No to już się wyjaśniło co mi zjada 6GiB zapisu danych. xD Co ciekawe, ktoś ten problem zgłosił lata temu...
Ostatnio edytowany przez morfik (2023-12-11 01:21:55)
Offline
Trochę rzeczy dopisałem do artykułu ale wciąż mam takie wrażenie, że chyba o czymś zapomniałem albo mi umknęło. xD
Tak czy inaczej, patrząc ile danych dysk zapisuje po tej optymalizacji, to wychodzi:
2023-12-22 241 Lifetime_Writes_GiB -O--C- 100 100 000 - 9099 2023-12-23 241 Lifetime_Writes_GiB -O--C- 100 100 000 - 9101 2023-12-24 241 Lifetime_Writes_GiB -O--C- 100 100 000 - 9104 2023-12-25 241 Lifetime_Writes_GiB -O--C- 100 100 000 - 9106 2023-12-26 241 Lifetime_Writes_GiB -O--C- 100 100 000 - 9108 2023-12-27 241 Lifetime_Writes_GiB -O--C- 100 100 000 - 9110
Więc wychodzi tak około 2 GiB dziennie, przy 16-18 godzinach pracy kompa na dzień. Ze wstępnych szacunków wynika, że ten dysk powinien mi posłużyć jeszcze jakieś 230 lat i taki wynik mnie w miarę zadowala. xD
Offline
morfik napisał(-a):
Jak używacie quiterss to lepiej sprawdźcie czy nie macie tam zaznaczonej opcji "Store a DB in memory". Tak przypadkiem zauważyłem, że to zapisuje setki MiB przy każdym zminimalizowaniu/zamknięciu okna do tray'a. No to już się wyjaśniło co mi zjada 6GiB zapisu danych. xD Co ciekawe, ktoś ten problem zgłosił lata temu...
Właśnie dlatego używam Akregatora z KDE (trzyma kanały w plikach tekstowych).
Zarówno QuiteRSS jaki i Liferea (z Gnome) próbowały mordować dyski twarde.
Po prostu baza danych Sqlite nie może być za duża, bo wtedy zaczynają się schody.
Smart z mojego SSD:
# root ~> smartctl -x /dev/sdb smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.10.205-g1] (local build) Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Device Model: TOSHIBA-TR200 Serial Number: Z8RB60UDK3LS LU WWN Device Id: 5 00080d c01083740 Firmware Version: SBFA12.6 User Capacity: 240 057 409 536 bytes [240 GB] Sector Size: 512 bytes logical/physical Rotation Rate: Solid State Device Form Factor: 2.5 inches Device is: Not in smartctl database [for details use: -P showall] ATA Version is: ACS-4 (minor revision not indicated) SATA Version is: SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s) Local Time is: Wed Dec 27 19:45:43 2023 CET SMART support is: Available - device has SMART capability. SMART support is: Enabled AAM feature is: Unavailable APM feature is: Unavailable Rd look-ahead is: Enabled Write cache is: Enabled DSN feature is: Unavailable ATA Security is: Disabled, NOT FROZEN [SEC1] Wt Cache Reorder: Unavailable === 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. Total time to complete Offline data collection: ( 30) seconds. Offline data collection capabilities: (0x00) Offline data collection not 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. SMART Attributes Data Structure revision number: 16 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAGS VALUE WORST THRESH FAIL RAW_VALUE 9 Power_On_Hours -O--C- 100 100 000 - 23288 12 Power_Cycle_Count -O--C- 100 100 000 - 7228 167 Unknown_Attribute -O---K 100 100 000 - 0 168 Unknown_Attribute -O--C- 100 100 000 - 0 169 Unknown_Attribute PO---- 100 100 010 - 0 173 Unknown_Attribute -O--C- 176 176 000 - 0 192 Power-Off_Retract_Count -O--C- 100 100 000 - 1218 194 Temperature_Celsius PO---K 077 059 020 - 23 (Min/Max 13/41) 241 Total_LBAs_Written -O--CK 100 100 000 - 314183 ||||||_ 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 64 Ext. Comprehensive SMART error log 0x04 GPL,SL R/O 8 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 NCQ Command Error log 0x11 GPL R/O 1 SATA Phy Event Counters log 0x30 GPL,SL R/O 9 IDENTIFY DEVICE data log 0x80-0x9f GPL,SL R/W 16 Host vendor specific log SMART Extended Comprehensive Error Log Version: 1 (64 sectors) No Errors Logged SMART Extended Self-test Log Version: 1 (1 sectors) No self-tests have been logged. [To run self-tests, use: smartctl -t] Selective Self-tests/Logging not supported SCT Commands not supported Device Statistics (GP Log 0x04) Page Offset Size Value Flags Description 0x01 ===== = = === == General Statistics (rev 1) == 0x01 0x008 4 7228 --- Lifetime Power-On Resets 0x01 0x010 4 23288 --- Power-on Hours 0x01 0x018 6 20590319536 --- Logical Sectors Written 0x01 0x028 6 26602997493 --- Logical Sectors Read 0x04 ===== = = === == General Errors Statistics (rev 1) == 0x04 0x008 4 0 --- Number of Reported Uncorrectable Errors 0x05 ===== = = === == Temperature Statistics (rev 1) == 0x05 0x008 1 23 --- Current Temperature 0x05 0x020 1 41 --- Highest Temperature 0x05 0x028 1 13 --- Lowest Temperature 0x06 ===== = = === == Transport Statistics (rev 1) == 0x06 0x018 4 0 --- Number of Interface CRC Errors 0x07 ===== = = === == Solid State Device Statistics (rev 1) == 0x07 0x008 1 15 --- Percentage Used Endurance Indicator |||_ C monitored condition met ||__ D supports DSN |___ N normalized value Pending Defects log (GP Log 0x0c) not supported SATA Phy Event Counters (GP Log 0x11) ID Size Value Description 0x0001 2 0 Command failed due to ICRC error 0x0003 2 0 R_ERR response for device-to-host data FIS 0x0004 2 0 R_ERR response for host-to-device data FIS 0x0006 2 0 R_ERR response for device-to-host non-data FIS 0x0007 2 0 R_ERR response for host-to-device non-data FIS 0x0008 2 0 Device-to-host non-data FIS retries 0x0009 4 2 Transition from drive PhyRdy to drive PhyNRdy 0x000a 4 3 Device-to-host register FISes sent due to a COMRESET 0x000f 2 0 R_ERR response for host-to-device data FIS, CRC 0x0010 2 0 R_ERR response for host-to-device data FIS, non-CRC 0x0012 2 0 R_ERR response for host-to-device non-data FIS, CRC 0x0013 2 0 R_ERR response for host-to-device non-data FIS, non-CRC
PS.
W Gentoo Quiterss zmarł i wyparował razem z QtWebkit (z głównego drzewka, został w overlayu "benzene-overlay").
Ostatnio edytowany przez Jacekalex (2023-12-27 19:46:30)
Offline
Dziwny ten twój dysk. On nie ma TRIM? Pokaż:
# lsblk --discard /dev/sda # hdparm -I /dev/sda
Ale to ciekawe, bo niby sporo dłużej dysk pracuje od mojego, podobna ilość danych zapisanych ale zużycie masz 15% vs. 3% w moim przypadku. Różnica między TLC vs. MLC xD
Z tego co patrzyłem, to ten quiterss to już chyba martwy projekt. I będę musiał sobie czegoś innego poszukać.
Offline
proszę, wyniki ode mnie
# smartctl -x /dev/sda smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.1.0-16-amd64] (local build) Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Device Model: Patriot P210 512GB Serial Number: P210ABCB2205260031 Firmware Version: V0414A0 User Capacity: 512 110 190 592 bytes [512 GB] Sector Size: 512 bytes logical/physical Rotation Rate: Solid State Device Form Factor: 2.5 inches TRIM Command: Available Device is: Not in smartctl database 7.3/5319 ATA Version is: ACS-3 T13/2161-D revision 4 SATA Version is: SATA 3.2, 6.0 Gb/s (current: 3.0 Gb/s) Local Time is: Thu Dec 28 17:32:04 2023 CET 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 DSN feature is: Unavailable ATA Security is: Disabled, frozen [SEC2] Wt Cache Reorder: Unavailable === 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: ( 120) seconds. Offline data collection capabilities: (0x11) SMART execute Offline immediate. No Auto Offline data collection support. Suspend Offline collection upon new command. No Offline surface scan supported. Self-test supported. No Conveyance Self-test supported. No Selective Self-test supported. SMART capabilities: (0x0002) Does not save 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: ( 10) minutes. SCT capabilities: (0x0001) SCT Status supported. SMART Attributes Data Structure revision number: 1 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAGS VALUE WORST THRESH FAIL RAW_VALUE 1 Raw_Read_Error_Rate -O--CK 100 100 050 - 0 5 Reallocated_Sector_Ct -O--CK 100 100 050 - 0 9 Power_On_Hours -O--CK 100 100 050 - 437 12 Power_Cycle_Count -O--CK 100 100 050 - 240 160 Unknown_Attribute -O--CK 100 100 050 - 0 161 Unknown_Attribute PO--CK 100 100 050 - 100 163 Unknown_Attribute -O--CK 100 100 050 - 11 164 Unknown_Attribute -O--CK 100 100 050 - 3608 165 Unknown_Attribute -O--CK 100 100 050 - 24 166 Unknown_Attribute -O--CK 100 100 050 - 2 167 Unknown_Attribute -O--CK 100 100 050 - 8 168 Unknown_Attribute -O--CK 100 100 050 - 5050 169 Unknown_Attribute -O--CK 100 100 050 - 100 175 Program_Fail_Count_Chip -O--CK 100 100 050 - 0 176 Erase_Fail_Count_Chip -O--CK 100 100 050 - 0 177 Wear_Leveling_Count -O--CK 100 100 050 - 0 178 Used_Rsvd_Blk_Cnt_Chip -O--CK 100 100 050 - 0 181 Program_Fail_Cnt_Total -O--CK 100 100 050 - 0 182 Erase_Fail_Count_Total -O--CK 100 100 050 - 0 192 Power-Off_Retract_Count -O--CK 100 100 050 - 26 194 Temperature_Celsius -O---K 100 100 050 - 44 195 Hardware_ECC_Recovered -O--CK 100 100 050 - 0 196 Reallocated_Event_Count -O--CK 100 100 050 - 0 197 Current_Pending_Sector -O--CK 100 100 050 - 0 198 Offline_Uncorrectable -O--CK 100 100 050 - 0 199 UDMA_CRC_Error_Count -O--CK 100 100 050 - 0 232 Available_Reservd_Space -O--CK 100 100 050 - 100 241 Total_LBAs_Written ----CK 100 100 050 - 37722 242 Total_LBAs_Read ----CK 100 100 050 - 28085 245 Unknown_Attribute -O--CK 100 100 050 - 40716 ||||||_ 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 1 Comprehensive SMART error log 0x03 GPL R/O 1 Ext. Comprehensive SMART error log 0x04 GPL,SL R/O 8 Device Statistics log 0x06 SL R/O 1 SMART self-test log 0x07 GPL R/O 1 Extended self-test log 0x10 GPL R/O 1 NCQ Command Error log 0x11 GPL R/O 1 SATA Phy Event Counters log 0x24 GPL R/O 88 Current Device Internal Status Data log 0x25 GPL R/O 32 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 SMART Extended Comprehensive Error Log Version: 1 (1 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 Extended offline Completed without error 00% 305 - # 2 Extended offline Completed without error 00% 232 - Selective Self-tests/Logging not supported SCT Status Version: 3 SCT Version (vendor specific): 0 (0x0000) Device State: Active (0) Current Temperature: 44 Celsius Power Cycle Min/Max Temperature: 44/44 Celsius Lifetime Min/Max Temperature: 24/57 Celsius Specified Max Operating Temperature: 100 Celsius Under/Over Temperature Limit Count: 0/0 SCT Data Table command not supported SCT Error Recovery Control command not supported Device Statistics (GP Log 0x04) Page Offset Size Value Flags Description 0x01 ===== = = === == General Statistics (rev 1) == 0x01 0x008 4 240 --- Lifetime Power-On Resets 0x01 0x010 4 437 --- Power-on Hours 0x01 0x018 6 2472166061 --- Logical Sectors Written 0x01 0x020 6 21465924 --- Number of Write Commands 0x01 0x028 6 1840582980 --- Logical Sectors Read 0x01 0x030 6 13427882 --- Number of Read Commands 0x07 ===== = = === == Solid State Device Statistics (rev 1) == 0x07 0x008 1 0 --- Percentage Used Endurance Indicator |||_ C monitored condition met ||__ D supports DSN |___ N normalized value Pending Defects log (GP Log 0x0c) not supported SATA Phy Event Counters (GP Log 0x11) ID Size Value Description 0x0001 4 0 Command failed due to ICRC error 0x0002 4 0 R_ERR response for data FIS 0x0005 4 2 R_ERR response for non-data FIS 0x000a 4 3 Device-to-host register FISes sent due to a COMRESET
# hdparm -I /dev/sda /dev/sda: ATA device, with non-removable media Model Number: Patriot P210 512GB Serial Number: P210ABCB2205260031 Firmware Revision: V0414A0 Media Serial Num: Media Manufacturer: 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 0x011b) Supported: 10 9 8 7 6 5 Likely used: 10 Configuration: Logical max current cylinders 16383 16383 heads 16 16 sectors/track 63 63 -- CHS current addressable sectors: 16514064 LBA user addressable sectors: 268435455 LBA48 user addressable sectors: 1000215216 Logical Sector size: 512 bytes Physical Sector size: 512 bytes Logical Sector-0 offset: 0 bytes device size with M = 1024*1024: 488386 MBytes device size with M = 1000*1000: 512110 MBytes (512 GB) cache/buffer size = unknown Form Factor: 2.5 inch 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 = 1 Current = 1 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 * 48-bit Address feature set * Mandatory FLUSH_CACHE * FLUSH_CACHE_EXT * General Purpose Logging feature set * WRITE_{DMA|MULTIPLE}_FUA_EXT * {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) * Phy event counters * READ_LOG_DMA_EXT equivalent to READ_LOG_EXT DMA Setup Auto-Activate optimization * Software settings preservation * SMART Command Transport (SCT) feature set * SANITIZE feature set * BLOCK_ERASE_EXT command * DOWNLOAD MICROCODE DMA command * WRITE BUFFER DMA command * READ BUFFER DMA command * Data Set Management TRIM supported (limit 8 blocks) Security: Master password revision code = 65534 supported not enabled not locked frozen not expired: security count supported: enhanced erase 6min for SECURITY ERASE UNIT. 6min for ENHANCED SECURITY ERASE UNIT. Checksum: correct
# lsblk --discard /dev/sda NAME DISC-ALN DISC-GRAN DISC-MAX DISC-ZERO sda 0 512B 2G 0 ├─sda1 0 512B 2G 0 ├─sda2 0 512B 2G 0 └─sda5 0 512B 2G 0 └─sda5_crypt 0 512B 2G 0 ├─lusterko--vg-root 0 512B 2G 0 ├─lusterko--vg-var 0 512B 2G 0 ├─lusterko--vg-swap_1 0 512B 2G 0 ├─lusterko--vg-tmp 0 512B 2G 0 └─lusterko--vg-home 0 512B 2G 0
Offline
Ciekawe czego efektem są te Unknown_Attribute.
A dobra już wiem czemu. xD Te wasze dyski trzeba by pierw dodać do bazy SMART i zdekodować za co te atrybuty odpowiadają.
Ostatnio edytowany przez morfik (2023-12-28 19:47:00)
Offline
czytam pod tym wskazanym linkiem
"Patriot P2[01]0 ((128|256|512)GB|[12]TB)|" // tested with Patriot P200 256GB/S1022A0,
// Patriot P210 256GB/HPS2227P
u mnie jest dysk Patriot P210 512GB
@morfik czy mógłbyś podpowiedzieć, bo nie rozumiem
[EDIT]
Chyba P210 dodadzą tej wersji, nad którą obecnie pracują. W tej, którą mam zainstalowaną jest Patriot P200.
# smartctl -P showall | grep 'Patriot P2' MODEL REGEXP: ADATA_IMSS332-((008|016|032|064|128|256|512)G|001T)[AEMT]P?|ADATA (SP550|SU(650(NS38)?|655|[89]00))|CORSAIR FORCE LX SSD|CHN mSATAM3 (128|256|512)|CIS 2S M305 (16|32|64|128|256)GB|CT(120|250|500|1000)BX100SSD1|CT(240|480|960)BX200SSD1|DREVO X1 SSD|Drevo X1 pro (64|128|256)G|JAJS500M(120|240|480|960)C-1|JAJS600M1TB|KingDian S100 (32|64)GB|KingDian S(200|280|400) ((60|120|240|480)GB|1TB)|KingSpec KSD-[PS]A25\.[1-9]-(016|032|064|128)(MS|SJ)|KINGSTON SKC600(256|512|1024|2048)G|LITEON LMH-(128|256|512)V2M-.*|LITEON LCH-(128|256V|512)2S-.*|MKNSSDRE(1TB|2TB|512GB|500GB|256GB|250GB)|MKNSSD(S2|TR)(120|2[45]0|480|500)GB(-LT)?|NFN025SA31T-.*|OWC Envoy Pro|Patriot P200 ((128|256|512)GB|[12]TB)|R3SL(120|240|480|960)G|Ramsta SSD S800 (120|240|480)GB|SED2QII-LP SATA SSD ((64|128|256|512)GB|[12]TB)|T60|TCSUNBOW [MX]3 (60|120|240)GB|TEAM( T253T|L5Lite3)D(120G|240G|480G|1T)|TS((16|32|64|128|256|512)G|1T)(SSD|MSA)(230S?|370S?|420[IK]?)|TS(16|32|64|128|512|256)GMTS4[03]0S?|TS(120|240)GMTS420S?|TS(128G|256G|512G|1T)SSD230S|TS(120|240|480|960)GSSD220S|TS(16G|32G|64G|128G|256G|512G|1T)MTS800S?|TS(16|32|64)GMSA630|TS(32|64|128)GPSD330|TS(16|32|64|96|128|256)GSSD(630|360S)|TS(128G|256G|512G|1T)ESD400K
Ostatnio edytowany przez lama (2023-12-28 20:38:59)
Offline
morfik napisał(-a):
Dziwny ten twój dysk. On nie ma TRIM? Pokaż:
Kod:
# lsblk --discard /dev/sda # hdparm -I /dev/sdaAle to ciekawe, bo niby sporo dłużej dysk pracuje od mojego, podobna ilość danych zapisanych ale zużycie masz 15% vs. 3% w moim przypadku. Różnica między TLC vs. MLC xD
Z tego co patrzyłem, to ten quiterss to już chyba martwy projekt. I będę musiał sobie czegoś innego poszukać.
NAME DISC-ALN DISC-GRAN DISC-MAX DISC-ZERO sdb 0 512B 2G 0 ├─sdb1 0 512B 2G 0 ├─sdb2 0 512B 2G 0 ├─sdb3 0 512B 2G 0 ├─sdb4 0 512B 2G 0 ├─sdb5 0 512B 2G 0 ├─sdb6 0 512B 2G 0 ├─sdb7 0 512B 2G 0 ├─sdb8 0 512B 2G 0 ├─sdb9 0 512B 2G 0 └─sdb10 0 512B 2G 0
# root ~> hdparm -I /dev/sdb /dev/sdb: ATA device, with non-removable media Model Number: TOSHIBA-TR200 Serial Number: Z8RB60UDK3LS Firmware Revision: SBFA12.6 Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0 Standards: Supported: 11 10 9 8 7 6 5 Likely used: 11 Configuration: Logical max current cylinders 16383 16383 heads 16 16 sectors/track 63 63 -- CHS current addressable sectors: 16514064 LBA user addressable sectors: 268435455 LBA48 user addressable sectors: 468862128 Logical Sector size: 512 bytes Physical Sector size: 512 bytes Logical Sector-0 offset: 0 bytes device size with M = 1024*1024: 228936 MBytes device size with M = 1000*1000: 240057 MBytes (240 GB) cache/buffer size = unknown Form Factor: 2.5 inch 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 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 SET_MAX security extension * 48-bit Address feature set * Mandatory FLUSH_CACHE * FLUSH_CACHE_EXT * SMART error logging * General Purpose Logging feature set * WRITE_{DMA|MULTIPLE}_FUA_EXT * 64-bit World wide name * {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) * Phy event counters * READ_LOG_DMA_EXT equivalent to READ_LOG_EXT * DMA Setup Auto-Activate optimization Device-initiated interface power management * Software settings preservation Device Sleep (DEVSLP) * DOWNLOAD MICROCODE DMA command * SET MAX SETPASSWORD/UNLOCK DMA commands * WRITE BUFFER DMA command * READ BUFFER DMA command * Data Set Management TRIM supported (limit 8 blocks) Security: Master password revision code = 65534 supported not enabled not locked not frozen not expired: security count supported: enhanced erase 20min for SECURITY ERASE UNIT. 60min for ENHANCED SECURITY ERASE UNIT. Logical Unit WWN Device Identifier: 500080dc01083740 NAA : 5 IEEE OUI : 00080d Unique ID : c01083740 Device Sleep: DEVSLP Exit Timeout (DETO): 100 ms (drive) Minimum DEVSLP Assertion Time (MDAT): 10 ms (drive) Checksum: correct
Dyzio ma 4 rok i chyba idzie na emeryturę, drastycznie spadły mu transfery:
# root ~> hdparm -tT /dev/sdb /dev/sdb: Timing cached reads: 21454 MB in 1.99 seconds = 10780.56 MB/sec Timing buffered disk reads: 108 MB in 3.01 seconds = 35.84 MB/sec
Także szykuję się na spacerek do paczkomatu.
xD
Offline
@lama — generalnie, to sprawdź czy masz aktualną bazę danych SMART:
# update-smart-drivedb
@Jacekalex — czyli jednak jest TRIM.
Jacekalex napisał(-a):
Dyzio ma 4 rok i chyba idzie na emeryturę, drastycznie spadły mu transfery:
Kod:
# root ~> hdparm -tT /dev/sdb /dev/sdb: Timing cached reads: 21454 MB in 1.99 seconds = 10780.56 MB/sec Timing buffered disk reads: 108 MB in 3.01 seconds = 35.84 MB/secTakże szykuję się na spacerek do paczkomatu.
xD
Zapuść mu ATA security erase. Czytałem, że czasami tylko takie wyczyszczenie dysku potrafi przywrócić fabryczną szybkość dysku jeśli nic innego nie przynosi rezultatu.
U mnie trochę lepiej:
# hdparm -tT /dev/sda /dev/sda: Timing cached reads: 15122 MB in 1.99 seconds = 7589.10 MB/sec Timing buffered disk reads: 1480 MB in 3.00 seconds = 493.13 MB/sec
Ostatnio edytowany przez morfik (2023-12-28 21:29:50)
Offline
fstrim go naprawił tymczasowo:
# root ~> hdparm -tT /dev/sdb /dev/sdb: Timing cached reads: 24888 MB in 1.99 seconds = 12516.74 MB/sec Timing buffered disk reads: 636 MB in 3.05 seconds = 208.50 MB/sec
Nowy z pudełka miał około 212MB/sec, także nie ma tragedii.
to po wykonaniu :
fstrim --all -v /dev/sdb
Dodałem sobie to do crona:
# root ~> cat /etc/cron.monthly/fstrim.sh
#!/bin/bash fstrim --all -v /dev/sdb
Ostatnio edytowany przez Jacekalex (2023-12-28 21:51:23)
Offline
No to nie musisz go traktować ATA secure erase. xD Ale ten fstrim od czasu do czasu powinieneś sobie zapuszczać, np. raz w tygodniu przez cron'a czy coś.
Taką linijkę sobie dodaj:
/sbin/fstrim --listed-in /etc/fstab:/proc/self/mountinfo --verbose --quiet-unsupported
Ostatnio edytowany przez morfik (2023-12-28 21:51:59)
Offline
Sugerujesz
# root ~> mv /etc/cron.monthly/fstrim.sh /etc/cron.weekly/fstrim.sh
?
Offline
Zależy ile danych zapisujesz -- im więcej tym częściej powinieneś fstrim wykonywać. Ale raz na tydzień powinno wystarczyć. Ja mam około 2GiB/dzień więc przy 240GB dysku, to zapisze <100GiB miesięcznie a biorąc pod uwagę, że ponad połowę dysku mam wolną, to komórek powinno wystarczyć by fstrim wykonywać raz na miecha bez utraty wydajności. Przynajmniej taka teoria, a jak będzie to się okaże za miesiąc i być może będę co 2 tygodnie wykonywał fstrim xD
Ostatnio edytowany przez morfik (2023-12-28 22:11:53)
Offline
zrobiłem
# update-smart-drivedb /var/lib/smartmontools/drivedb/drivedb.h 7.3/5319 updated to 7.3/5563
teraz w wynikach
# smartctl -P showall
jest "...Patriot P2[01]0 ((128|256|512)GB|[12]TB)|..." i teraz smartctl podaje opisy, nie Unknown_Attribute
# smartctl -x /dev/sda smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.1.0-16-amd64] (local build) Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: Silicon Motion based SSDs Device Model: Patriot P210 512GB Serial Number: P210ABCB2205260031 Firmware Version: V0414A0 User Capacity: 512 110 190 592 bytes [512 GB] Sector Size: 512 bytes logical/physical Rotation Rate: Solid State Device Form Factor: 2.5 inches TRIM Command: Available Device is: In smartctl database 7.3/5563 ATA Version is: ACS-3 T13/2161-D revision 4 SATA Version is: SATA 3.2, 6.0 Gb/s (current: 3.0 Gb/s) Local Time is: Thu Dec 28 22:01:46 2023 CET 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 DSN feature is: Unavailable ATA Security is: Disabled, frozen [SEC2] Wt Cache Reorder: Unavailable === 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: ( 120) seconds. Offline data collection capabilities: (0x11) SMART execute Offline immediate. No Auto Offline data collection support. Suspend Offline collection upon new command. No Offline surface scan supported. Self-test supported. No Conveyance Self-test supported. No Selective Self-test supported. SMART capabilities: (0x0002) Does not save 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: ( 10) minutes. SCT capabilities: (0x0001) SCT Status supported. SMART Attributes Data Structure revision number: 1 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAGS VALUE WORST THRESH FAIL RAW_VALUE 1 Raw_Read_Error_Rate -O--CK 100 100 050 - 0 5 Reallocated_Sector_Ct -O--CK 100 100 050 - 0 9 Power_On_Hours -O--CK 100 100 050 - 442 12 Power_Cycle_Count -O--CK 100 100 050 - 240 160 Uncorrectable_Error_Cnt -O--CK 100 100 050 - 0 161 Valid_Spare_Block_Cnt PO--CK 100 100 050 - 100 163 Initial_Bad_Block_Count -O--CK 100 100 050 - 11 164 Total_Erase_Count -O--CK 100 100 050 - 3608 165 Max_Erase_Count -O--CK 100 100 050 - 24 166 Min_Erase_Count -O--CK 100 100 050 - 2 167 Average_Erase_Count -O--CK 100 100 050 - 8 168 Max_Erase_Count_of_Spec -O--CK 100 100 050 - 5050 169 Remaining_Lifetime_Perc -O--CK 100 100 050 - 100 175 Program_Fail_Count_Chip -O--CK 100 100 050 - 0 176 Erase_Fail_Count_Chip -O--CK 100 100 050 - 0 177 Wear_Leveling_Count -O--CK 100 100 050 - 0 178 Runtime_Invalid_Blk_Cnt -O--CK 100 100 050 - 0 181 Program_Fail_Cnt_Total -O--CK 100 100 050 - 0 182 Erase_Fail_Count_Total -O--CK 100 100 050 - 0 192 Power-Off_Retract_Count -O--CK 100 100 050 - 26 194 Temperature_Celsius -O---K 100 100 050 - 45 195 Hardware_ECC_Recovered -O--CK 100 100 050 - 0 196 Reallocated_Event_Count -O--CK 100 100 050 - 0 197 Current_Pending_Sector -O--CK 100 100 050 - 0 198 Offline_Uncorrectable -O--CK 100 100 050 - 0 199 UDMA_CRC_Error_Count -O--CK 100 100 050 - 0 232 Available_Reservd_Space -O--CK 100 100 050 - 100 241 Host_Writes_32MiB ----CK 100 100 050 - 37751 242 Host_Reads_32MiB ----CK 100 100 050 - 28086 245 TLC_Writes_32MiB -O--CK 100 100 050 - 40716 ||||||_ 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 1 Comprehensive SMART error log 0x03 GPL R/O 1 Ext. Comprehensive SMART error log 0x04 GPL,SL R/O 8 Device Statistics log 0x06 SL R/O 1 SMART self-test log 0x07 GPL R/O 1 Extended self-test log 0x10 GPL R/O 1 NCQ Command Error log 0x11 GPL R/O 1 SATA Phy Event Counters log 0x24 GPL R/O 88 Current Device Internal Status Data log 0x25 GPL R/O 32 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 SMART Extended Comprehensive Error Log Version: 1 (1 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 Extended offline Completed without error 00% 305 - # 2 Extended offline Completed without error 00% 232 - Selective Self-tests/Logging not supported SCT Status Version: 3 SCT Version (vendor specific): 0 (0x0000) Device State: Active (0) Current Temperature: 45 Celsius Power Cycle Min/Max Temperature: 45/45 Celsius Lifetime Min/Max Temperature: 24/57 Celsius Specified Max Operating Temperature: 100 Celsius Under/Over Temperature Limit Count: 0/0 SCT Data Table command not supported SCT Error Recovery Control command not supported Device Statistics (GP Log 0x04) Page Offset Size Value Flags Description 0x01 ===== = = === == General Statistics (rev 1) == 0x01 0x008 4 240 --- Lifetime Power-On Resets 0x01 0x010 4 442 --- Power-on Hours 0x01 0x018 6 2474051205 --- Logical Sectors Written 0x01 0x020 6 21550415 --- Number of Write Commands 0x01 0x028 6 1840665124 --- Logical Sectors Read 0x01 0x030 6 13429566 --- Number of Read Commands 0x07 ===== = = === == Solid State Device Statistics (rev 1) == 0x07 0x008 1 0 --- Percentage Used Endurance Indicator |||_ C monitored condition met ||__ D supports DSN |___ N normalized value Pending Defects log (GP Log 0x0c) not supported SATA Phy Event Counters (GP Log 0x11) ID Size Value Description 0x0001 4 0 Command failed due to ICRC error 0x0002 4 0 R_ERR response for data FIS 0x0005 4 2 R_ERR response for non-data FIS 0x000a 4 3 Device-to-host register FISes sent due to a COMRESET
jeszcze hdparm
# hdparm -tT /dev/sda /dev/sda: Timing cached reads: 13298 MB in 1.99 seconds = 6680.25 MB/sec Timing buffered disk reads: 718 MB in 3.01 seconds = 238.70 MB/sec
szybciej chyba nie będzie, bo mam na SATA 2 wpięty
Offline
Jeszcze takie małe pytanie. xD
Z jakiego dyspozytora/planisty IO (scheduler) korzystacie w przypadku dysku SSD?
# cat /sys/block/sda/queue/scheduler
Offline
morfik napisał(-a):
Jeszcze takie małe pytanie. xD
Z jakiego dyspozytora/planisty IO (scheduler) korzystacie w przypadku dysku SSD?Kod:
# cat /sys/block/sda/queue/scheduler
taki wynik u mnie
[mq-deadline] none
Offline
cat /sys/block/sd*/queue/scheduler [mq-deadline] kyber bfq none [mq-deadline] kyber bfq none
W Udevie mam coś takiego:
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"
PS:
Dyzio po łaskotaniu fstrimem się rozbrykał jak pijany zając:
hdparm -tT /dev/sdb /dev/sdb: Timing cached reads: 23136 MB in 1.99 seconds = 11630.34 MB/sec Timing buffered disk reads: 806 MB in 3.00 seconds = 268.31 MB/sec
Pozdro
Ostatnio edytowany przez Jacekalex (2024-01-05 23:36:47)
Offline
Ten deadline z regułki udev'a sobie zmien na mq-deadline, bo ten bez mq (multi queue) to prehistoria z wczesnej ery dysków HDD i już go w kernelu nie ma. xD I dodaj sobie drugą regułkę dla dysków HDD, by ci ustawiło bfq.
A tego kyber'a skąd masz? Bo to dla szybkich SSD jest ale u mnie go brakuje.
A już wiem - CONFIG_MQ_IOSCHED_KYBER. xD
Ostatnio edytowany przez morfik (2024-01-06 12:43:54)
Offline
U mnie, dla nvme:
# cat /sys/block/nvme*/queue/scheduler none mq-deadline [kyber] bfq none mq-deadline [kyber] bfq
Dla sata:
# cat /sys/block/sd*/queue/scheduler none mq-deadline kyber [bfq]
Offline
lama napisał(-a):
...
Kod:
/dev/sda: Timing cached reads: 13298 MB in 1.99 seconds = 6680.25 MB/sec Timing buffered disk reads: 718 MB in 3.01 seconds = 238.70 MB/secszybciej chyba nie będzie, bo mam na SATA 2 wpięty
Faktycznie chyba to wina tego, że jest starszy SATA, bo dokupiłem sobie drugi taki sam dysk (ten sam model i bardzo podobny pod względem zapisanych TiB, też za około 50zł) i wrzuciłem go do drugiego laptopa, no i on ma starsze SATA (3gbit/s zamiast 6gbit/s), i transfer jest na poziomie 270MB/s, a na tych 6gbit/s było prawie 500MB/s. xD
Ostatnio edytowany przez morfik (2024-01-09 20:17:39)
Offline