Now that improvements in CPU speed have outpaced improvements in storage speed, it's easier to benefit from compressed swap in ram. Linux includes "zswap"[0], which in my experience works well for postponing the severe performance degradation you otherwise get with heavy memory pressure on general desktop use. If you think you want to set "vm.swappiness=0" (which I ran for several years), you probably want to enable zswap instead. If you're running Debian, you can set it up by installing "zram-tools" (which can be configured with /etc/default/zramswap if you're not happy with the default).