2 ms·
Swap is extremely slow. And if running it on a high-end NVMe, you better hope you don't swap often.
by LtdJorge 2mo ago
Swap is extremely slow. And if running it on a high-end NVMe, you better hope you don't swap often.
- eru 1mo agoMacOS uses swap all the time. Btw, there's (at least) two sides to swap: (1) While there's plenty of headroom, you might still want to swap out 'cold' memory, so you can keep more files cached in RAM. (2) When you are (nearly) out of memory, you need to evict to swap so that you don't run out-of-memory. Swap mostly helps you, when you have plenty of cold memory that are pretty much never accessed again. Or when you have applications that you switch, but that you don't use concurrently. When your active working set is bigger than your RAM, then, yes, swap is slow.