-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raspberry Pi 5 USB 3.0 Write Speed Issue #1877
Comments
Have you set the cpufreq governor to |
Quick tests using this SSD:
Testing methodology:
No idea (so far) how switching ASPM from As reference numbers from my Pi 4 made directly before with same SSD, same cable, same install on same SD card: 1st time ASPM set to
|
Forgot that I personally already measured 415/420 MB/s with modern ARM SoCs and USB3 SuperSpeed. Retested with that EVO840 on two different USB3-to-SATA bridges and same picture: with ASPM set to
And an additional test with a btrfs raid1 out of the two EVOs shows also the expected difference wrt ASPM:
|
Two things conspire to give reduced performance here - L1 entry/exit latencies get in the way of DMA, and a devicetree property that should optimise the USB3 controller transmit FIFO threshold wasn't getting applied. This particularly affects sequential write performance, as you've seen. What happens if you do (on an otherwise idle system, and without critical data on any attached USB drive)
And re-run the benchmarks? |
…y timeout to 32 us (latest) * Extend PCIe L1 entry timeout to 32us Fix xhci soft reset on link-down Set useful xhci compatibility bits in GUCTL See raspberrypi/firmware#1877
…y timeout to 32 us (latest) * Extend PCIe L1 entry timeout to 32us Fix xhci soft reset on link-down Set useful xhci compatibility bits in GUCTL See raspberrypi/firmware#1877
hey guys! any news on this issue? |
Yes. It's fixed. |
I have conducted a number of tests that demonstrate the Raspberry Pi 5 has a noticeably slower write speed vs that of a Pi 4 when writing to external disks ( SSD's ) via USB 3.0
it also falls well short of the practical speeds that should be achievable via USB 3.0, even accounting for protocol / transfer overheads, 400-450MB/s
My original investigation and findings are detailed here: https://forums.raspberrypi.com/viewtopic.php?t=367370
Pi 5 speeds:
Pi 4 speeds:
The benchmark application is compiled from source found here: https://stackoverflow.com/questions/71038719/how-to-reach-10gb-s-writes-in-c-c-to-nvme-disks-under-linux
The text was updated successfully, but these errors were encountered: