With the soaring cost of storage, many of us aren’t going to enjoy the luxury of having a free terabyte on our Mac’s internal SSD. While our Macs will continue getting faster, storage is getting tighter. This is all the more unfortunate as macOS is a caching operating system, and in addition to caching in memory, it loves using fast SSDs to store everything from downloads to QuickLook thumbnails and previews, and a whole day’s worth of hourly snapshots.
While macOS is happy filling its internal storage, the SSD would rather not. Low free space restricts its use of dynamic SLC write caches and can accelerate ageing.
To achieve their high storage density, almost all consumer-grade SSDs store multiple bits in each of their memory cells, and most recent products store three in Triple-Level Cells, TLC. Writing all three bits to a single cell takes longer than it would to write them to separate cells, so most TLC SSDs compensate by using caches. Almost all feature a smaller static cache of up to 16 GB, used when writing small amounts of data, and a more substantial dynamic cache borrowed from main storage cells by writing single bits to them as if they were SLC (single-level cell) rather than TLC. The less free space there is, the smaller that dynamic SLC write cache, and the less that be written at high speed.
It’s generally accepted that memory cells used in SSDs will only work normally for a set number of erase-write cycles. To ensure that some memory cells don’t reach their limit early, SSDs perform wear levelling, and have more memory cells than they require for their nominal capacity, by overprovisioning. SSDs that are constantly operated with little free space will continue trying to level the wear in their memory cells, but doing so requires extra erase-write cycles, which increases write amplification, thus wear. Write amplification and wear are thus minimised when an SSD has ample free space, typically at least 10% in addition to overprovisioning.
Put bluntly, the economies we’re being forced to make with smaller internal SSDs are likely to result in their poorer performance and shorter working lives. Anything that will reduce macOS’s hunger for storage can therefore only be good, so we need to look harder at what macOS is storing on disk.
The two figures that are available are System Data in Storage settings, and purgeable space.
System Data is too broad a category to be useful. According to Apple, it “contains files that don’t fall into the [other] categories listed here. This category primarily includes files and data used by the system, such as log files, caches, VM files and other runtime system resources. Also included are temporary files, fonts, app support files and plug-ins. You can’t manage the contents of this category. The contents are managed by macOS, and the category varies in size depending on the current state of your Mac.” Some of those such as caches and temporary files are included in purgeable space, but others are clearly not in the least bit purgeable.
Purgeable space appears more promising, and there’s no shortage of apps claiming to force purging and release that storage for use. I’ve recently looked at what you can do to free up space quickly on your startup volume, and what space is purgeable, and how to purge it.
There are several important conclusions:
- You can never fully free purgeable space, only some of it.
- Some of its components, notably snapshots, can account for much of its size, but may be better addressed separately.
- Much of it, maybe around 20-30 GB, appears inevitable. Purge it and it will soon reappear.
- Measuring purgeable space immediately after purging is misleading. Check it a day or two later before wondering whether that purge might have been useful.
- Purgeable space is never as persistent or reliable as real free space.
More lasting solutions to the rising cost of internal storage are therefore likely in external SSDs, when they can be suitable substitutes for what we can’t afford.
