In couple occasions when I was capturing Firefox performance traces, Out-of-Memory terminated Firefox.
So, I consulted with Grok and I settled on the following memory configuration
16 GB RAM
Zram will add a virtual compressed memory of up to additional 16GB
Since a while back, following one of the “innumerable” discussions on swap, zswap and zram, I decided to switch all my systems from zram to zswap (plus swapfile) mostly because it is already a kernel feature and well integrated into kernel’s own memory management.
On a system with 16G RAM and 16G swapfile (on SSD; I could do with less; this was set up when I still used hibernation and I haven’t bothered to change it), these are my current zswap parameters: