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.

Also, a nice read from today: "Debunking zswap and zram myths"
https://chrisdown.name/2026/03/24/zswap-vs-zram-when-to-use-what.html
Debunking zswap and zram myths

zswap and zram are fundamentally different approaches with different philosophies. If in doubt, use zswap.