Re: [PLUG] USB 3 port running very slowly - why?

2023-04-18 Thread Ben Koenig
--- Original Message ---
On Tuesday, April 18th, 2023 at 12:16 AM, American Citizen 
 wrote:


> Well, after doing some more digging, I found out that this drive is very
> limited in read/write speeds
> 
> And I did find a nice USB flash stick testing tool called "F3" (for
> Fight Flash Fraud) See https://github.com/AltraMayor/f3/
> 
> Finally, I consider this problem solved. (don't necessary assume gift
> drives are a prize)
> 
> - Randall

Ethics in Marketing strikes again!

Delivering speeds Up To* whatever the connector is capable of..

-Ben


Re: [PLUG] USB 3 port running very slowly - why?

2023-04-18 Thread American Citizen
Well, after doing some more digging, I found out that this drive is very 
limited in read/write speeds


And I did find a nice USB flash stick testing tool called "F3" (for 
Fight Flash Fraud) See https://github.com/AltraMayor/f3/


Finally, I consider this problem solved. (don't necessary assume gift 
drives are a prize)


- Randall




Re: [PLUG] USB 3 port running very slowly - why?

2023-04-18 Thread Russell Senior
How are you transferring?  I have had experience recently with dd and not
setting a "reasonable" block size, thereby relying on the default 512 byte
blocks, which means LOTS of syscalls to do the IO. Setting the block size
to something like 16M made it go a lot faster. Could that be your problem?

-- 
Russell Senior
russ...@personaltelco.net

On Mon, Apr 17, 2023 at 10:38 PM American Citizen 
wrote:

> Hello all:
>
> Someone gave me a PNY 256 gig flash memory stick, with USB 3.0 advertised.
>
> However when uploading to it, the actual rate varies from around 1.5
> MiB/sec to 10.6 Mib/sec, which is way lower than the advertised USB 3.0
> speed of 5 GiB/sec (? if we believe the information below)
>
> I ran the %lsusb command to try to see what is going on here.
>
> Any ideas on why it will take hours to transfer 208 gigs to it?
>
> - Randall
>
> -- information dump ---
>
> HP Z420 workstation USB Controller information
> ---
>
> SYSTEM: OpenSuse Leap 15.4 on 64 bit hardware
> Workstation has 2 USB3 ports and 1 USB2 port on the front panel
>
> Operating System: openSUSE Leap 15.4
> KDE Plasma Version: 5.24.4
> KDE Frameworks Version: 5.90.0
> Qt Version: 5.15.2
> Kernel Version: 5.14.21-150400.24.55-default (64-bit)
> Graphics Platform: X11
> Processors: 6 × Intel® Xeon® CPU E5-1650 v2 @ 3.50GHz
> Memory: 31.3 GiB of RAM
> Graphics Processor: NV106
>
> (from USB devices Info Center)
> xHCI Host Controller (3)
> Manufacturer: Linux 5.14.21-150400.24.55-default xhci-hcd
> Serial #: :08:00.0
> Class 9 (Hub)
> Subclass 0 (Unused)
> Protocol 3
> USB Version 3.00
>
> Vendor ID 0x1d6b (Linux Foundation)
> Product ID 0x0003 (3.0 root hub)
>
> Speed 5,000 Mbit/s
> Channels 4
> Max. Packet Size 9
>
> USB 3.2.1 FD
>
> Manufacturer: PNY
> Serial #: 071C2B1F12A4F803
>
> Class 0 ((Defined at Interface level))
> Subclass 0
> Protocol 0
> USB Version 3.20
>
> Vendor ID 0x154b (PNY)
> Product ID 0x1006
>
> Speed 5,000 Mbit/s
> Channels 0
> Max. Packet Size 9
>
> (from %lsusb -d 154b:1006 -v command)
>
> PNY Flash Memory Stick - 256 gigs
>
> Bus 003 Device 003: ID 154b:1006 PNY USB 3.2.1 FD
> Device Descriptor:
>bLength18
>bDescriptorType 1
>bcdUSB   3.20
>bDeviceClass0
>bDeviceSubClass 0
>bDeviceProtocol 0
>bMaxPacketSize0 9
>idVendor   0x154b PNY
>idProduct  0x1006
>bcdDevice1.10
>iManufacturer   1 PNY
>iProduct2 USB 3.2.1 FD
>iSerial 3 071C2B1F12A4F803
>bNumConfigurations  1
>Configuration Descriptor:
>  bLength 9
>  bDescriptorType 2
>  wTotalLength   0x002c
>  bNumInterfaces  1
>  bConfigurationValue 1
>  iConfiguration  0
>  bmAttributes 0x80
>(Bus Powered)
>  MaxPower  504mA
>  Interface Descriptor:
>bLength 9
>bDescriptorType 4
>bInterfaceNumber0
>bAlternateSetting   0
>bNumEndpoints   2
>bInterfaceClass 8 Mass Storage
>bInterfaceSubClass  6 SCSI
>bInterfaceProtocol 80 Bulk-Only
>iInterface  0
>Endpoint Descriptor:
>  bLength 7
>  bDescriptorType 5
>  bEndpointAddress 0x81  EP 1 IN
>  bmAttributes2
>Transfer TypeBulk
>Synch Type   None
>Usage Type   Data
>  wMaxPacketSize 0x0400  1x 1024 bytes
>  bInterval   0
>  bMaxBurst   3
>Endpoint Descriptor:
>  bLength 7
>  bDescriptorType 5
>  bEndpointAddress 0x02  EP 2 OUT
>  bmAttributes2
>Transfer TypeBulk
>Synch Type   None
>Usage Type   Data
>  wMaxPacketSize 0x0400  1x 1024 bytes
>  bInterval   0
>  bMaxBurst   3
>
> ---
>
>


[PLUG] USB 3 port running very slowly - why?

2023-04-17 Thread American Citizen

Hello all:

Someone gave me a PNY 256 gig flash memory stick, with USB 3.0 advertised.

However when uploading to it, the actual rate varies from around 1.5 
MiB/sec to 10.6 Mib/sec, which is way lower than the advertised USB 3.0 
speed of 5 GiB/sec (? if we believe the information below)


I ran the %lsusb command to try to see what is going on here.

Any ideas on why it will take hours to transfer 208 gigs to it?

- Randall

-- information dump ---

HP Z420 workstation USB Controller information
---

SYSTEM: OpenSuse Leap 15.4 on 64 bit hardware
Workstation has 2 USB3 ports and 1 USB2 port on the front panel

Operating System: openSUSE Leap 15.4
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.14.21-150400.24.55-default (64-bit)
Graphics Platform: X11
Processors: 6 × Intel® Xeon® CPU E5-1650 v2 @ 3.50GHz
Memory: 31.3 GiB of RAM
Graphics Processor: NV106

(from USB devices Info Center)
xHCI Host Controller (3)
Manufacturer: Linux 5.14.21-150400.24.55-default xhci-hcd
Serial #: :08:00.0
Class 9 (Hub)
Subclass 0 (Unused)
Protocol 3
USB Version 3.00

Vendor ID 0x1d6b (Linux Foundation)
Product ID 0x0003 (3.0 root hub)

Speed 5,000 Mbit/s
Channels 4
Max. Packet Size 9

USB 3.2.1 FD

Manufacturer: PNY
Serial #: 071C2B1F12A4F803

Class 0 ((Defined at Interface level))
Subclass 0
Protocol 0
USB Version 3.20

Vendor ID 0x154b (PNY)
Product ID 0x1006

Speed 5,000 Mbit/s
Channels 0
Max. Packet Size 9

(from %lsusb -d 154b:1006 -v command)

PNY Flash Memory Stick - 256 gigs

Bus 003 Device 003: ID 154b:1006 PNY USB 3.2.1 FD
Device Descriptor:
  bLength    18
  bDescriptorType 1
  bcdUSB   3.20
  bDeviceClass    0
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 9
  idVendor   0x154b PNY
  idProduct  0x1006
  bcdDevice    1.10
  iManufacturer   1 PNY
  iProduct    2 USB 3.2.1 FD
  iSerial 3 071C2B1F12A4F803
  bNumConfigurations  1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength   0x002c
    bNumInterfaces  1
    bConfigurationValue 1
    iConfiguration  0
    bmAttributes 0x80
  (Bus Powered)
    MaxPower  504mA
    Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber    0
  bAlternateSetting   0
  bNumEndpoints   2
  bInterfaceClass 8 Mass Storage
  bInterfaceSubClass  6 SCSI
  bInterfaceProtocol 80 Bulk-Only
  iInterface  0
  Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81  EP 1 IN
    bmAttributes    2
  Transfer Type    Bulk
  Synch Type   None
  Usage Type   Data
    wMaxPacketSize 0x0400  1x 1024 bytes
    bInterval   0
    bMaxBurst   3
  Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x02  EP 2 OUT
    bmAttributes    2
  Transfer Type    Bulk
  Synch Type   None
  Usage Type   Data
    wMaxPacketSize 0x0400  1x 1024 bytes
    bInterval   0
    bMaxBurst   3
---