How To Set And Use ZRAM swap

  1. No. it’s just that for me - reminder what and how to do it after the Qubes OS clean install I plan.
  2. No additional steps. My newest finding is that it’s not necessary to provide dom0 with more than 2GB zram.

It’s offtopic, but if you asked

  1. Beside CPU, none that I’m aware of, especially if swap as a backup device is set to avoid system crash once the (z)RAM is exhausted. The fact that zram is included both in Fedora and Debian now should say enough.

As I said above, I don’t want zswap to compete with and intercept zram and write to swap. I want to avoid zswap acting as a swap cache in front of it. If they are both enabled also leads to wrong zramctl statistics because obviously zram is then mostly unused; this is because zswap intercepts and compresses memory pages being swapped out before they can reach zram. Swap is there allowed in very rare cases, and I can accept wearing my SSD in those rare cases. Not to say that I can format zram and use it temporary as any other block device, but much faster, right? Also, zswap decompressing to swap makes me extremely uncomfortable since under specific circumstances it can be very dangerous.

It’s all there in those links I posted

I haven’t thought about this, but I’d probably use sysbench and vmstat. And systemd-analyze?
This could give you an idea, too.

I’m not sure I understand this. Beside disabling paging in Win qubes in order to spare SSD, I see creating RamDisk meaningful only to put browser cache there for example.