Different question: This sounds like you're handling data that
won't
fit into RAM+Swap anyway, using zram isn't going to help (or hurt),
because with or without compression, your data just doesn't fit in
memory.
I'm talking about possible outcomes, including the ones I've had.
What does the maximum fraction of zram have to do with that? Either
way, this sounds like you just don't have enough physical RAM for your
workload. In that case, adding physical swap (on disk) is probably the
only way to make that work (other than buying more RAM).
`zram-fraction = 1`. Yes, I have not enough memory, but even on systems
with a large amount of RAM, it is possible what I described earlier.
In most cases, of course, with a zram-fraction that equals one (or even
more) the system will run stable, but just keep in mind that where data
may not be compressed, there may be problems.