Re:In defence of swap: common misconceptions
by DecoPerson on Monday June 08, 2020 @01:02PM
(#23458352)
That was a lot of words to say “Swap allows us to push infrequently used pages to disk during memory usage spikes to avoid triggering the dropping of useful file pages, or worse, the OOM killer.”
[ Parent
| on HN ]
Tfa even bolds the initial takeaway: "Swap is primarily a mechanism for equality of reclamation, not for emergency "extra memory". Swap is not what makes your application slow – entering overall memory contention is what makes your application slow."
It is a mechanism for making more page types reclaimable.