Do you use Firefox? I have a theory that there's some kind of Firefox-aarch64-linux-specific memory leak but I haven't been able to track it down. I have a 16GB x86-64 Thinkpad and I rarely get OOM issues, whereas my 32GB M1 MBP running Asahi is always on the brink of OOM.
Zram and Zsawp are mutually exclusive on Linux. On macOS, both concepts coexist – except macOS is able to compress individual memory pages (https://news.ycombinator.com/item?id=38300432) on the fly. Zram is a compressed RAM block device with a hard capacity limit.
There is really no comparison here at this point. macOS is vastly superior in that regard.
zswap works well in my experience. Don't need both. Combined with systemd-oomd I haven't had a swapping or memory issue in many years. 16gb here with VMs and lots going on. This doc clears some things up:
That's my whole point: on Linux a process gets killed to prevent a system lock up if you're about to run out of memory or swap. That never happens on macOS, as long as you have some SSD left, period.
macOS is really good at memory management, including the compression and offloading to the fast SSD.