Creating a bug report/issue
Required Information
-
DietPi version |
cat /boot/dietpi/.version
G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=7
G_DIETPI_VERSION_RC=1
G_GITBRANCH=‘master’
G_GITOWNER=‘MichaIng’ -
Distro version |
echo $G_DISTRO_NAME $G_RASPBIAN
bullseye 0 -
Kernel version |
uname -a
Linux pubbypi 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux -
SBC model |
echo $G_HW_MODEL_NAME
or (EG: RPi3)
RPi 4 Model B (aarch64) -
Power supply used | (EG: 5V 1A RAVpower)
5V 3.5A -
USB card used | (EG: SanDisk ultra)
Kingston Datatraveler Exodia 3.2 [gen 1?] 128GB
Additional Information (if applicable)
- Software title | (EG: Nextcloud)
- Was the software title installed freshly or updated/migrated?
- Can this issue be replicated on a fresh installation of DietPi?
← If you sent a “dietpi-bugreport”, please paste the ID here → - Bug report ID |
echo $G_HW_UUID
root@pubbypi:~# vcgencmd bootloader_version
2022/04/26 11:24:28
version 507b2360eb46af23c05844b289dc5ae4ecfc3cca (release)
timestamp 1650968668
update-time 1659651248
capabilities 0x0000007f
Steps to reproduce
- …
- …
Expected behaviour
- …
Slightly faster r/w at least
Actual behaviour
- …
- Custom Filesystem : Write = 2 MB/s | Read = 23 MB/s
Extra details
- …
root@pubbypi:~# blkid
/dev/sda1: LABEL_FATBOOT="boot" LABEL="boot" UUID="4ADC-240F" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="8f4dbd00-01"
/dev/sda2: LABEL="rootfs" UUID="89cef7ba-d45a-47e7-8d42-aff18afcec80" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="8f4dbd00-02"
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
root@pubbypi:~# lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
|__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
|__ Port 4: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 2: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 2: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 2: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 3: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 3: Dev 5, If 1, Class=Human Interface Device, Driver=usbhid, 12M
root@pubbypi:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 87.7M 1 loop /snap/core/10862
loop1 7:1 0 88.1M 1 loop /snap/core/11996
sda 8:0 1 115.2G 0 disk
├─sda1 8:1 1 256M 0 part /boot
└─sda2 8:2 1 74.3G 0 part /
(lsbusb -v whilst connected via powered hub atm)
root@pubbypi:~# lsusb -vs 2:3
Bus 002 Device 003: ID 0951:1666 Kingston Technology DataTraveler 100 G3/G4/SE9 G2/50
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.20
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 9
idVendor 0x0951 Kingston Technology
idProduct 0x1666 DataTraveler 100 G3/G4/SE9 G2/50
bcdDevice 0.01
iManufacturer 1 Kingston
iProduct 2 DataTraveler 3.0
iSerial 3 E0D55EA573D8F6506938294A
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x002c
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 296mA
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 15
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 15
Binary Object Store Descriptor:
bLength 5
bDescriptorType 15
wTotalLength 0x0016
bNumDeviceCaps 2
USB 2.0 Extension Device Capability:
bLength 7
bDescriptorType 16
bDevCapabilityType 2
bmAttributes 0x00000006
BESL Link Power Management (LPM) Supported
SuperSpeed USB Device Capability:
bLength 10
bDescriptorType 16
bDevCapabilityType 3
bmAttributes 0x00
wSpeedsSupported 0x000e
Device can operate at Full Speed (12Mbps)
Device can operate at High Speed (480Mbps)
Device can operate at SuperSpeed (5Gbps)
bFunctionalitySupport 2
Lowest fully-functional device speed is High Speed (480Mbps)
bU1DevExitLat 10 micro seconds
bU2DevExitLat 2047 micro seconds
can't get debug descriptor: Resource temporarily unavailable
Device Status: 0x0000
(Bus Powered)
root@pubbypi:~# hdparm -tT /dev/sda1
/dev/sda1:
Timing cached reads: 1734 MB in 2.00 seconds = 868.23 MB/sec
Timing buffered disk reads: 252 MB in 3.01 seconds = 83.84 MB/sec
I’ve used with/without usb-storage.quirks=0951:1666:u
in /boot/cmdline.txt
to no avail.
I’ve connected with/without a hub (mind you this is just a usb stick itself), on every usb port with no difference. One odd thing I’ve noticed is it can randomly be fast, at least with the reading, however it’s still atrocious with writes, especially when I’m trying to do updates. I recently just got this usb stick, but I also have a spare sd card which I tried booting up via my transcend usb card reader and it has no speed problems, the same with another 2.5inch usb drive I was recently using (which this kingston was supposed to replace). I cloned that 2.5inch drive to the kingston using balena which is why you see it’s not using the whole disk yet. I notice that boot up times can be seemingly random, sometimes fast, sometimes very very slow, especially when it reaches redis and mariadb section of startup. Is there anything I might have missed or can do in this situation as I don’t think a hub chipset would be an issue if I’m having the same problem with just the kingston stick plugged in. Are kingston datatraveler 3.2 gen 1’s just bad with rpi4’s in general? I’d like to know if there is anything else I can try as I would like to exhaust my options before I consider getting a different stick.
If I’m looking at this issue correctly, it’s the random iops that is the main problem and not the sequential r/w speeds? Anyone else using this usb stick and not having problems like I am?