USB 3.0 boot horribly slow

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
themagicm
Posts: 12
Joined: Sat Apr 18, 2020 6:05 am

USB 3.0 boot horribly slow

Post by themagicm »

I'm running DietPi on a USB 3.0 memory stick. Benchmark was 1MiB/s write and 91 MiB/s read. SD card boot and usage is much faster.
Pi 4B is the setup.

Any way to make this muuuuuuccccch faster?
User avatar
WarHawk
Posts: 732
Joined: Thu Jul 20, 2017 8:55 am

Re: USB 3.0 boot horribly slow

Post by WarHawk »

Oof...that is low...it should be alot faster than that...daggum

This shows there might be an issue with the RPi 4 boot from USB
https://smittytone.wordpress.com/2020/0 ... 3-0-drive/
The Pi 4’s USB 3.0 bus presents a high-speed alternative to the SD card… almost. Unfortunately, you can’t yet boot the Pi 4 off a USB 3.0-connected drive (as you could with the Pi 3) but you can at least use USB for your primary storage and retain the Pi’s micro SD card solely for boot duties. This minimizes the risk to this fragile medium.
however it doesn't explain those horrible write speeds...
User avatar
Joulinar
Posts: 5087
Joined: Sat Nov 16, 2019 12:49 am

Re: USB 3.0 boot horribly slow

Post by Joulinar »

how does it behave using USB2 port?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
themagicm
Posts: 12
Joined: Sat Apr 18, 2020 6:05 am

Re: USB 3.0 boot horribly slow

Post by themagicm »

Slow from both
User avatar
Joulinar
Posts: 5087
Joined: Sat Nov 16, 2019 12:49 am

Re: USB 3.0 boot horribly slow

Post by Joulinar »

how does the stick behave on another computer?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
themagicm
Posts: 12
Joined: Sat Apr 18, 2020 6:05 am

Re: USB 3.0 boot horribly slow

Post by themagicm »

I'll put it in my Linux laptop and do a benchmark then get back with you.
themagicm
Posts: 12
Joined: Sat Apr 18, 2020 6:05 am

Re: USB 3.0 boot horribly slow

Post by themagicm »

WRITE to USB:
$ sudo dd if=/dev/zero of=/media/themagicm/rootfs/largefile bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 23.1098 s, 46.5 MB/s


READ from USB:
sudo dd if=/media/themagicm/rootfs/largefile of=/dev/null bs=4k
262144+0 records in
262144+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 0.237135 s, 4.5 GB/s
User avatar
Joulinar
Posts: 5087
Joined: Sat Nov 16, 2019 12:49 am

Re: USB 3.0 boot horribly slow

Post by Joulinar »

did you tried a different USB stick/disk on the board having the slow speed?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply