Can someone explain to me the logic of putting a pagefile on a ramdisk? If the pages are going to be in RAM anyway, why pretend that they're on disk?
"Zswap is a kernel feature that provides a compressed RAM cache for swap pages. Pages which would otherwise be swapped out to disk are instead compressed and stored into a memory pool in RAM. Once the pool is full or the RAM is exhausted, the least recently used (LRU) page is decompressed and written to disk, as if it had not been intercepted." https://wiki.archlinux.org/index.php/Zswap
If think of you added in an SSD to the machine, then zswap might be more appropriate.