If you genuinely attempting to quantify this, you can create a swap file of any size right there on your drive. You could iterate and test every setting for every scenario. You could even change settings dynamically if you wanted to.
That said, I leave it to the kernel to figure out and over the past 25 or so years that’s been fine.
brucethemoose@lemmy.world 11 months ago
Yeah I mean it really depends on the app.
If it just occasionally peaks, sometimes modest zram is all you need.
But sometimes i crack it up (and basically disable zram) because I’m paging like 4x my RAM pool size with big files.