You would think, but when I ran both on a 64GB box I did see both in use without the zram maxed out. As I remember once there was something on the swap partition it is ‘stickier’, zram would clear out first. I assumed it did max the zram briefly and I didn't notice. Even now I see 129.5MB of 25.4GB zswap in use with 73GB “free”, so never go without any swap, but eventually I did eliminate partition based swap and never really considered file based swap.
...about 2:1 up to 5:1. So that 129.5 of mine could represent up to a half gig saved. wohoo!zram would be compressed so this might not be worth exploring as it wouldn't recover all that much RAM.
Statistics: Posted by CwF — 2025-02-04 18:07 — Replies 8 — Views 164