Hallo Forum,
ich betreibe ein Server und wunderte mich kürzlich über langsames kopieren auf die Sambafreigaben. In der Vergangenheit war das 1Gb Netzwerk der Flaschenhals. Die SSD sollte doch in der Lage sein mehrere hunder Mb pro Sekunde zu lesen, oder? Kurz auf dem Server eingeloggt sehe ich:
1 2 3 4 5 | sudo hdparm -Tt /dev/sdb /dev/sdb: Timing cached reads: 5798 MB in 2.00 seconds = 2899.85 MB/sec Timing buffered disk reads: 30 MB in 3.08 seconds = 9.73 MB/sec |
ich habe erst mal versucht fstrim laufen zu lassen. Hat etwas Verbesserungen gebracht.
1 2 3 4 5 6 7 8 9 | sudo fstrim -v -a /media/micha/sda2: 776,3 GiB (833586520064 Bytes) getrimmt /media/micha/sda1: 15 GiB (16137461760 Bytes) getrimmt /tmp: 1,8 GiB (1895694336 Bytes) getrimmt /boot: 164,2 MiB (172146688 Bytes) getrimmt /home: 5,5 GiB (5892874240 Bytes) getrimmt /var: 8,4 GiB (8962744320 Bytes) getrimmt /usr: 437 MiB (458182656 Bytes) getrimmt /: 735,8 MiB (771555328 Bytes) getrimmt |
anschließend
1 2 3 4 5 | sudo hdparm -Tt /dev/sdb /dev/sdb: Timing cached reads: 6186 MB in 2.00 seconds = 3093.97 MB/sec Timing buffered disk reads: 218 MB in 3.00 seconds = 72.59 MB/sec |
das sagt die SSD
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 | sudo smartctl -i -A /dev/sdb smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-143-generic] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: Samsung based SSDs Device Model: Samsung SSD 840 EVO 250GB Serial Number: S1DBNSBF388625N LU WWN Device Id: 5 002538 8a030f2aa Firmware Version: EXT0BB6Q User Capacity: 250.059.350.016 bytes [250 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: ACS-2, ATA8-ACS T13/1699-D revision 4c SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s) Local Time is: Sat Jun 12 08:54:59 2021 EDT SMART support is: Available - device has SMART capability. SMART support is: Enabled === START OF READ SMART DATA SECTION === SMART Attributes Data Structure revision number: 1 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 5 Reallocated_Sector_Ct 0x0033 096 096 010 Pre-fail Always - 147 9 Power_On_Hours 0x0032 095 095 000 Old_age Always - 24808 12 Power_Cycle_Count 0x0032 098 098 000 Old_age Always - 1468 177 Wear_Leveling_Count 0x0013 001 001 000 Pre-fail Always - 4004 179 Used_Rsvd_Blk_Cnt_Tot 0x0013 096 001 010 Pre-fail Always In_the_past 147 181 Program_Fail_Cnt_Total 0x0032 100 100 010 Old_age Always - 0 182 Erase_Fail_Count_Total 0x0032 100 100 010 Old_age Always - 0 183 Runtime_Bad_Block 0x0013 096 096 010 Pre-fail Always - 147 187 Uncorrectable_Error_Cnt 0x0032 099 099 000 Old_age Always - 34 190 Airflow_Temperature_Cel 0x0032 058 036 000 Old_age Always - 42 195 ECC_Error_Rate 0x001a 199 199 000 Old_age Always - 34 199 CRC_Error_Count 0x003e 099 099 000 Old_age Always - 15 235 POR_Recovery_Count 0x0012 099 099 000 Old_age Always - 291 241 Total_LBAs_Written 0x0032 099 099 000 Old_age Always - 2166562565811 |