Live data from Hacker News

A2-class microSD cards offer no better performance for the Raspberry Pi

jeffgeerling.com

51–60 of 112 posts

Re: A2-class microSD cards offer no better performance for the Raspberry Pi

#51
post #35

A2 needs support in the Linux kernel. It's not there, yet. https://github.com/ThomasKaiser/Knowledge/blob/master/articl... "A2 promises even better performance with 4000/2000 read/write IOPS minimum but there's a problem since as outlined by the SD Association A2 cards show "much higher performance than A1 performance by using functions of Command Queuing and Cache". Cache and Command Queuing require host (driver) su…

So is there any kind of device able to use A2 cards at the rated performance yet? I can't get anything better on my Mac with multiple readers (USB 3.0 and 3.1), and I'm guessing if I tried on the reader in my 1 year old Dell XPS, I'd get the same. What good is a performance designation (A2) if no device in the real world supports it?

[deleted]

Re: A2-class microSD cards offer no better performance for the Raspberry Pi

#52

Looks like I'll keep booting my pi's from usb attached storage. At least with the Pi4 USB speed improvements should be nice.

I didn’t even know you could do that! Any idea if it works on the pi4 or not? The docs don’t mention it.

https://www.raspberrypi.org/documentation/hardware/raspberry...

Re: A2-class microSD cards offer no better performance for the Raspberry Pi

#53
post #33
post #30

Earlier quoted context omitted.

The term you want is “microSD express”. That is the standard for PCIe and NVME on microSD cards. It specs out at about 1GB/second transfer rates. Fun engineering decisions: It can use RAM from the hosting computer to store its logical block mapping tables so it doesn’t have to have DRAM onboard for that. That’s a clever way to use what the host has in abundance to avoid putting it on the price and volume constrained…

Solder the microSD and use the solder-points for thermal connection to the board, like for most other medium-power ICs. It is also cheaper than a socket.

Can standard microSD's survive standard reflow soldering? I wouldn't think they survive, but would be nice.

Re: A2-class microSD cards offer no better performance for the Raspberry Pi

#55
post #52

Looks like I'll keep booting my pi's from usb attached storage. At least with the Pi4 USB speed improvements should be nice.

I didn’t even know you could do that! Any idea if it works on the pi4 or not? The docs don’t mention it. https://www.raspberrypi.org/documentation/hardware/raspberry...

just a guess but s/he may have been referring to just putting root filesystem on a USB drive, but still requiring the bootloader (and possibly kernel?) to be on sd card. It's a one-time "hit" that is completely negligible.

Re: A2-class microSD cards offer no better performance for the Raspberry Pi

#56
post #34
post #32

Earlier quoted context omitted.

General practice in embedded is to avoid writing to disk as much as possible. Data collection is mostly done by sending it to the cloud for storage there. However 'edge processing' and 'edge storage' are hot topics, so there will probably be more work in this area. Some of the surveillance camera vendors are showing interest in this, since it would be beneficial to reduce data needed to be sent. Especially since vast…

Many embedded applications are also not particularly form-factor constrained. A good security camera lens is often easily bigger than a couple of 2.5" hard-drives and a medium sized single-board computation. Heck, just wiring boxes for an industrial sensor system, are can often bigger than 10s of 3.5" disks.

> Many embedded applications are also not particularly form-factor constrained.

just because the overall package is large doesn't mean the embedded designers are allocated a large portion of that.

and the upstream suppliers are always going to be pushing to be a bit smaller, so they can fit into more things, and get more sales.

Re: A2-class microSD cards offer no better performance for the Raspberry Pi

#57
post #46
post #45

How about lifespan? I fail to understand why SD card have such a short lifespan, and it's the sole reason I won't acquire an RPi. It seems that the only think that is lacking on RPi is flash memory storage. Most smartphones have a lot of it, and it seems that 1GB of storage would be enough for the RPi and would not necessarily be so expensive.

smartphone batteries will go out much, much sooner than a RPi SD card write-life. And nowadays they are much harder to replace.

That is just not true. I have burned through many a RPi SD card in 3-6 months, while phone batteries last 2 years at minimum.

Re: A2-class microSD cards offer no better performance for the Raspberry Pi

#58
post #46

Earlier quoted context omitted.

smartphone batteries will go out much, much sooner than a RPi SD card write-life. And nowadays they are much harder to replace.

That is just not true. I have burned through many a RPi SD card in 3-6 months, while phone batteries last 2 years at minimum.

What is your use case for the Pi? That’s a very short lifespan.

Re: A2-class microSD cards offer no better performance for the Raspberry Pi

#59
post #24
post #3

The major problem is not disk write speed, which we can all agree sucks, but longevity and lifespan when used as a system boot disk and also containing /var and similar. The write wear leveling on a u3 microsd card is nowhere near as good as even a $50 consumer class ssd. Small single board computers should move towards m.2 2280 nvme drive support, or at least one sata 6 gbps interface.

There are SD cards rated for "high endurance" for example https://www.amazon.com/gp/aw/d/B07B984HJ5 is designed for continuous 24/7 writes such as surveillance cameras. These should have great longevity when used in a RPi. What I would really like to see is RPi configurations optimized to reduce writes. For example mount the whole SD card read-only, mount a few essential filesystems as ramfs (/var, /tmp, /run), and h…

That's essentially what the Nerves Project does [1]. You can boot Phoenix webserver serving static files with zero writes. The root filesystem and server code is written to one of two read-only partitions updated using an A/B scheme. Then a separate ext4 partition is RW and mounted to `/root` by default.

The trick is dealing with stateful apps (e.g. sensors) that write continuously. Power outages are painful on SD cards. Lately I've moved to a separate USB drive for writing bulk sensor data with Pi's. Then the application data partition on the SD card can be used for backup sensor readings -- probably summarized data written rarely to reduce chance of SD card corruption. Mostly when I've had SD card issues its with just the RW partition, specifically the database I'm using gets checksum errors. Never had one not boot due to a bad SD.

Though I'm contemplating trying out BTRFS mirror'ing on a single USB drive, though bcachefs looks promising once mainlined. It's cheaper to buy two 32GB USB Thumbdrives (mirrored) or even a full usb based ssd than buying an SD card with a large amount of SLC based storage. The new Pi's will be a significant upgrade in speed with external USB SSD/Thumbdrives.

1: https://github.com/nerves-project/nerves/blob/master/docs/Ad...

Re: A2-class microSD cards offer no better performance for the Raspberry Pi

#60
post #45

How about lifespan? I fail to understand why SD card have such a short lifespan, and it's the sole reason I won't acquire an RPi. It seems that the only think that is lacking on RPi is flash memory storage. Most smartphones have a lot of it, and it seems that 1GB of storage would be enough for the RPi and would not necessarily be so expensive.

I'd look into industrial SLC uSD cards like the ones from Swissbit: https://www.digikey.com/en/supplier-centers/s/swissbit

Most consumer cards are designed around media storage so they don't last as long.

Post reply on HN