My debian stretch system has a lot of ram. Currently, it uses an encrypted swap partition on the SSD, but under normal conditions I don't ever expect lack of memory to cause it to be used. But turning off swap completely is a bad idea according to the comments of Snakedoc here:Just note, it's never safe to fully disable swap. Even with systems  that have 96+ GB of ram, running at least 512MB of swap is a good  safety measure. It gives your system time to kill unnecessary  processes if something runs amuck and eats up all the ram  unexpectedly... the alternative with swap disabled is to kernel panic.How to safely turn off swap permanently and reclaim the space? (on Debian Jessie)So I thought I might reserve some of the ram, say 0.5G for a 'ram disk', and use that as a swap file, saving writes to the SSD.How do I do that?  Is it a bad idea for some reason?
SSD: ram alternative to swap partion or swap file
swap;ram;ramdisk