Skip to main content
coreydaley.dev

I blamed the SD card, then I turned off the encryption

I put a 256 GB A2 microSD card, in a flush adapter, in the SD slot of my M2 Pro MacBook Pro to take some pressure off the internal disk. The speed tests were bad enough that I started wondering whether I’d bought a weak card, or a fake one. Sequential reads came in at 66.1 MB/s and writes at 27.7. The box advertises 190 and 130.

The card wasn’t fake or failing. On an unencrypted volume, the same card in the same slot read at 93.0 MB/s, wrote at 73.6 MB/s, and passed a full capacity test with nothing lost. The encrypted volume I’d carried over from my original plan was the slower one.

That’s one card in one Mac, and the details matter, so here’s what I measured and what I can and can’t say about it. The full write-up, with the commands, is the memory card page in my disk space guide.

The numbers

I used fio with macOS caching turned off, one run of each test, same card, same slot. First on the encrypted volume, then on an unencrypted one:

TestEncryptedUnencrypted
Sequential read66.1 MB/s93.0 MB/s
Sequential write27.7 MB/s73.6 MB/s
Random 4K read2,990 IOPS2,974 IOPS
Random 4K write611 IOPS593 IOPS

Unencrypted was 41% faster on sequential reads and 2.7 times faster on sequential writes. Random 4K reads and writes didn’t move.

The capacity test told the same story. On the encrypted volume, f3 was writing at about 22 MB/s and estimating about four hours for the full card. I stopped it at about 27 GB. On the unencrypted volume, it wrote and read back 237.86 GB with 0 bytes lost, in about 1 hour 46 minutes, averaging 66 MB/s on writes and 90 MB/s on reads.

So the card holds what it says it holds, and the speed held up across all of it. It wasn’t a fake.

What I can’t say

These were single runs. The encrypted run came first. The unencrypted volume was a temporary second volume, not the same volume with encryption removed. Any of those could account for some of the gap, and I haven’t separated them. That’s why I’m saying I turned the encryption off, not that encryption was the whole problem.

What I can say is narrower: on this card, in this slot, the encrypted setup I had was much slower on large reads and writes than the unencrypted one, and it was cheap to find out. If a card seems slow, it’s worth measuring both ways before you blame the hardware. Yours may not behave like mine.

The box number was never going to happen

The other half of my disappointment was the 190 MB/s on the package. The card and the slot negotiated UHS-I SDR104, which the SD Association rates at 104 MB/s. I never saw 190 or 130 in this Mac. The ceiling I was measuring against was wrong before I’d run a single test. You can check what your own Mac negotiated:

ioreg -l | grep -m1 '"Speed Mode"'

Against 104 MB/s, 93 MB/s of sequential reads looks a lot less like a weak card.

The second surprise: it was wrong for caches

I bought the card to hold developer caches. Those turned out to be a poor fit, and the encryption had nothing to do with it.

The random 4K numbers are the ones that matter for caches, and they were slow either way: about 600 writes a second. Caches are thousands of tiny files. When I counted, my npx cache had 47,865 files averaging about 15 KB, and the pnpm store had 29,982 averaging about 13 KB. At 593 writes a second, 30,000 small files need at least 50 seconds of writes before the file system does any of its own work. That’s arithmetic, not a timed install. But it was enough to keep caches on the internal disk.

What fits the card is files I rarely use and can get back. It ended up holding my Ollama models, which are a few large files I can download again, and iOS DeviceSupport, which is thousands of medium-sized files written once per device and OS. DeviceSupport should copy again from a device, though only for the OS it runs now, and I haven’t tested that. A 1.9 GB Ollama model loaded from the card and answered a short prompt in about 28 seconds. That’s slow to start, and fine for something I open occasionally.

What leaving it unencrypted costs

With the card holding only files I can get back, I left it unencrypted. That has real costs:

  • Anyone who finds the card can read or change what’s on it.
  • FileVault doesn’t cover it. On this Mac, it covers only the internal volume.
  • The volume shows Owners: Disabled, so on a Mac with several accounts, I wouldn’t count on file permissions to keep the others out.
  • Nothing on the card is backed up. I excluded it from Time Machine, and I haven’t checked that it stays excluded over time.

DeviceSupport isn’t entirely anonymous, either. The folder names show device models and OS versions, and each folder has a small Info.plist I couldn’t read. I’d call the risk low, not zero. If personal files ever go on the card, they’d go in an encrypted volume next to the plain one. That’s a plan I haven’t built or tested.

A few things are still open, including whether the card survives a real overnight sleep and how Xcode behaves with the card out. The guide tracks them.

What I got wrong

  • I carried the encryption over without rechecking it. Encryption was part of the original plan. When the plan changed to replaceable files, the encryption came along unexamined, and I doubted the card before I doubted my own setup.
  • I trusted the box. The 190 MB/s figure never applied to this Mac’s UHS-I slot. I measured against a number the hardware couldn’t reach and read the gap as a defect.

The card is doing a useful job. It just isn’t the job I bought it for, and it isn’t set up the way I first set it up.

Before you call a piece of hardware slow, do you know what number it can actually reach in your machine?

Related posts