Sandisk Usb3 Nvme Disk with Linux: Difference between revisions

From JoBaPedia
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Sandisk is very slow. Should be 0.5-1GByte/s but is just ~30 MBytes/s
Symptom: Sandisk is very slow on Opensuse Leap 15.3. Should be 0.5-1GByte/s but is just ~30 MBytes/s


  dd ...
  dd ...
Line 11: Line 11:
Deactivating it gives better results, but not ideal since uas is the more modern implementation and would give better speed
Deactivating it gives better results, but not ideal since uas is the more modern implementation and would give better speed


enable with this command:
test with this command:


  echo "052d:0583:u" | sudo tee /sys/module/usb_storage/parameters/quirks
  echo "0781:55ae:u" | sudo tee /sys/module/usb_storage/parameters/quirks


check with this command
check with this command
Line 19: Line 19:
  sudo cat /sys/module/usb_storage/parameters/quirks
  sudo cat /sys/module/usb_storage/parameters/quirks
  0781:55ae:u
  0781:55ae:u
Put in kernel commandline e.g. for use with boot disk or if usb-storage is not a module
echo "0781:55ae:u" | sudo tee /sys/module/usb_storage/parameters/quirks


Look for "UAS is blacklisted" in dmesg on plug in:
Look for "UAS is blacklisted" in dmesg on plug in:
Line 48: Line 52:


now dd gives ~200MBytes/s. Not good, but better.
now dd gives ~200MBytes/s. Not good, but better.
Btw. Tumbleweed (as of 1.8.2022) on Lenovo Ideapad 5 pro 14itl6 this is not a problem. Very good performance out of the box

Latest revision as of 09:33, 2 August 2022

Symptom: Sandisk is very slow on Opensuse Leap 15.3. Should be 0.5-1GByte/s but is just ~30 MBytes/s

dd ...
1073741824 Bytes (1,1 GB, 1,0 GiB) kopiert, 36,5998 s, 29,3 MB/s

lsusb
...
Bus 008 Device 013: ID 0781:55ae SanDisk Corp. Extreme 55AE

it seems the disk and kernel module uas are not compatible. Deactivating it gives better results, but not ideal since uas is the more modern implementation and would give better speed

test with this command:

echo "0781:55ae:u" | sudo tee /sys/module/usb_storage/parameters/quirks

check with this command

sudo cat /sys/module/usb_storage/parameters/quirks
0781:55ae:u

Put in kernel commandline e.g. for use with boot disk or if usb-storage is not a module

echo "0781:55ae:u" | sudo tee /sys/module/usb_storage/parameters/quirks

Look for "UAS is blacklisted" in dmesg on plug in:

[3654122.315024] usb 8-2: new SuperSpeed Gen 1 USB device number 15 using xhci_hcd
[3654122.341545] usb 8-2: New USB device found, idVendor=0781, idProduct=55ae, bcdDevice=30.01
[3654122.341547] usb 8-2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[3654122.341548] usb 8-2: Product: Extreme 55AE
[3654122.341549] usb 8-2: Manufacturer: SanDisk
[3654122.341550] usb 8-2: SerialNumber: 32323233484D443035363337
[3654122.343741] usb 8-2: UAS is blacklisted for this device, using usb-storage instead
[3654122.343744] usb-storage 8-2:1.0: USB Mass Storage device detected
[3654122.343896] usb-storage 8-2:1.0: Quirks match for vid 0781 pid 55ae: 800000
[3654122.343911] scsi host6: usb-storage 8-2:1.0
[3654124.436914] scsi 6:0:0:0: Direct-Access     SanDisk  Extreme 55AE     3001 PQ: 0 ANSI: 6
[3654124.437087] scsi 6:0:0:1: Enclosure         SanDisk  SES Device       3001 PQ: 0 ANSI: 6
[3654124.438695] sd 6:0:0:0: Attached scsi generic sg3 type 0
[3654124.438733] ses 6:0:0:1: Attached Enclosure device
[3654124.438763] ses 6:0:0:1: Attached scsi generic sg4 type 13
[3654124.438874] sd 6:0:0:0: [sdd] 3906963617 512-byte logical blocks: (2.00 TB/1.82 TiB)
[3654124.439419] sd 6:0:0:0: [sdd] Write Protect is off
[3654124.439420] sd 6:0:0:0: [sdd] Mode Sense: 17 00 10 00
[3654124.440418] ses 6:0:0:1: Failed to get diagnostic page 0x1
[3654124.440419] ses 6:0:0:1: Failed to bind enclosure -19
[3654124.440914] sd 6:0:0:0: [sdd] No Caching mode page found
[3654124.440916] sd 6:0:0:0: [sdd] Assuming drive cache: write through
[3654124.463639]  sdd: sdd1
[3654124.465461] sd 6:0:0:0: [sdd] Attached SCSI disk

now dd gives ~200MBytes/s. Not good, but better.

Btw. Tumbleweed (as of 1.8.2022) on Lenovo Ideapad 5 pro 14itl6 this is not a problem. Very good performance out of the box