[HN Gopher] UASP makes Raspberry Pi 4 disk IO 50% faster ___________________________________________________________________ UASP makes Raspberry Pi 4 disk IO 50% faster Author : geerlingguy Score : 103 points Date : 2020-07-05 20:26 UTC (2 hours ago) (HTM) web link (www.jeffgeerling.com) (TXT) w3m dump (www.jeffgeerling.com) | totalZero wrote: | Friends, I have a question but I don't have a Pi 4 sitting around | to test this: | | Is it possible to run a Pi 4 using UASP if I set it up to boot | from a decent (Sandisk/Samsung/etc) USB 3.1 pen drive? | | Also, is this a reliable setup, or will the device be more stable | if booted and run from a MicroSD? | geerlingguy wrote: | I'm going to be testing a few different thumb drives in my next | post / video. I have a couple SanDisk models and an Arcanite | USB 3.1 drive that I'll be testing... but I don't believe they | use UASP (haven't had time to confirm that suspicion yet). | AnotherGoodName wrote: | >I found a USB 3.0 SSD was ten times faster than the fastest | microSD card I tested | | I looked it up because i know enough about hardware that this | shouldn't be the case (even with a cheap SD Card). Seems it's a | limitation of the Pi's SD Card slot. | https://www.jeffgeerling.com/blog/2018/raspberry-pi-microsd-... | UnlockedSecrets wrote: | Note this is only valid for raspberry pi's made before the 4, | The 4 includes a much faster SD card slot. | mlyle wrote: | Note that the testing was done on a Pi 4... | UnlockedSecrets wrote: | > tested on a Raspberry Pi model 3 B+: | | No it wasn't. | geerlingguy wrote: | This one, however, was: | https://www.jeffgeerling.com/blog/2019/raspberry-pi- | microsd-... | | Even on my Mac (tested with 6 different readers, | including one purporting A2 compatibility) the best | microSD cards are abysmal for random access. But they do | get closer to 90-120 MB/sec for reads, at least. | | To get advertised speeds on most of the cards, I am | guessing you need to work for the SD association's | marketing department :D | https://www.jeffgeerling.com/blog/2019/raspberry-pi- | microsd-... | aspenmayer wrote: | This is more up-to-date, and includes more models of Pi's and | SD cards. It was linked in your post, but the post is now out- | of-date relative to my link below. | | https://pidramble.com/wiki/benchmarks/microsd-cards | geerlingguy wrote: | If you want to bookmark a page, that's the one that I update | every year or two (usually after a new Pi model is released). | The blog posts fade a little in relevance over time since I | don't keep them updated. | floatboth wrote: | > Without UASP, a drive is mounted as a Mass Storage Device using | Bulk Only Transport (or BOT), a protocol that was designed for | transferring files way back in the USB 'Full speed' days | | Wow, holy shit, TIL.. I was always assuming that USB drives were | always SCSI -- they show up as 'da' (Direct Attach) on FreeBSD | after all. | | Looking at umass driver source: | | * The driver handles 3 Wire Protocols | | * - Command/Bulk/Interrupt (CBI) | | * - Command/Bulk/Interrupt with Command Completion Interrupt (CBI | with CCI) | | * - Mass Storage Bulk-Only (BBB) (BBB refers Bulk/Bulk/Bulk for | Command/Data/Status phases) | | * Over these wire protocols it handles the following command | protocols | | * - SCSI | | * - UFI (floppy command set) | | * - 8070i (ATAPI) | | * UFI and 8070i (ATAPI) are transformed versions of the SCSI | command set. | | Huh, they _are_ pretty much always SCSI, and "bulk only" is | (unsurprisingly) only a USB transport level thing that doesn't | change the command set. | | I guess "UASP" is some sort of marketing term for | Command/Bulk/Interrupt then..? | megous wrote: | Goals section: | | https://en.wikipedia.org/wiki/USB_Attached_SCSI | Ijumfs wrote: | The Pi 4 is a big revolution, fast enough to serve as a desktop | computer for most office people, students, and so on. It's pretty | impressive and more attention is being paid to it as a first- | class computing platform as time goes on. | | Our desktop monoculture has led to serious security problems and | massive stagnation at least until recently. Even if you don't use | a Pi you should be thankful that they exist. | mixmastamyk wrote: | It should be and is decent, but when we tried we ran into | numerous paper-cuts: | | - Needed to set up NTP to set the clock, it was always wrong. | | - It can't power down through software, so you have to shut | down and then hit the power switch like its 1990. | | - Audio was a mess and had to spend hours researching how to | write and edit a bunch of config files to make it predictable. | | - The weird set up program means you need to do a lot of | googling on how to fix issues in a non-standard to linux way. | It mostly works however. | | - Raspbian feels not quite "finished." Was much happier with | Ubuntu Mate, as they fixed 99% of the paper cuts already, but | it doesn't support the 4 yet. | | In short, it is a bit too cheap. I would have definitely spent | another dollar to see these hardware issues fixed. Or dropped | the CPU speed a hundred MHZ, whatever it takes. | | In the end, A friend gave us a ten-year-old used iMac for free. | I installed Ubuntu Mate on it and it had none of the above | problems. | Narishma wrote: | > The Pi 4 is a big revolution, fast enough to serve as a | desktop computer for most office people, students, and so on. | | Even the Pi 3 was already good enough for most of those use | cases. The main exception being browsing modern bloated | websites. | floatboth wrote: | The Cortex-A53 is _really_ weak. I wouldn 't want to run an | office suite on that either. Oh, and the Pi 3 was VERY | limited by RAM. | | "most office people, students, and so on" pretty much always | do browse lots of modern websites, at the same time as | running an office suite, audio player, and more stuff. | | The A72 is really the "minimum viable CPU core" for desktop | usage. Anything with less single-core performance is absolute | hell and suffering. | geerlingguy wrote: | The CM 3+ (which is clocked at 1.2 GHz but is same in other | ways to the Pi B 3+ which is 1.4 GHz) is less than half as | fast as the Pi 4 in most CPU tasks: | https://www.jeffgeerling.com/blog/2020/raspberry-pi- | cluster-... | geerlingguy wrote: | The CPU is now (IMHO) the major sticking point for many of my | own use cases. It would also be nice to have an easier / less | cumbersome way to connect higher speed storage. (The mess of | cabling you get with an add-on USB 3.0 drive is annoying.) | tlrobinson wrote: | > The mess of cabling you get with an add-on USB 3.0 drive is | annoying | | I'm surprised there's no Raspberry Pi case with a slot for a | 2.5" drive and integrated USB 3.0 SATA controller. | geerlingguy wrote: | There are a few, and they're not too bad, but it's still | something that would be neatly solved with an option of a | PCIe slot or even onboard eMMC like on the compute module | (assuming the eMMC or built-in NVMe was much faster than | the one on CM3+ and below). | Zenst wrote: | there are, can even make your own. One quick example | https://www.amazon.co.uk/MakerHawk-Upgrated- | Raspberry-2-5-In... | pedrocr wrote: | At that point you probably want a NUC style computer like the | Lenovo M75q. Up to 4 core 8 thread, 32GB+ RAM (two slots), | AMD graphics and an M.2 slot. | | https://psref.lenovo.com/syspool/Sys/PDF/ThinkCentre/ThinkCe. | .. | 867-5309 wrote: | being 3-4x the size, weight, price and power consumption, | it really doesn't compare. I'm sure pi4 SATA/NVMe | enclosures/hats exist | nerdbeere wrote: | Also noteworthy is the upcoming ASUS PN 50 with the new | Ryzen Renoir CPUs with up to 8 cores and 64GB RAM. | | When this will be available in Europe I'll get that to | replace my MacBook for a developer machine. | | https://liliputing.com/2020/06/asus-pn50-is-a-mini-pc- | with-u... | thebruce87m wrote: | The DeskMini series has two M.2 slots AND two 2.5" slots in | a tiny enclosure. Here's mine: | | Noctua NH-L9A-AM4, 37mm Premium Low-profile CPU Cooler for | AMD AM4 (Brown) PS36.17 incl. VAT | https://www.amazon.co.uk/Noctua-NH-L9A-AM4-Premium-Low- | profi... | | ASRock USB 2.0 Header to 2 x USB 2.0 Cable for DeskMini | Series Chassis PS10.93 Incl. VAT | https://www.amazon.co.uk/ASRock-Cable-Deskmini-Mini-Stx- | Chas... | | AMD Ryzen 5 3400G Processor (4C/8T, 6MB cache, 4.2GHz Max | Boost) with Radeon(tm) RX Vega 11 Graphics PS139.99 incl. | VAT https://www.amazon.co.uk/dp/B07SXNDKNM/?tag=pcp0f-21 | | Sabrent 1TB Rocket NVMe PCIe M.2 2280 Internal SSD High | Performance Solid State Drive (SB-ROCKET-1TB) PS109.99 | incl. VAT | https://www.amazon.co.uk/dp/B07LGF54XR/?tag=pcp0f-21&th=1 | | ASRock DeskMini A300 Mini PC Barebone for Socket AM4 | PS146.94 incl. VAT | https://www.amazon.co.uk/dp/B07P9GL1LN/?tag=pcp0f-21 | | ASRock Wi-Fi Kit for DeskMini Series Chassis, includes 2 x | Antennas PS29.42 incl. VAT https://www.amazon.co.uk/ASRock- | Wi-Fi-DeskMini-Chassis-Anten... | | 2 x ADATA AD4S2666316G19-S 16GB DDR4 2666 MHz Memory Module | - Memory Modules (16GB, 1x 16GB, DDR4, 2666MHz, 260-pin SO- | DIMM) 2 x PS73.12 incl. VAT https://www.amazon.co.uk/ADATA- | AD4S2666316G19-S-16GB-Memory-... | | Price a few months ago - PS619.68 | | Note that you don't need the noctua fan but the provided | fan that comes with the case is a bit whiny. | opencl wrote: | It's also possible to fit the fan included with the 3400G | into the deskmini with slight modification (removing the | plastic shroud from the top, it's just clipped on). ___________________________________________________________________ (page generated 2020-07-05 23:00 UTC)