I mentioned this in a response[1] to a sibling comment, but my question is more about learning what are the advantages of swap itself, other than just cheaper slow RAM.
What does the OS do differently with swap vs RAM? What can I do with swap that I cannot do with RAM? Things like that.