Consider using zram
Originally created by Tails on #5740 (Redmine)
It might be useful to use zram
in Tails. Zram was marked stable in Linux 3.14.
Note that the related zswap
(https://lwn.net/Articles/537422/ is not suitable for Tails since it works in conjunction with a swap device, while zram is a swap device in RAM that does not require a backing swap device.
Blueprint: https://tails.boum.org/blueprint/zram/