What to put on a memory card in a Mac
A memory card suits files you rarely use, mostly read and can get back, especially large ones. It’s a poor home for caches made of thousands of tiny files, and the wrong place for apps or for anything without another copy. The reason is in the speeds: on the card I tested, big reads and writes were reasonable, and small writes were about 30 times slower.
I tested a 256 GB A2 microSD card in a flush adapter, in the SD slot of an M2 Pro MacBook Pro. Cards and adapters differ, so test yours.
What the speeds say
These are from fio with macOS caching off, one run on the card’s unencrypted
volume:
| Test | Speed | What it affects |
|---|---|---|
| Sequential read | 93.0 MB/s | Loading large files |
| Sequential write | 73.6 MB/s | Copying large files on |
| Random 4K read | 12.2 MB/s (2,974 IOPS) | Reading many tiny files |
| Random 4K write | 2.4 MB/s (593 IOPS) | Writing many tiny files |
Two things follow:
- Sequential read is what matters for large, mostly read files. At 93 MB/s, a 2 GB file takes about 22 seconds to read. From the card, a 1.9 GB Ollama model loaded and answered a short prompt in about 28 seconds. That’s slow to start, but fine for something you open occasionally.
- Random 4K write is what rules out caches. A package cache gets written in lots
of tiny pieces. At 593 writes a second, 30,000 small files need at least 50 seconds
of writes, before any of the file system’s own work. That’s my arithmetic, because
fiodoesn’t create files. I never timed a real install on the card.
A full f3 run backs up the sequential numbers over the whole card. It wrote and read
back 237.86 GB with 0 bytes lost, in about 1 hour 46 minutes, at 66 MB/s average write
and 90 MB/s average read. So the capacity is real and the speed held up. I didn’t
measure the internal disk for comparison.
To see how the file sizes differ in practice, I counted files in folders on my Mac. Yours will have different totals, but the shape should be similar:
| Folder | Files | Average size |
|---|---|---|
| Ollama models | 9 | about 214 MB |
| iOS DeviceSupport | 8,827 | about 1.3 MB |
| DerivedData | 7,691 | about 167 KB |
| Gradle caches | 4,028 | about 98 KB |
| uv cache | 21,301 | about 32 KB |
| npx cache | 47,865 | about 15 KB |
| pnpm store | 29,982 | about 13 KB |
To count yours, with your own folder in place of the npx cache here:
find "$HOME/.npm/_npx" -type f | wc -l
du -sh "$HOME/.npm/_npx"What fits and what doesn’t
| Files | Fit | Why | Did I try it? |
|---|---|---|---|
| Local AI models (Ollama) | Good | A few large files, mostly read, download again | Moved |
| iOS DeviceSupport | Good, with caveats | Used only when debugging or reading crash logs, written once per device and OS | Moved |
| Other speech or AI models you rarely use (such as MacWhisper’s) | Good | Same shape as Ollama: mostly read, download again | Reasoned, not tried |
| Logic Pro sound library | Good | Mostly read, and Apple documents moving it | Reasoned, not tried |
| Go modules, npm, npx, pnpm, uv, Gradle and Rust caches | Poor | Thousands of tiny files, and installs write to them | Reasoned, not tried |
| DerivedData | Poor | Thousands of small files, rewritten on every build | Reasoned, not tried |
| Simulator runtimes and simulators | Poor | Xcode manages runtimes in its own storage, and simulators write constantly | Reasoned, not tried |
| Apps | Don’t move | They can break or fail to update, and won’t open with the card out | Reasoned, not tried |
| Docker and other container storage | Don’t move | Active storage, and pulling the card mid-write could corrupt it | Reasoned, not tried |
| Personal files and anything with no other copy | Don’t move | My card isn’t encrypted or backed up, so these would have neither | Reasoned, not tried |
Some notes on those:
- iOS DeviceSupport isn’t really large files. It’s thousands of medium-sized ones, and none of mine is over 100 MB. It fits because it’s rarely used and only written when a new device or OS appears. That first copy may be slow. Debugging on a device may also start slower. I haven’t tested either, because no device was connected.
- Model sizes vary. Ollama’s listing for one model,
llama3.2, runs from 581 MB to 6.4 GB depending on the variant. Check what you have withdu -sh "$HOME/.ollama/models/". - Logic has its own way to do this. Don’t use a symlink. Apple’s instructions differ by version. Apple says not to rename the volume afterwards, and that with the drive missing you can continue without the sounds, with the affected tracks replaced by basic tones.
- Rarely opened personal files can work with a backup and encryption. The speeds would suit them. The risk is the only copy being on a small, removable card.
Encrypted or not
Same card and slot, with fio and macOS caching off, one run each:
| Test | Encrypted | Unencrypted | Difference |
|---|---|---|---|
| Sequential read | 66.1 MB/s | 93.0 MB/s | 41% faster |
| Sequential write | 27.7 MB/s | 73.6 MB/s | 2.7× faster |
| Random 4K read | 2,990 IOPS | 2,974 IOPS | No change |
| Random 4K write | 611 IOPS | 593 IOPS | No change |
An f3 run on the encrypted volume showed about 22 MB/s writes, with an estimate of
about 4 hours for the full card. I stopped it at about 27 GB, so it never finished.
In these runs, the encrypted volume was slower on sequential speed. That’s one card, one run of each, encrypted first, and the plain volume was a temporary second volume, so I can’t say encryption is the whole cause. Don’t assume yours will behave the same. It’s cheap to measure.
Small-file writes stayed slow either way, so caches stay on the internal disk whichever you choose.
Encrypted
- Anyone who finds or steals the card can’t read it without the password.
- It suits files you can’t download again, like personal files.
- In my runs, sequential speed was lower, as the table shows.
- You have a password to keep, and I found no recovery option if you lose it. Saving it in your keychain so the card unlocks by itself helps.
- It doesn’t fix small-file speed.
Unencrypted
- In my runs, sequential speed was higher, and there’s nothing to manage.
- Anyone holding the card can read or change what’s on it, so only put replaceable data there.
- It also isn’t protected by FileVault, which covers only the internal volume here.
There’s one more point against unencrypted. My card’s volume shows Owners: Disabled in diskutil info, and man mount says that makes everything appear
owned by the current user. So on a Mac with several accounts, I wouldn’t count on
file permissions to keep the others out.
I chose unencrypted, because the card holds only iOS DeviceSupport and one
public Ollama model. The Ollama model downloads again. DeviceSupport should copy again
from a device, but only for the OS it runs now. I haven’t tested that. One more thing I
couldn’t verify: each DeviceSupport folder has a small Info.plist that I wasn’t able
to read, and it may hold device details. The folder names also show device models and
OS versions. So I’d call the risk low, not zero.
If personal files ever go on the card, an encrypted APFS volume should be addable next to the plain one without reformatting, and Apple says volumes in a container share its free space. That two-volume setup is only a plan. I haven’t built or tested it.
Test your own card
The card and slot negotiated UHS-I SDR104, which the SD Association rates at 104 MB/s. The box advertises 190 and 130 MB/s, which I never saw in this Mac. To see what yours negotiated:
ioreg -l | grep -m1 '"Speed Mode"'Install the tools with brew install fio f3, and replace SDCache with your card’s
name. Quote the path if the name has a space, and never point f3write at your startup
disk. fio writes a 4 GB test file, and f3write fills all the free space on the
card, so run f3 on an empty card. Both then need the test files removed. The fio
tests took 2 to 4 minutes here, and f3 took about 1 hour 46 minutes:
mkdir -p /Volumes/SDCache/fio-test
fio --name=seqwrite --filename=/Volumes/SDCache/fio-test/t.dat --size=4g --ioengine=posixaio --direct=1 --rw=write --bs=1m --iodepth=8 --end_fsync=1
fio --name=seqread --filename=/Volumes/SDCache/fio-test/t.dat --size=4g --ioengine=posixaio --direct=1 --rw=read --bs=1m --iodepth=8 --runtime=30 --time_based
fio --name=randread --filename=/Volumes/SDCache/fio-test/t.dat --size=4g --ioengine=posixaio --direct=1 --rw=randread --bs=4k --iodepth=16 --runtime=30 --time_based
fio --name=randwrite --filename=/Volumes/SDCache/fio-test/t.dat --size=4g --ioengine=posixaio --direct=1 --rw=randwrite --bs=4k --iodepth=16 --runtime=30 --time_based --end_fsync=1
rm -f /Volumes/SDCache/fio-test/t.dat
rmdir /Volumes/SDCache/fio-test
f3write /Volumes/SDCache && f3read /Volumes/SDCacheTo remove f3’s files afterwards, run rm -f /Volumes/SDCache/*.h2w. Check the
card name carefully first. Deleted test files can stay pinned by a snapshot; see
what’s still open.
Moving a folder
Copy, verify, link, test, and only then delete the original. Quit the app that
uses the folder first. Mine needed a force stop, so check with pgrep -f Ollama.
Set the two paths to your own. Here’s the Ollama example:
SRC="$HOME/.ollama/models"
DST="/Volumes/SDCache/Ollama/models"
mkdir -p "$(dirname "$DST")" && ditto "$SRC" "$DST" && diff -rq "$SRC" "$DST" && mv "$SRC" "$SRC.pre-card" && ln -s "$DST" "$SRC" && ls "$SRC/"The && chain stops at the first failure. I ran this block on test files, and
the real move followed the same steps. Open the app and check it works. Then
delete the old copy. This can’t be undone, so do it only once you’re happy:
rm -rf "$HOME/.ollama/models.pre-card"Ollama also has an OLLAMA_MODELS setting, documented in its
FAQ, if you’d rather
not use a link.
To undo a move, remove the link with plain rm, then copy the folder back:
rm "$HOME/.ollama/models"
ditto "/Volumes/SDCache/Ollama/models" "$HOME/.ollama/models"Symlink risks
- A trailing slash can delete the card’s copy. I tested these on macOS 27.2
with test files.
rm linkandrm -rf linkremove only the link.rm -rf link/deletes the real folder on the card and leaves a dead link, with no warning.rm -rf link/*empties the real folder. - Tab completion can matter. Default zsh shows a slash after Tab but removed it on
Return when I tested, and only the link went. With
noautoremoveslashset, or in bash after a second Tab, the slash stayed and the real folder went. Your shell setup decides, so don’t rely on it. - Cleanup tools may follow the link. I haven’t tested any. It’s worth knowing
what’s linked before you run one:
find ~/Library/Developer/Xcode ~/.ollama -maxdepth 1 -type l dureports the link as0B. Add a trailing slash to measure the contents, which is safe withdu.- The link points to a name. It targets
/Volumes/SDCache, so another volume with that name could cause trouble. I haven’t tested that, so give the card a name nothing else uses.
When the card is out
I tested this by unmounting the card, with the links in place:
- Ollama gave an error,
mkdir ... file exists: ensure path elements are traversable, and worked again on remount without a restart. - The DeviceSupport link gives
No such file or directorywhen you list it. - Creating a folder through a dead link fails. In my test folder,
mkdir -pexited with an error. I found that reassuring, because a tool like that fails rather than quietly filling your internal disk. Other tools may act differently.
I haven’t tested Xcode with the card out, because no device was connected. Whether it complains, recreates the symbols or something else, I don’t know yet.
Eject the card before removing it. Apple says to wake the Mac and eject first, and warns that removing a card during sleep could lose data.
What’s still open
- Sleep and wake. One short lid close left the card mounted, but macOS logged no sleep event, so that proved nothing. I haven’t confirmed that the card survives a real overnight sleep.
- Time Machine.
tmutil isexcluded /Volumes/SDCachereports[Excluded]today, after I ransudo tmutil addexclusion -v /Volumes/SDCache. That means nothing on the card is backed up, which is one more reason to keep only replaceable files on it. The card showed as included until I ran that, including after I reformatted it, while the card’s original factory volume had shown as excluded. So check, don’t assume. I haven’t tested whether it holds over time. - Snapshots on the card. A Time Machine snapshot on the card kept 18 GB of deleted
test files until I removed it with
tmutil deletelocalsnapshots /Volumes/SDCache. Seven older snapshots were still on the card after excluding it. Check withtmutil listlocalsnapshots /Volumes/SDCache.