Why the downvotes? I also was thinking that's a perfect candidate for swapping to disk.
You can also combine both. Linux has zswap.
You can also combine both. Linux has zswap.