It's sad that there isn't an easy way to get a proper swap setup in Linux, as with MacOS.
The ideal swap setup would be using zswap on an encrypted drive, offloading encryption from the CPU, but:
- fedora doesn't use zwap, instead it uses zram, so that the user doesn't risk writing RAM contents in plaintext on the SSD.
- Compressing a partition with LUKS consumes CPU cycles and pollutes the CPU cache. Better solutions exist but aren't easy to use or require a self-encrypting drive.
