Jump to content

Sata SSD drive working slowly, freezes very often | not working right channel in 3.5 mm jack


Damima

Recommended Posts

My Sata SSD drive works very slowly on Orange PI 4, using usb 3.0 port. On PC based on Windows 11 via usb 3.0 it works correctly.

I found problem on Armbian 23.02(trunk, 30.12.2022, edited parameters: installed software, bluetooth parameters) when I try move system onto SSD, first time it works normaly, but not so fast, as expected and automatically starts in read only mode. Read only mode I have fixed. Sometimes it breakes ext4 partition, that I've fixed using fsck, and fix again when ext4 breakes again and not working/works badly. After some time it begun freezing. I tried to find solution by myself, but not found good advices. I've tried some mounting parameters, that gave no result at all. I've tried advice about uas driver - used parameter "usbstoragequirks" in /boot/armbianEnv.txt, that makes work SSD a bit faster, but not solving my problem. I think maybe I need to reinstall system with a new image, Armbian 23.05(19.03.2023 trunk, edited params: disabled preinstalling software, bluetooth). it starts work very badly - freezes, disconnects, writes slowly. Also not working trim via options in mount params or via fstrim (disk has trim). Also SMART not working when usbstoragequirks parameter not set.

On 23.05, clean system, also without fix usbstoragequirks

Цитата

                        KDiskMark (3.1.2): https://github.com/JonMagon/KDiskMark
                    Flexible I/O Tester (fio-3.28): https://github.com/axboe/fio
--------------------------------------------------------------------------------
* MB/s = 1,000,000 bytes/s [SATA/600 = 600,000,000 bytes/s]
* KB = 1000 bytes, KiB = 1024 bytes

[Read]
Sequential   1 MiB (Q=  8, T= 1):   125.556 MB/s [    122.6 IOPS] < 4270963.50 us>
Sequential   1 MiB (Q=  1, T= 1):     0.000 MB/s [      0.0 IOPS] <     0.00 us>
    Random   4 KiB (Q= 32, T= 1):     0.000 MB/s [      0.0 IOPS] <     0.00 us>
    Random   4 KiB (Q=  1, T= 1):     0.000 MB/s [      0.0 IOPS] <     0.00 us>

[Write]
Sequential   1 MiB (Q=  8, T= 1):     0.000 MB/s [      0.0 IOPS] <     0.00 us>
Sequential   1 MiB (Q=  1, T= 1):     0.000 MB/s [      0.0 IOPS] <     0.00 us>
    Random   4 KiB (Q= 32, T= 1):     0.000 MB/s [      0.0 IOPS] <     0.00 us>
    Random   4 KiB (Q=  1, T= 1):     0.000 MB/s [      0.0 IOPS] <     0.00 us>

Profile: Default
   Test: 1 GiB (x5) [Measure: 5 sec / Interval: 5 sec]
   Date: 2023-04-06 19:08:32
     OS: ubuntu 22.04 [linux 5.15.98-rockchip64]

i.e. it started test and stoped with error.

 

On 23.02+usbstoragequirks

Цитата

                        KDiskMark (3.1.2): https://github.com/JonMagon/KDiskMark
                    Flexible I/O Tester (fio-3.28): https://github.com/axboe/fio
--------------------------------------------------------------------------------
* MB/s = 1,000,000 bytes/s [SATA/600 = 600,000,000 bytes/s]
* KB = 1000 bytes, KiB = 1024 bytes

[Read]
Sequential   1 MiB (Q=  8, T= 1):    59.564 MB/s [     58.2 IOPS] < 1032212.31 us>
Sequential   1 MiB (Q=  1, T= 1):   123.887 MB/s [    121.0 IOPS] <  8278.21 us>
    Random   4 KiB (Q= 32, T= 1):    18.181 MB/s [   4545.5 IOPS] <  7021.76 us>
    Random   4 KiB (Q=  1, T= 1):    14.333 MB/s [   3583.4 IOPS] <   275.08 us>

[Write]
Sequential   1 MiB (Q=  8, T= 1):   168.822 MB/s [    164.9 IOPS] < 163545.75 us>
Sequential   1 MiB (Q=  1, T= 1):   151.320 MB/s [    147.8 IOPS] <  5657.99 us>
    Random   4 KiB (Q= 32, T= 1):    21.285 MB/s [   5321.4 IOPS] <  5271.47 us>
    Random   4 KiB (Q=  1, T= 1):     0.000 MB/s [      0.0 IOPS] <     0.00 us>

Profile: Default
   Test: 1 GiB (x5) [Measure: 5 sec / Interval: 5 sec]
   Date: 2023-04-06 18:26:45
     OS: ubuntu 22.04 [linux 5.15.85-rockchip64]

i.e. stopped with error too

and dmesg after test on 23.02

Цитата

[ 1696.088389] usb 2-1: reset SuperSpeed USB device number 2 using xhci-hcd
[ 1741.965295] usb 2-1: reset SuperSpeed USB device number 2 using xhci-hcd
[ 1742.117293] usb 2-1: reset SuperSpeed USB device number 2 using xhci-hcd
[ 1743.714549] kdiskmark_helpe (6435): drop_caches: 1
[ 1749.482649] kdiskmark_helpe (6435): drop_caches: 1
[ 1755.242710] kdiskmark_helpe (6435): drop_caches: 1
[ 1791.937821] xhci-hcd xhci-hcd.1.auto: xHCI host not responding to stop endpoint command.
[ 1791.937866] xhci-hcd xhci-hcd.1.auto: USBSTS: 0x00000000
[ 1791.951463] xhci-hcd xhci-hcd.1.auto: xHCI host controller not responding, assume dead
[ 1791.951502] xhci-hcd xhci-hcd.1.auto: HC died; cleaning up
[ 1791.951761] usb 2-1: USB disconnect, device number 2
[ 1791.951871] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x03 driverbyte=DRIVER_OK cmd_age=36s
[ 1791.951910] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 07 68 65 00 00 01 00 00
[ 1791.951931] blk_update_request: I/O error, dev sda, sector 124282112 op 0x0:(READ) flags 0x80700 phys_seg 16 prio class 0
[ 1791.952086] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=DRIVER_OK cmd_age=0s
[ 1791.952097] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 07 68 66 00 00 01 00 00
[ 1791.952101] blk_update_request: I/O error, dev sda, sector 124282368 op 0x0:(READ) flags 0x80700 phys_seg 17 prio class 0
[ 1791.965833] blk_update_request: I/O error, dev sda, sector 124282112 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 1791.965853] Buffer I/O error on dev sda3, logical block 1053856, async page read
[ 1791.965877] blk_update_request: I/O error, dev sda, sector 115851424 op 0x1:(WRITE) flags 0x100000 phys_seg 1 prio class 0
[ 1791.965885] Buffer I/O error on dev sda3, logical block 20, lost async page write
[ 1791.965950] blk_update_request: I/O error, dev sda, sector 123091240 op 0x1:(WRITE) flags 0x100000 phys_seg 1 prio class 0
[ 1791.965957] Buffer I/O error on dev sda3, logical block 904997, lost async page write
[ 1791.966193] blk_update_request: I/O error, dev sda, sector 0 op 0x1:(WRITE) flags 0x800 phys_seg 0 prio class 0
[ 1791.967569] blk_update_request: I/O error, dev sda, sector 124282112 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 1791.967586] Buffer I/O error on dev sda3, logical block 1053856, async page read
[ 1791.967830] blk_update_request: I/O error, dev sda, sector 124282624 op 0x0:(READ) flags 0x80700 phys_seg 31 prio class 0
[ 1791.967862] blk_update_request: I/O error, dev sda, sector 124282368 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 1791.967868] Buffer I/O error on dev sda3, logical block 1053888, async page read
[ 1791.967959] blk_update_request: I/O error, dev sda, sector 124282112 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 1791.967966] Buffer I/O error on dev sda3, logical block 1053856, async page read
[ 1792.080494] Buffer I/O error on dev sda3, logical block 904997, async page read
[ 1792.081371] Buffer I/O error on dev sda3, logical block 904997, async page read
[ 1792.098017] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 1792.098167] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=0x01 driverbyte=DRIVER_OK
[ 1792.161268] kdiskmark_helpe (6435): drop_caches: 1
 

maybe be useful info that my audio output 3.5 mm stopped playing on right channel of speakers, left works correctly, stereo device it detects as mono(info from alsamixer). tested speakers and cable - all fine. tested headphones via 3.5 mm - same problem, only left channel.

 

also maybe useful SMART from opi4 via smartctl:

Цитата

smartctl 7.2 2020-12-30 r5155 [aarch64-linux-5.15.98-rockchip64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

ATA device successfully opened

Use 'smartctl -a' (or '-x') to print SMART (and more) information

user@orangepi4:~$ sudo smartctl -a /dev/sda
smartctl 7.2 2020-12-30 r5155 [aarch64-linux-5.15.98-rockchip64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

Warning! Drive Identity Structure error: invalid SMART checksum.
=== START OF INFORMATION SECTION ===
Model Family:     Indilinx Barefoot_2/Everest/Martini based SSDs
Device Model:     OCZ-VERTEX4
Serial Number:    000000123AE7
LU WWN Device Id: 5 e83a97 ba78e031b
Firmware Version: 1.5
User Capacity:    128 035 676 160 bytes [128 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
TRIM Command:     Available
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2 (minor revision not indicated)
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Thu Apr  6 20:25:21 2023 MSK
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:                    (0x1d) SMART execute Offline immediate.
                                        No Auto Offline data collection support.
                                        Abort Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        No Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x00) Error logging NOT supported.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling time:        (   0) minutes.
Extended self-test routine
recommended polling time:        (   0) minutes.

SMART Attributes Data Structure revision number: 18
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x0000   006   000   000    Old_age   Offline      -       6
  3 Spin_Up_Time            0x0000   100   100   000    Old_age   Offline      -       0
  4 Start_Stop_Count        0x0000   100   100   000    Old_age   Offline      -       0
  5 Reallocated_Sector_Ct   0x0000   100   100   000    Old_age   Offline      -       1
  9 Power_On_Hours          0x0000   100   100   000    Old_age   Offline      -       32775
 12 Power_Cycle_Count       0x0000   100   100   000    Old_age   Offline      -       4491
232 Lifetime_Writes         0x0000   100   100   000    Old_age   Offline      -       86658528735
233 Media_Wearout_Indicator 0x0000   086   000   000    Old_age   Offline      -       86

SMART Error Log not supported

Warning! SMART Self-Test Log Structure error: invalid SMART checksum.
SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

Selective Self-tests/Logging not supported
 

 

 

sorry for my bad english, I'm learning it

thanks in advance

 

Edited by Damima
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines