Home/Glossary/How are swap memory and SSD lifespan related?

How are swap memory and SSD lifespan related?

Updated · airankrush

Term · SSD lifespan and swap memory

Swap memory is the system's fallback when physical memory runs short: it writes memory contents that are not needed right now to the disk to free up space, and reads them back when they are needed. macOS tries compressing memory first and turns to swap only when compression is not enough. Each storage cell in a solid-state drive (SSD) can take a limited number of writes, and manufacturers state the lifespan as "total bytes written". In normal use that allowance is not used up in many years. But when memory is tight for long periods and the system keeps swapping heavily in and out, the amount written rises noticeably and the machine gets sluggish at the same time. That is how the two are linked: too little memory is both slow and harder on the disk.

How it relates to renting a remote Mac

On a rented machine, this splits into separate questions.

Disk wear is not yours to carry. The machine is the platform's, and hardware maintenance is on the platform's side. This is one difference between renting and buying: the hardware wear from heavy use does not turn into a depreciated old machine in your hands. If you see disk errors or the system warns of a storage problem, tell support the time and the exact text of the message.

Sluggishness is yours to judge. Open the Memory tab in Activity Monitor and look at Memory Pressure and Swap Used at the bottom. A small amount of swap is normal. Only when memory pressure stays red for long periods does it mean this machine's memory is not up to your tasks, and you should run fewer tasks in parallel or change to a configuration with more memory.

You still have to back up your own data. Any disk can fail. Keep important files somewhere off the machine. See do I need to back up data myself?.

There is no need to turn off the system's swap to "protect the disk", and we do not recommend it.

FAQ

Will attaching an external SSD ease a memory shortage?

No. An external drive adds space for storing files only, not memory. Adding an external drive has to be confirmed with support first for the port, capacity, cost and delivery arrangements. Do not ship one yourself.

Swap Used shows several GB. Does it matter?

That number alone is not enough to tell. When a machine has been on for a long time, swap accumulates contents that have not been used for ages, which is normal. The more reliable signals are the color of memory pressure and whether there are noticeable pauses when you work.

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · Glossary